Skip to content

Commit

Permalink
UIDATIMP-1671: Invoice field mapping profile: cannot check export to …
Browse files Browse the repository at this point in the history
…accounting checkbox (#1649)

(cherry picked from commit a464c95)
  • Loading branch information
mariia-aloshyna committed Nov 15, 2024
1 parent 31686b0 commit 934c4af
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change history for ui-data-import

## [8.0.1] (IN PROGRESS)

### Bugs fixed:
* Invoice field mapping profile: cannot check export to accounting checkbox. (UIDATIMP-1671)

## [8.0.0](https://github.com/folio-org/ui-data-import/tree/v8.0.0) (2024-10-31)

### Features added:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@ export const ExtendedInformation = ({
okapi,
setReferenceTables,
}) => {
const CHECK_SUBSCRIPTION_OVERLAP_FIELD_INDEX = 22;
const EXPORT_TO_ACCOUNTING_FIELD_INDEX = 23;

const EXTENDED_INFO_FIELDS_MAP = {
FOLIO_INVOICE_NUMBER: getFieldName(20),
PAYMENT_METHOD: getFieldName(21),
CHECK_SUBSCRIPTION_OVERLAP: getBoolFieldName(22),
EXPORT_TO_ACCOUNTING: getBoolFieldName(23),
CHECK_SUBSCRIPTION_OVERLAP: getBoolFieldName(CHECK_SUBSCRIPTION_OVERLAP_FIELD_INDEX),
EXPORT_TO_ACCOUNTING: getBoolFieldName(EXPORT_TO_ACCOUNTING_FIELD_INDEX),
CURRENCY: getFieldName(24),
CURRENT_EXCHANGE_RATE: getFieldName(25),
SET_EXCHANGE_RATE: getFieldName(26),
Expand All @@ -57,8 +60,8 @@ export const ExtendedInformation = ({
const paymentMethodsList = createOptionsList(PAYMENT_METHOD_OPTIONS, formatMessage, 'labelId');
const currenciesList = useCurrencyOptions();

const exportToAccountingCheckbox = mappingFields?.[22]?.booleanFieldAction;
const checkSubscriptionOverlapCheckbox = mappingFields?.[21]?.booleanFieldAction;
const exportToAccountingCheckbox = mappingFields?.[EXPORT_TO_ACCOUNTING_FIELD_INDEX]?.booleanFieldAction;
const checkSubscriptionOverlapCheckbox = mappingFields?.[CHECK_SUBSCRIPTION_OVERLAP_FIELD_INDEX]?.booleanFieldAction;

return (
<Accordion
Expand Down

0 comments on commit 934c4af

Please sign in to comment.