Skip to content

Commit

Permalink
Merge pull request #47947 from Krishna2323/krishna2323/issue/47747
Browse files Browse the repository at this point in the history
fix: Taxes - Name field is no longer grayed out after editing tax code offline.
  • Loading branch information
mountiny authored Aug 27, 2024
2 parents f60b8f1 + 0d18ff5 commit afc6775
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libs/actions/TaxRate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ function setPolicyTaxCode(policyID: string, oldTaxCode: string, newTaxCode: stri
[oldTaxCode]: null,
[newTaxCode]: {
...originalTaxRate,
pendingFields: {code: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE},
pendingFields: {...originalTaxRate.pendingFields, code: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE},
pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,
errorFields: {code: null},
previousTaxCode: oldTaxCode,
Expand All @@ -520,7 +520,7 @@ function setPolicyTaxCode(policyID: string, oldTaxCode: string, newTaxCode: stri
[newTaxCode]: {
...originalTaxRate,
code: newTaxCode,
pendingFields: {code: null},
pendingFields: {...originalTaxRate.pendingFields, code: null},
pendingAction: null,
errorFields: {code: null},
},
Expand All @@ -541,7 +541,7 @@ function setPolicyTaxCode(policyID: string, oldTaxCode: string, newTaxCode: stri
[oldTaxCode]: {
...originalTaxRate,
code: originalTaxRate.code,
pendingFields: {code: null},
pendingFields: {...originalTaxRate.pendingFields, code: null},
pendingAction: null,
errorFields: {code: ErrorUtils.getMicroSecondOnyxErrorWithTranslationKey('workspace.taxes.error.updateFailureMessage')},
},
Expand Down

0 comments on commit afc6775

Please sign in to comment.