diff --git a/src/app/si/settings/category-mappings/category-mappings-dialog/category-mappings-dialog.component.ts b/src/app/si/settings/category-mappings/category-mappings-dialog/category-mappings-dialog.component.ts index be3ee61..3fcc37e 100644 --- a/src/app/si/settings/category-mappings/category-mappings-dialog/category-mappings-dialog.component.ts +++ b/src/app/si/settings/category-mappings/category-mappings-dialog/category-mappings-dialog.component.ts @@ -149,7 +149,7 @@ export class CategoryMappingsDialogComponent implements OnInit { attributes.push('EXPENSE_TYPE'); } - if (that.configuration.reimbursable_expenses_object && that.configuration.corporate_credit_card_expenses_object !== 'EXPENSE_REPORT') { + if (that.configuration.reimbursable_expenses_object === 'BILL' || that.configuration.reimbursable_expenses_object === 'JOURNAL_ENTRY' || (!that.configuration.reimbursable_expenses_object && (that.configuration.corporate_credit_card_expenses_object === 'JOURNAL_ENTRY' || that.configuration.corporate_credit_card_expenses_object === 'BILL' || that.configuration.corporate_credit_card_expenses_object === 'CHARGE_CARD_TRANSACTION'))) { attributes.push('ACCOUNT'); } return attributes;