Skip to content

Commit

Permalink
Updated the key mapping for corporate_credit_card_expense_group_id wh…
Browse files Browse the repository at this point in the history
…ile transforming expenses (#2822)
  • Loading branch information
devendrafyle authored Mar 12, 2024
1 parent 1c6e82b commit 266c54e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/core/services/transaction.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -838,8 +838,8 @@ export class TransactionService {
sub_category: expense.category?.sub_category,
tax_amount: expense?.tax_amount,
corporate_credit_card_expense_group_id:
expense.matched_corporate_card_transactions?.length > 0
? expense.matched_corporate_card_transactions[0].id
expense.matched_corporate_card_transaction_ids?.length > 0
? expense.matched_corporate_card_transaction_ids[0]
: null,
split_group_id: expense.split_group_id,
split_group_user_amount: expense.split_group_amount,
Expand Down Expand Up @@ -924,8 +924,8 @@ export class TransactionService {
tx_cost_center_name: expense.cost_center?.name,
tx_cost_center_id: expense.cost_center_id,
tx_corporate_credit_card_expense_group_id:
expense.matched_corporate_card_transactions?.length > 0
? expense.matched_corporate_card_transactions[0].id
expense.matched_corporate_card_transaction_ids?.length > 0
? expense.matched_corporate_card_transaction_ids[0]
: null,
tx_custom_properties: expense.custom_fields.map((item) => item as TxnCustomProperties),
tx_locations: expense.locations,
Expand Down

0 comments on commit 266c54e

Please sign in to comment.