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

Commit

Permalink
Revert "adding accounts Payable filter while fetching account for bil…
Browse files Browse the repository at this point in the history
…ls as re… (#155)" (#219)

This reverts commit a6360c9.
  • Loading branch information
Shwetabhk authored Oct 19, 2022
1 parent fc37094 commit 407f3cd
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Please refer this link to find the [documentation](https://fylein.github.io/fyle
```
"workspace_id": "",
"refresh_token": "",
"org_id": ""
```

* Create an sql function to partially setup an org to run tests -
Expand Down
1 change: 0 additions & 1 deletion src/app/core/models/db/destination-attribute.model.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export type DestinationAttributeDetail = {
email: string;
account_type?: string;
fully_qualified_name: string;
};

Expand Down
2 changes: 0 additions & 2 deletions src/app/core/services/misc/mapping.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ describe('MappingService', () => {
workspace: +workspace_id,
detail: {
email: '[email protected]',
account_type: 'expense',
fully_qualified_name: 'Fyle'
}
};
Expand Down Expand Up @@ -468,7 +467,6 @@ describe('MappingService', () => {
workspace: +workspace_id,
detail: {
email: '[email protected]',
account_type: 'expense',
fully_qualified_name: 'Fyle'
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,7 @@ export class ExportSettingsComponent implements OnInit, OnDestroy {

this.bankAccounts = response[1].BANK_ACCOUNT;
this.cccAccounts = response[1].CREDIT_CARD_ACCOUNT;
this.accountsPayables = response[1].ACCOUNTS_PAYABLE.filter((accountPayable) => {
return accountPayable.detail.account_type === 'Accounts Payable';
});
this.accountsPayables = response[1].ACCOUNTS_PAYABLE;
this.vendors = response[1].VENDOR;
this.expenseAccounts = this.bankAccounts.concat(this.cccAccounts);

Expand Down

0 comments on commit 407f3cd

Please sign in to comment.