Skip to content

Commit

Permalink
fix: removed the ccc_group_id (#2810)
Browse files Browse the repository at this point in the history
  • Loading branch information
devendrafyle committed Mar 7, 2024
1 parent 7642a9f commit 8add744
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/core/models/generated-form-properties.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface GeneratedFormProperties {
txn_dt: Date;
receipt_ids: string[];
custom_properties: Partial<CustomInput>[];
ccce_group_id: string;
ccce_group_id?: string;
from_dt: Date;
to_dt: Date;
flight_journey_travel_class: string;
Expand Down
2 changes: 0 additions & 2 deletions src/app/fyle/merge-expense/merge-expense.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,6 @@ export class MergeExpensePage implements OnInit, AfterViewChecked {
(expense) => expense.source_account_type === this.genericFieldsFormValues.paymentMode
);
const amountExpense = this.expenses.find((expense) => expense.tx_id === this.genericFieldsFormValues.amount);
const CCCMatchedExpense = this.expenses.find((expense) => !!expense.tx_corporate_credit_card_expense_group_id);
let locations: Destination[];
if (this.categoryDependentFieldsFormValues.location_1 && this.categoryDependentFieldsFormValues.location_2) {
locations = [
Expand Down Expand Up @@ -614,7 +613,6 @@ export class MergeExpensePage implements OnInit, AfterViewChecked {
...projectDependantFieldValues,
...costCenterDependentFieldValues,
],
ccce_group_id: CCCMatchedExpense?.tx_corporate_credit_card_expense_group_id,
from_dt: this.categoryDependentFieldsFormValues.from_dt,
to_dt: this.categoryDependentFieldsFormValues.to_dt,
flight_journey_travel_class: this.categoryDependentFieldsFormValues.flight_journey_travel_class,
Expand Down

0 comments on commit 8add744

Please sign in to comment.