Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Updated condition for getAttributes (#159)
Browse files Browse the repository at this point in the history
* for CCC only, show GL on category

* fix 1

* pr comment

* added OR for attributes

* updated condition

* lint fix
  • Loading branch information
anishfyle authored Aug 9, 2023
1 parent d16678f commit b224934
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b224934

Please sign in to comment.