From b22493409df3cbf4b3a49b20101ee0c1588ca422 Mon Sep 17 00:00:00 2001 From: Anish Kr Singh <116036738+anishfyle@users.noreply.github.com> Date: Wed, 9 Aug 2023 12:50:48 +0530 Subject: [PATCH] Updated condition for getAttributes (#159) * for CCC only, show GL on category * fix 1 * pr comment * added OR for attributes * updated condition * lint fix --- .../category-mappings-dialog.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;