Skip to content

Commit

Permalink
UIORGS-390 Update label for address category
Browse files Browse the repository at this point in the history
  • Loading branch information
usavkov-epam committed Nov 14, 2023
1 parent 537a1e3 commit fb4b218
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ export const BankingInformationField = ({
</Col>
<Col xs={12} md={4}>
<FieldSelectionFinal
label={<FormattedMessage id="ui-organizations.data.bankingInformation.address" />}
label={<FormattedMessage id="ui-organizations.data.bankingInformation.addressCategory" />}
name={`${name}.addressId`}
// TODO: replace after BE changes
// name={`${name}.categoryId`}
dataOptions={categoriesOptions}
validateFields={[]}
/>
Expand Down
18 changes: 9 additions & 9 deletions src/Organizations/OrganizationForm/OrganizationForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,6 @@ const OrganizationForm = ({
<OrganizationVendorInfoForm />
</Accordion>

{isBankingInformationEnabled && (
<Accordion
id={ORGANIZATION_SECTIONS.bankingInformationSection}
label={ORGANIZATION_SECTION_LABELS[ORGANIZATION_SECTIONS.bankingInformationSection]}
>
<OrganizationBankingInfoForm />
</Accordion>
)}

<Accordion
id={ORGANIZATION_SECTIONS.vendorTermsSection}
label={ORGANIZATION_SECTION_LABELS[ORGANIZATION_SECTIONS.vendorTermsSection]}
Expand All @@ -230,6 +221,15 @@ const OrganizationForm = ({
accountFormValues={formValues.accounts}
/>
</Accordion>

{isBankingInformationEnabled && (
<Accordion
id={ORGANIZATION_SECTIONS.bankingInformationSection}
label={ORGANIZATION_SECTION_LABELS[ORGANIZATION_SECTIONS.bankingInformationSection]}
>
<OrganizationBankingInfoForm />
</Accordion>
)}
</>
)
}
Expand Down
2 changes: 1 addition & 1 deletion translations/ui-organizations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"comingSoon": "Coming in a future release.",

"data.bankingInformation.accountType": "Account type",
"data.bankingInformation.address": "Address",
"data.bankingInformation.addressCategory": "Address category",
"data.bankingInformation.bankAccountNumber": "Bank account number",
"data.bankingInformation.bankName": "Bank name",
"data.bankingInformation.isPrimary": "Use as primary banking information",
Expand Down

0 comments on commit fb4b218

Please sign in to comment.