From 3ae5fafc12be9b63aeda4b1f7dca359088ea5d77 Mon Sep 17 00:00:00 2001 From: ShridharGoel <35566748+ShridharGoel@users.noreply.github.com> Date: Wed, 30 Sep 2026 07:47:09 +0530 Subject: [PATCH] Add NetSuite split exports by posting period toggle --- src/CONST/index.ts | 1 + src/languages/de.ts | 5 +++++ src/languages/el.ts | 5 +++++ src/languages/en.ts | 3 +++ src/languages/es.ts | 3 +++ src/languages/fr.ts | 5 +++++ src/languages/it.ts | 3 +++ src/languages/ja.ts | 3 +++ src/languages/nl.ts | 3 +++ src/languages/pl.ts | 3 +++ src/languages/pt-BR.ts | 3 +++ src/languages/zh-hans.ts | 3 +++ src/libs/API/types.ts | 2 ++ .../actions/connections/NetSuiteCommands.ts | 11 ++++++++++ .../NetSuiteExportConfigurationPage.tsx | 20 ++++++++++++++++++- src/pages/workspace/accounting/utils.tsx | 1 + src/types/onyx/Policy.ts | 3 +++ 17 files changed, 76 insertions(+), 1 deletion(-) diff --git a/src/CONST/index.ts b/src/CONST/index.ts index e3658b132257..b831191d8aef 100644 --- a/src/CONST/index.ts +++ b/src/CONST/index.ts @@ -3497,6 +3497,7 @@ const CONST = { PROVINCIAL_TAX_POSTING_ACCOUNT: 'provincialTaxPostingAccount', ALLOW_FOREIGN_CURRENCY: 'allowForeignCurrency', EXPORT_TO_NEXT_OPEN_PERIOD: 'exportToNextOpenPeriod', + SPLIT_EXPORTS_BY_POSTING_PERIOD: 'splitExportsByPostingPeriod', IMPORT_FIELDS: ['departments', 'classes', 'locations'], AUTO_SYNC: 'autoSync', ACCOUNTING_METHOD: 'accountingMethod', diff --git a/src/languages/de.ts b/src/languages/de.ts index 8c81ffbc2324..12259dc51163 100644 --- a/src/languages/de.ts +++ b/src/languages/de.ts @@ -5509,6 +5509,11 @@ ${amount} für ${merchant} – ${date}`, journalEntriesProvTaxPostingAccount: 'Buchungszeilen-Konto für Provinzsteuerbuchungen', foreignCurrencyAmount: 'Betrag in Fremdwährung exportieren', exportToNextOpenPeriod: 'In die nächste offene Periode exportieren', + exportToNextOpenPeriodLockedSubtitle: + 'Um den Export in die nächste offene Periode zu deaktivieren, deaktiviere zuerst die Aufteilung nicht erstattungsfähiger Exporte nach Periode.', + splitExportsByPostingPeriod: 'Exporte nach Buchungsperiode aufteilen', + splitExportsByPostingPeriodSubtitle: + 'Aktiviere den Export in die nächste offene Periode, um die Aufteilung nicht erstattungsfähiger Exporte nach Periode in NetSuite zu aktivieren', nonReimbursableJournalPostingAccount: 'Nicht erstattungsfähiges Konto für Buchungssätze', reimbursableJournalPostingAccount: 'Konto für die Verbuchung erstattungsfähiger Posten', journalPostingPreference: { diff --git a/src/languages/el.ts b/src/languages/el.ts index 6f4635c59470..98f82894a9a0 100644 --- a/src/languages/el.ts +++ b/src/languages/el.ts @@ -5594,6 +5594,11 @@ ${amount} για ${merchant} - ${date}`, journalEntriesProvTaxPostingAccount: 'Λογαριασμός καταχώρισης επαρχιακού φόρου για λογιστικές εγγραφές', foreignCurrencyAmount: 'Εξαγωγή ποσού σε ξένο νόμισμα', exportToNextOpenPeriod: 'Εξαγωγή στην επόμενη ανοικτή περίοδο', + exportToNextOpenPeriodLockedSubtitle: + 'Για να απενεργοποιήσετε την εξαγωγή στην επόμενη ανοικτή περίοδο, απενεργοποιήστε πρώτα τη διαίρεση των μη αποζημιώσιμων εξαγωγών ανά περίοδο.', + splitExportsByPostingPeriod: 'Διαίρεση εξαγωγών ανά περίοδο καταχώρισης', + splitExportsByPostingPeriodSubtitle: + 'Ενεργοποιήστε την εξαγωγή στην επόμενη ανοικτή περίοδο για να ενεργοποιήσετε τη διαίρεση των μη αποζημιώσιμων εξαγωγών ανά περίοδο στο NetSuite', nonReimbursableJournalPostingAccount: 'Λογαριασμός καταχώρισης μη αποζημιώσιμων εγγραφών', reimbursableJournalPostingAccount: 'Λογαριασμός καταχώρισης ημερολογίου επιστρέψιμων εξόδων', journalPostingPreference: { diff --git a/src/languages/en.ts b/src/languages/en.ts index e6238285d594..fe613291e030 100644 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -5638,6 +5638,9 @@ const translations = { journalEntriesProvTaxPostingAccount: 'Journal entries provincial tax posting account', foreignCurrencyAmount: 'Export foreign currency amount', exportToNextOpenPeriod: 'Export to next open period', + exportToNextOpenPeriodLockedSubtitle: 'To disable export to next open period, first disable split non-reimbursable exports by period.', + splitExportsByPostingPeriod: 'Split exports by posting period', + splitExportsByPostingPeriodSubtitle: 'Enable export to next open period to enable split non-reimbursable exports by period in NetSuite', nonReimbursableJournalPostingAccount: 'Non-reimbursable journal posting account', reimbursableJournalPostingAccount: 'Reimbursable journal posting account', journalPostingPreference: { diff --git a/src/languages/es.ts b/src/languages/es.ts index 080f2174e63f..756f0f166376 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -5435,6 +5435,9 @@ ${amount} para ${merchant} - ${date}`, journalEntriesProvTaxPostingAccount: 'Cuenta de registro de impuestos provinciales de asientos contables', foreignCurrencyAmount: 'Exportar importe en moneda extranjera', exportToNextOpenPeriod: 'Exportar al siguiente período abierto', + exportToNextOpenPeriodLockedSubtitle: 'Para desactivar la exportación al siguiente período abierto, primero desactiva la división de exportaciones no reembolsables por período.', + splitExportsByPostingPeriod: 'Dividir exportaciones por período contable', + splitExportsByPostingPeriodSubtitle: 'Activa la exportación al siguiente período abierto para habilitar la división de exportaciones no reembolsables por período en NetSuite', nonReimbursableJournalPostingAccount: 'Cuenta de registro de diario no reembolsable', reimbursableJournalPostingAccount: 'Cuenta de registro de diario reembolsable', journalPostingPreference: { diff --git a/src/languages/fr.ts b/src/languages/fr.ts index b5bcd63e4b41..7704c58dc40c 100644 --- a/src/languages/fr.ts +++ b/src/languages/fr.ts @@ -5516,6 +5516,11 @@ ${amount} pour ${merchant} - ${date}`, journalEntriesProvTaxPostingAccount: 'Compte de comptabilisation de la taxe provinciale des écritures de journal', foreignCurrencyAmount: 'Exporter le montant en devise étrangère', exportToNextOpenPeriod: 'Exporter vers la prochaine période ouverte', + exportToNextOpenPeriodLockedSubtitle: + "Pour désactiver l'exportation vers la prochaine période ouverte, désactivez d'abord la division des exportations non remboursables par période.", + splitExportsByPostingPeriod: 'Diviser les exportations par période comptable', + splitExportsByPostingPeriodSubtitle: + "Activez l'exportation vers la prochaine période ouverte pour activer la division des exportations non remboursables par période dans NetSuite", nonReimbursableJournalPostingAccount: 'Compte de saisie des écritures non remboursables', reimbursableJournalPostingAccount: 'Compte de comptabilisation des écritures remboursables', journalPostingPreference: { diff --git a/src/languages/it.ts b/src/languages/it.ts index 56fe331ecfa1..1fd0b9bd2e3e 100644 --- a/src/languages/it.ts +++ b/src/languages/it.ts @@ -5473,6 +5473,9 @@ ${amount} per ${merchant} - ${date}`, journalEntriesProvTaxPostingAccount: 'Conto di registrazione contabile dell’imposta provinciale', foreignCurrencyAmount: 'Esporta importo in valuta estera', exportToNextOpenPeriod: 'Esporta nel prossimo periodo aperto', + exportToNextOpenPeriodLockedSubtitle: "Per disattivare l'esportazione nel prossimo periodo aperto, disattiva prima la divisione delle esportazioni non rimborsabili per periodo.", + splitExportsByPostingPeriod: 'Dividi le esportazioni per periodo di registrazione', + splitExportsByPostingPeriodSubtitle: "Attiva l'esportazione nel prossimo periodo aperto per abilitare la divisione delle esportazioni non rimborsabili per periodo in NetSuite", nonReimbursableJournalPostingAccount: 'Conto di registrazione per spese non rimborsabili', reimbursableJournalPostingAccount: 'Conto di registrazione per rimborsabili', journalPostingPreference: { diff --git a/src/languages/ja.ts b/src/languages/ja.ts index 7850d66531b1..0d3642f4e34d 100644 --- a/src/languages/ja.ts +++ b/src/languages/ja.ts @@ -5417,6 +5417,9 @@ ${integrationName === CONST.ONBOARDING_ACCOUNTING_MAPPING.other ? 'あなたの' journalEntriesProvTaxPostingAccount: '仕訳の地方税計上勘定', foreignCurrencyAmount: '外貨金額をエクスポート', exportToNextOpenPeriod: '次の未締め期間にエクスポート', + exportToNextOpenPeriodLockedSubtitle: '次の未締め期間へのエクスポートを無効にするには、先に立替精算対象外エクスポートの期間ごとの分割を無効にしてください。', + splitExportsByPostingPeriod: '転記期間ごとにエクスポートを分割', + splitExportsByPostingPeriodSubtitle: 'NetSuiteで立替精算対象外エクスポートの期間ごとの分割を有効にするには、次の未締め期間へのエクスポートを有効にしてください', nonReimbursableJournalPostingAccount: '立替精算対象外の仕訳計上勘定', reimbursableJournalPostingAccount: '立替精算用仕訳計上勘定', journalPostingPreference: { diff --git a/src/languages/nl.ts b/src/languages/nl.ts index 6bb1673c11a2..2705bacee307 100644 --- a/src/languages/nl.ts +++ b/src/languages/nl.ts @@ -5472,6 +5472,9 @@ ${amount} voor ${merchant} - ${date}`, journalEntriesProvTaxPostingAccount: 'Boekingen provinciale belastingboekingsrekening', foreignCurrencyAmount: 'Bedrag in vreemde valuta exporteren', exportToNextOpenPeriod: 'Exporteren naar volgende open periode', + exportToNextOpenPeriodLockedSubtitle: 'Om exporteren naar de volgende open periode uit te schakelen, schakel eerst het splitsen van niet-vergoedbare exports per periode uit.', + splitExportsByPostingPeriod: 'Exports splitsen per boekingsperiode', + splitExportsByPostingPeriodSubtitle: 'Schakel exporteren naar de volgende open periode in om het splitsen van niet-vergoedbare exports per periode in NetSuite in te schakelen', nonReimbursableJournalPostingAccount: 'Niet-vergoedbaar journaalboekkostenrekening', reimbursableJournalPostingAccount: 'Boekhoudrekening voor terugbetaalbare boeking', journalPostingPreference: { diff --git a/src/languages/pl.ts b/src/languages/pl.ts index fcc5823641ae..492e882f4939 100644 --- a/src/languages/pl.ts +++ b/src/languages/pl.ts @@ -5499,6 +5499,9 @@ ${amount} dla ${merchant} - ${date}`, journalEntriesProvTaxPostingAccount: 'Konto księgowania prowincjonalnego podatku w dzienniku', foreignCurrencyAmount: 'Eksportuj kwotę w walucie obcej', exportToNextOpenPeriod: 'Eksportuj do następnego otwartego okresu', + exportToNextOpenPeriodLockedSubtitle: 'Aby wyłączyć eksport do następnego otwartego okresu, najpierw wyłącz dzielenie eksportów niepodlegających zwrotowi według okresu.', + splitExportsByPostingPeriod: 'Podziel eksporty według okresu księgowego', + splitExportsByPostingPeriodSubtitle: 'Włącz eksport do następnego otwartego okresu, aby włączyć dzielenie eksportów niepodlegających zwrotowi według okresu w NetSuite', nonReimbursableJournalPostingAccount: 'Konto księgowania nierozliczanych wydatków', reimbursableJournalPostingAccount: 'Konto księgowe dla zwrotów kosztów', journalPostingPreference: { diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts index b5ee0d2ded75..40b2599700c2 100644 --- a/src/languages/pt-BR.ts +++ b/src/languages/pt-BR.ts @@ -5465,6 +5465,9 @@ ${amount} para ${merchant} - ${date}`, journalEntriesProvTaxPostingAccount: 'Conta de lançamento de impostos provinciais em lançamentos contábeis', foreignCurrencyAmount: 'Exportar valor em moeda estrangeira', exportToNextOpenPeriod: 'Exportar para o próximo período em aberto', + exportToNextOpenPeriodLockedSubtitle: 'Para desativar a exportação para o próximo período em aberto, primeiro desative a divisão de exportações não reembolsáveis por período.', + splitExportsByPostingPeriod: 'Dividir exportações por período de lançamento', + splitExportsByPostingPeriodSubtitle: 'Ative a exportação para o próximo período em aberto para habilitar a divisão de exportações não reembolsáveis por período no NetSuite', nonReimbursableJournalPostingAccount: 'Conta de lançamento de diário não reembolsável', reimbursableJournalPostingAccount: 'Conta contábil para lançamentos reembolsáveis', journalPostingPreference: { diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts index d7ca18f91645..decd338842aa 100644 --- a/src/languages/zh-hans.ts +++ b/src/languages/zh-hans.ts @@ -5278,6 +5278,9 @@ ${amount},商户:${merchant} - 日期:${date}`, journalEntriesProvTaxPostingAccount: '日记账分录省税过账科目', foreignCurrencyAmount: '导出外币金额', exportToNextOpenPeriod: '导出到下一个未结会计期间', + exportToNextOpenPeriodLockedSubtitle: '要禁用导出到下一个未结会计期间,请先禁用按期间拆分不可报销导出。', + splitExportsByPostingPeriod: '按过账期间拆分导出', + splitExportsByPostingPeriodSubtitle: '启用导出到下一个未结会计期间,以在 NetSuite 中启用按期间拆分不可报销导出', nonReimbursableJournalPostingAccount: '不可报销日记账入账科目', reimbursableJournalPostingAccount: '可报销日记账过账科目', journalPostingPreference: { diff --git a/src/libs/API/types.ts b/src/libs/API/types.ts index f97a40fa8a63..96a724cb06eb 100644 --- a/src/libs/API/types.ts +++ b/src/libs/API/types.ts @@ -461,6 +461,7 @@ const WRITE_COMMANDS = { UPDATE_NETSUITE_TAX_POSTING_ACCOUNT: 'UpdateNetSuiteTaxPostingAccount', UPDATE_NETSUITE_ALLOW_FOREIGN_CURRENCY: 'UpdateNetSuiteAllowForeignCurrency', UPDATE_NETSUITE_EXPORT_TO_NEXT_OPEN_PERIOD: 'UpdateNetSuiteExportToNextOpenPeriod', + UPDATE_NETSUITE_SPLIT_EXPORTS_BY_POSTING_PERIOD: 'UpdateNetSuiteSplitExportsByPostingPeriod', UPDATE_NETSUITE_CUSTOM_SEGMENTS: 'UpdateNetSuiteCustomSegments', UPDATE_NETSUITE_CUSTOM_LISTS: 'UpdateNetSuiteCustomLists', UPDATE_NETSUITE_AUTO_SYNC: 'UpdateNetSuiteAutoSync', @@ -1345,6 +1346,7 @@ type WriteCommandParameters = { [WRITE_COMMANDS.UPDATE_NETSUITE_TAX_POSTING_ACCOUNT]: Parameters.UpdateNetSuiteGenericTypeParams<'bankAccountID', string>; [WRITE_COMMANDS.UPDATE_NETSUITE_ALLOW_FOREIGN_CURRENCY]: Parameters.UpdateNetSuiteGenericTypeParams<'enabled', boolean>; [WRITE_COMMANDS.UPDATE_NETSUITE_EXPORT_TO_NEXT_OPEN_PERIOD]: Parameters.UpdateNetSuiteGenericTypeParams<'enabled', boolean>; + [WRITE_COMMANDS.UPDATE_NETSUITE_SPLIT_EXPORTS_BY_POSTING_PERIOD]: Parameters.UpdateNetSuiteGenericTypeParams<'enabled', boolean>; [WRITE_COMMANDS.UPDATE_NETSUITE_CUSTOM_SEGMENTS]: Parameters.UpdateNetSuiteGenericTypeParams<'customSegments', string>; // JSON string NetSuiteCustomSegment[] [WRITE_COMMANDS.UPDATE_NETSUITE_CUSTOM_LISTS]: Parameters.UpdateNetSuiteGenericTypeParams<'customLists', string>; // JSON string NetSuiteCustomList[] [WRITE_COMMANDS.UPDATE_NETSUITE_AUTO_SYNC]: Parameters.UpdateNetSuiteGenericTypeParams<'enabled', boolean>; diff --git a/src/libs/actions/connections/NetSuiteCommands.ts b/src/libs/actions/connections/NetSuiteCommands.ts index 80922e769491..0341a771eed3 100644 --- a/src/libs/actions/connections/NetSuiteCommands.ts +++ b/src/libs/actions/connections/NetSuiteCommands.ts @@ -813,6 +813,16 @@ function updateNetSuiteExportToNextOpenPeriod(policyID: string, value: boolean, API.write(WRITE_COMMANDS.UPDATE_NETSUITE_EXPORT_TO_NEXT_OPEN_PERIOD, parameters, onyxData); } +function updateNetSuiteSplitExportsByPostingPeriod(policyID: string, value: boolean, oldValue: boolean) { + const onyxData = updateNetSuiteOnyxData(policyID, CONST.NETSUITE_CONFIG.SPLIT_EXPORTS_BY_POSTING_PERIOD, value, oldValue); + + const parameters = { + policyID, + enabled: value, + }; + API.write(WRITE_COMMANDS.UPDATE_NETSUITE_SPLIT_EXPORTS_BY_POSTING_PERIOD, parameters, onyxData); +} + function updateNetSuiteAutoSync(policyID: string | undefined, value: boolean) { if (!policyID) { return; @@ -1123,6 +1133,7 @@ export { updateNetSuiteProvincialTaxPostingAccount, updateNetSuiteAllowForeignCurrency, updateNetSuiteExportToNextOpenPeriod, + updateNetSuiteSplitExportsByPostingPeriod, updateNetSuiteImportMapping, updateNetSuiteCrossSubsidiaryCustomersConfiguration, updateNetSuiteCustomSegments, diff --git a/src/pages/workspace/accounting/netsuite/export/NetSuiteExportConfigurationPage.tsx b/src/pages/workspace/accounting/netsuite/export/NetSuiteExportConfigurationPage.tsx index 3607ef71eeb9..4e8093a1756e 100644 --- a/src/pages/workspace/accounting/netsuite/export/NetSuiteExportConfigurationPage.tsx +++ b/src/pages/workspace/accounting/netsuite/export/NetSuiteExportConfigurationPage.tsx @@ -10,7 +10,7 @@ import usePermissions from '@hooks/usePermissions'; import useThemeStyles from '@hooks/useThemeStyles'; import useWorkspaceAccountID from '@hooks/useWorkspaceAccountID'; -import {updateNetSuiteAllowForeignCurrency, updateNetSuiteExportToNextOpenPeriod} from '@libs/actions/connections/NetSuiteCommands'; +import {updateNetSuiteAllowForeignCurrency, updateNetSuiteExportToNextOpenPeriod, updateNetSuiteSplitExportsByPostingPeriod} from '@libs/actions/connections/NetSuiteCommands'; import {getCardSettings} from '@libs/CardUtils'; import {getLatestErrorField} from '@libs/ErrorUtils'; import createDynamicRoute from '@libs/Navigation/helpers/dynamicRoutesUtils/createDynamicRoute'; @@ -208,6 +208,24 @@ function NetSuiteExportConfigurationPage({policy}: WithPolicyConnectionsProps) { onToggle: () => (!policyID ? null : updateNetSuiteExportToNextOpenPeriod(policyID, !config?.exportToNextOpenPeriod, config?.exportToNextOpenPeriod ?? false)), pendingAction: settingsPendingAction([CONST.NETSUITE_CONFIG.EXPORT_TO_NEXT_OPEN_PERIOD], config?.pendingFields), errors: getLatestErrorField(config, CONST.NETSUITE_CONFIG.EXPORT_TO_NEXT_OPEN_PERIOD), + // Split exports need the next-open-period fallback for closed periods, so this stays locked while split is on + disabled: !!config?.splitExportsByPostingPeriod, + showLockIcon: !!config?.splitExportsByPostingPeriod, + subtitle: config?.splitExportsByPostingPeriod ? translate('workspace.netsuite.exportToNextOpenPeriodLockedSubtitle') : undefined, + }, + { + type: 'toggle', + title: translate('workspace.netsuite.splitExportsByPostingPeriod'), + isActive: !!config?.splitExportsByPostingPeriod, + switchAccessibilityLabel: translate('workspace.netsuite.splitExportsByPostingPeriod'), + subtitle: !config?.exportToNextOpenPeriod && !config?.splitExportsByPostingPeriod ? translate('workspace.netsuite.splitExportsByPostingPeriodSubtitle') : undefined, + onCloseError: !policyID ? undefined : () => clearNetSuiteErrorField(policyID, CONST.NETSUITE_CONFIG.SPLIT_EXPORTS_BY_POSTING_PERIOD), + onToggle: () => (!policyID ? null : updateNetSuiteSplitExportsByPostingPeriod(policyID, !config?.splitExportsByPostingPeriod, config?.splitExportsByPostingPeriod ?? false)), + pendingAction: settingsPendingAction([CONST.NETSUITE_CONFIG.SPLIT_EXPORTS_BY_POSTING_PERIOD], config?.pendingFields), + errors: getLatestErrorField(config, CONST.NETSUITE_CONFIG.SPLIT_EXPORTS_BY_POSTING_PERIOD), + // Splitting moves expenses to earlier dates which can land in closed periods, so it needs the next-open-period fallback. An active split stays editable so a bad config state can always be undone. + disabled: !config?.exportToNextOpenPeriod && !config?.splitExportsByPostingPeriod, + showLockIcon: !config?.exportToNextOpenPeriod && !config?.splitExportsByPostingPeriod, }, ]; diff --git a/src/pages/workspace/accounting/utils.tsx b/src/pages/workspace/accounting/utils.tsx index 60623b85840d..6a9d7caaedb1 100644 --- a/src/pages/workspace/accounting/utils.tsx +++ b/src/pages/workspace/accounting/utils.tsx @@ -301,6 +301,7 @@ function getAccountingIntegrationData( ...(!shouldHideTaxPostingAccountSelect(canUseNetSuiteUSATax, netsuiteSelectedSubsidiary, netsuiteConfig) ? [CONST.NETSUITE_CONFIG.TAX_POSTING_ACCOUNT] : []), ...(!shouldHideExportForeignCurrencyAmount(netsuiteConfig) ? [CONST.NETSUITE_CONFIG.ALLOW_FOREIGN_CURRENCY] : []), CONST.NETSUITE_CONFIG.EXPORT_TO_NEXT_OPEN_PERIOD, + CONST.NETSUITE_CONFIG.SPLIT_EXPORTS_BY_POSTING_PERIOD, ], onCardReconciliationPagePress: () => Navigation.navigate(ROUTES.WORKSPACE_ACCOUNTING_CARD_RECONCILIATION.getRoute(policyID, CONST.POLICY.CONNECTIONS.ROUTE.NETSUITE)), onAdvancedPagePress: () => Navigation.navigate(ROUTES.POLICY_ACCOUNTING_NETSUITE_ADVANCED.getRoute(policyID)), diff --git a/src/types/onyx/Policy.ts b/src/types/onyx/Policy.ts index 733df0d62b67..895323d98f14 100644 --- a/src/types/onyx/Policy.ts +++ b/src/types/onyx/Policy.ts @@ -1127,6 +1127,9 @@ type NetSuiteConnectionConfig = OnyxCommon.OnyxValueWithOfflineFeedback< /** Whether we should export to the most recent open period if the current one is closed */ exportToNextOpenPeriod: boolean; + /** Whether non-reimbursable exports are split into one transaction per calendar month */ + splitExportsByPostingPeriod?: boolean; + /** Whether we will include the original foreign amount of a transaction to NetSuite */ allowForeignCurrency?: boolean;