diff --git a/README.md b/README.md index 41baea4e..2032c2c7 100644 --- a/README.md +++ b/README.md @@ -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 - diff --git a/src/app/core/models/db/destination-attribute.model.ts b/src/app/core/models/db/destination-attribute.model.ts index 35355f68..9e2e7198 100644 --- a/src/app/core/models/db/destination-attribute.model.ts +++ b/src/app/core/models/db/destination-attribute.model.ts @@ -1,6 +1,5 @@ export type DestinationAttributeDetail = { email: string; - account_type?: string; fully_qualified_name: string; }; diff --git a/src/app/core/services/misc/mapping.service.spec.ts b/src/app/core/services/misc/mapping.service.spec.ts index 2957bdc3..e7e8cf82 100644 --- a/src/app/core/services/misc/mapping.service.spec.ts +++ b/src/app/core/services/misc/mapping.service.spec.ts @@ -395,7 +395,6 @@ describe('MappingService', () => { workspace: +workspace_id, detail: { email: 'dummy@gmail.com', - account_type: 'expense', fully_qualified_name: 'Fyle' } }; @@ -468,7 +467,6 @@ describe('MappingService', () => { workspace: +workspace_id, detail: { email: 'dummy@gmail.com', - account_type: 'expense', fully_qualified_name: 'Fyle' } }; diff --git a/src/app/shared/components/configuration/export-settings/export-settings.component.ts b/src/app/shared/components/configuration/export-settings/export-settings.component.ts index 2365f7d4..da0d7a7e 100644 --- a/src/app/shared/components/configuration/export-settings/export-settings.component.ts +++ b/src/app/shared/components/configuration/export-settings/export-settings.component.ts @@ -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);