Skip to content

Commit

Permalink
fix: C1 xero bug fix (#1097)
Browse files Browse the repository at this point in the history
  • Loading branch information
DhaaraniCIT committed Dec 10, 2024
1 parent a32b5f7 commit a11820f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export class XeroExportSettingModel {
static getValidators(): [ExportSettingValidatorRule, ExportModuleRule[]] {
const exportSettingValidatorRule: ExportSettingValidatorRule = {
reimbursableExpense: ['reimbursableExportType', 'reimbursableExportGroup', 'reimbursableExportDate', 'expenseState'],
creditCardExpense: ['creditCardExportType', 'creditCardExportGroup', 'creditCardExportDate', 'cccExpenseState', 'bankAccount', 'splitExpenseGrouping']
creditCardExpense: ['creditCardExportType', 'creditCardExportGroup', 'creditCardExportDate', 'cccExpenseState', 'splitExpenseGrouping']
};

const exportModuleRule: ExportModuleRule[] = [
Expand All @@ -196,6 +196,7 @@ export class XeroExportSettingModel {
{
formController: 'creditCardExportType',
requiredValue: {
[XeroCorporateCreditCardExpensesObject.BANK_TRANSACTION]: ['bankAccount']
}
}
];
Expand Down Expand Up @@ -242,6 +243,7 @@ export class XeroExportSettingModel {
bank_account: exportSettingsForm.get('bankAccount')?.value ? ExportSettingModel.formatGeneralMappingPayload(exportSettingsForm.get('bankAccount')?.value) : emptyDestinationAttribute
}
};

return exportSettingPayload;
}
}

0 comments on commit a11820f

Please sign in to comment.