Skip to content

Commit 67a5817

Browse files
fix: xero export settings payload bug
The export settings PUT payload always sent the default option for ccc export date type, `spent_at`. As a result, the CCC export date type could never be changed. This change fixes the incorrect field reference that caused it.
1 parent 57ec045 commit 67a5817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/core/models/xero/xero-configuration/xero-export-settings.model.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export class XeroExportSettingModel {
215215
reimbursable_expense_state: exportSettingsForm.get('expenseState')?.value,
216216
reimbursable_export_date_type: exportSettingsForm.get('reimbursableExportDate')?.value ? exportSettingsForm.get('reimbursableExportDate')?.value : ExportDateType.CURRENT_DATE,
217217
ccc_expense_state: exportSettingsForm.get('cccExpenseState')?.value,
218-
ccc_export_date_type: exportSettingsForm.get('cccExportDate')?.value ? exportSettingsForm.get('cccExportDate')?.value : ExportDateType.SPENT_AT
218+
ccc_export_date_type: exportSettingsForm.get('creditCardExportDate')?.value ? exportSettingsForm.get('creditCardExportDate')?.value : ExportDateType.SPENT_AT,
219219
},
220220
workspace_general_settings: {
221221
reimbursable_expenses_object: exportSettingsForm.get('reimbursableExpense')?.value ? XeroReimbursableExpensesObject.PURCHASE_BILL : null,

0 commit comments

Comments
 (0)