law-common 11.4.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/src/api/index.d.ts +4 -0
- package/dist/src/api/index.js +4 -0
- package/dist/src/api/interface/vendor_advance.create.dto.interface.d.ts +10 -0
- package/dist/src/api/interface/vendor_advance.create.dto.interface.js +12 -0
- package/dist/src/api/interface/vendor_advance.update.dto.interface.d.ts +24 -0
- package/dist/src/api/interface/vendor_advance.update.dto.interface.js +18 -0
- package/dist/src/api/interface/vendor_invoice.update.dto.interface.d.ts +3 -0
- package/dist/src/api/interface/vendor_invoice.update.dto.interface.js +1 -0
- package/dist/src/api/interface/vendor_invoice_advance.create.dto.interface.d.ts +5 -0
- package/dist/src/api/interface/vendor_invoice_advance.update.dto.interface.d.ts +17 -0
- package/dist/src/api/interface/vendor_invoice_advance.update.dto.interface.js +17 -0
- package/dist/src/constants/website_lead.constants.d.ts +2 -1
- package/dist/src/constants/website_lead.constants.js +3 -2
- package/dist/src/entities/enums/vendor_advance_payment_mode.d.ts +7 -0
- package/dist/src/entities/enums/vendor_advance_payment_mode.js +11 -0
- package/dist/src/entities/enums/vendor_advance_status_enum.d.ts +5 -0
- package/dist/src/entities/enums/vendor_advance_status_enum.js +9 -0
- package/dist/src/entities/enums/vendor_invoice_action.enum.d.ts +2 -1
- package/dist/src/entities/enums/vendor_invoice_action.enum.js +1 -0
- package/dist/src/entities/enums/vendor_invoice_advance_status_enum.d.ts +5 -0
- package/dist/src/entities/enums/vendor_invoice_advance_status_enum.js +9 -0
- package/dist/src/entities/flow-configs/vendor-invoice-flow.config.d.ts +4 -0
- package/dist/src/entities/flow-configs/vendor-invoice-flow.config.js +25 -0
- package/dist/src/entities/flow-configs/vendor_advance_flow.config.d.ts +6 -0
- package/dist/src/entities/flow-configs/vendor_advance_flow.config.js +75 -0
- package/dist/src/entities/flow-configs/vendor_invoice_advance_flow.config.d.ts +6 -0
- package/dist/src/entities/flow-configs/vendor_invoice_advance_flow.config.js +70 -0
- package/dist/src/entities/flow-configs/vendor_tds_liability_flow.config.js +1 -1
- package/dist/src/entities/index.d.ts +9 -0
- package/dist/src/entities/index.js +9 -0
- package/dist/src/entities/interface/entity.utils.interface.d.ts +9 -3
- package/dist/src/entities/interface/entity.utils.interface.js +2 -0
- package/dist/src/entities/interface/vendor_advance.entity.interface.d.ts +24 -0
- package/dist/src/entities/interface/vendor_advance.entity.interface.js +2 -0
- package/dist/src/entities/interface/vendor_invoice_advance.entity.interface.d.ts +11 -0
- package/dist/src/entities/interface/vendor_invoice_advance.entity.interface.js +2 -0
- package/dist/src/entities/model/entity.model.interface.js +4 -0
- package/dist/src/entities/model/vendor.entity.model.d.ts +24 -5
- package/dist/src/entities/model/vendor.entity.model.js +74 -4
- package/dist/src/entities/model/vendor_advance.entity.model.d.ts +80 -0
- package/dist/src/entities/model/vendor_advance.entity.model.js +262 -0
- package/dist/src/entities/model/vendor_invoice_advance.entity.model.d.ts +73 -0
- package/dist/src/entities/model/vendor_invoice_advance.entity.model.js +243 -0
- package/package.json +56 -50
- package/dist/src/api/interface/document_upload.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/document_upload.create.dto.interface.autocode.js +0 -27
- package/dist/src/api/interface/document_upload.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/document_upload.update.dto.interface.autocode.js +0 -8
- package/dist/src/api/interface/expense_head.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/expense_head.create.dto.interface.autocode.js +0 -4
- package/dist/src/api/interface/expense_head.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/expense_head.update.dto.interface.autocode.js +0 -3
- package/dist/src/api/interface/gst_rate.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/gst_rate.create.dto.interface.autocode.js +0 -4
- package/dist/src/api/interface/gst_rate.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/gst_rate.update.dto.interface.autocode.js +0 -3
- package/dist/src/api/interface/organization_type.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/organization_type.create.dto.interface.autocode.js +0 -4
- package/dist/src/api/interface/organization_type.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/organization_type.update.dto.interface.autocode.js +0 -3
- package/dist/src/api/interface/state.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/state.create.dto.interface.autocode.js +0 -6
- package/dist/src/api/interface/state.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/state.update.dto.interface.autocode.js +0 -10
- package/dist/src/api/interface/tds_rate.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/tds_rate.create.dto.interface.autocode.js +0 -6
- package/dist/src/api/interface/tds_rate.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/tds_rate.update.dto.interface.autocode.js +0 -3
- package/dist/src/api/interface/tds_rate_voucher_type_mapping.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/tds_rate_voucher_type_mapping.create.dto.interface.autocode.js +0 -7
- package/dist/src/api/interface/tds_rate_voucher_type_mapping.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/tds_rate_voucher_type_mapping.update.dto.interface.autocode.js +0 -3
- package/dist/src/api/interface/vendor.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/vendor.create.dto.interface.autocode.js +0 -74
- package/dist/src/api/interface/vendor.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/vendor.update.dto.interface.autocode.js +0 -8
- package/dist/src/api/interface/vendor_invoice.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/vendor_invoice.create.dto.interface.autocode.js +0 -21
- package/dist/src/api/interface/vendor_invoice.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/vendor_invoice.update.dto.interface.autocode.js +0 -8
- package/dist/src/api/interface/vendor_invoice_item.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/vendor_invoice_item.create.dto.interface.autocode.js +0 -6
- package/dist/src/api/interface/vendor_invoice_item.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/vendor_invoice_item.update.dto.interface.autocode.js +0 -6
- package/dist/src/api/interface/voucher_type.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/voucher_type.create.dto.interface.autocode.js +0 -4
- package/dist/src/api/interface/voucher_type.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/voucher_type.update.dto.interface.autocode.js +0 -3
- package/dist/src/api/interface/website_lead.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/website_lead.create.dto.interface.autocode.js +0 -6
- package/dist/src/entities/enums/address_book_status_enum.autocode.d.ts +0 -5
- package/dist/src/entities/enums/address_book_status_enum.autocode.js +0 -9
- package/dist/src/entities/enums/expense_head_status_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/expense_head_status_enum.autocode.js +0 -6
- package/dist/src/entities/enums/gst_rate_status_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/gst_rate_status_enum.autocode.js +0 -6
- package/dist/src/entities/enums/organization_type_status_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/organization_type_status_enum.autocode.js +0 -6
- package/dist/src/entities/enums/state_status_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/state_status_enum.autocode.js +0 -6
- package/dist/src/entities/enums/tds_rate_status_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/tds_rate_status_enum.autocode.js +0 -6
- package/dist/src/entities/enums/vendor_contract_applicability_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/vendor_contract_applicability_enum.autocode.js +0 -5
- package/dist/src/entities/enums/vendor_gst_type_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/vendor_gst_type_enum.autocode.js +0 -5
- package/dist/src/entities/enums/vendor_invoice_action_status_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/vendor_invoice_action_status_enum.autocode.js +0 -5
- package/dist/src/entities/enums/vendor_invoice_status_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/vendor_invoice_status_enum.autocode.js +0 -5
- package/dist/src/entities/enums/vendor_location_type_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/vendor_location_type_enum.autocode.js +0 -5
- package/dist/src/entities/enums/vendor_pan_type_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/vendor_pan_type_enum.autocode.js +0 -5
- package/dist/src/entities/enums/voucher_type_status_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/voucher_type_status_enum.autocode.js +0 -6
- package/dist/src/entities/interface/address-book.entity.interface.autocode.d.ts +0 -13
- package/dist/src/entities/interface/document_upload.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/document_upload.entity.interface.autocode.js +0 -10
- package/dist/src/entities/interface/expense_head.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/expense_head.entity.interface.autocode.js +0 -8
- package/dist/src/entities/interface/gst_rate.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/gst_rate.entity.interface.autocode.js +0 -8
- package/dist/src/entities/interface/organization_type.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/organization_type.entity.interface.autocode.js +0 -8
- package/dist/src/entities/interface/organization_type_tds_rate_mapping.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/organization_type_tds_rate_mapping.entity.interface.autocode.js +0 -7
- package/dist/src/entities/interface/state.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/state.entity.interface.autocode.js +0 -10
- package/dist/src/entities/interface/tds_rate.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/tds_rate.entity.interface.autocode.js +0 -12
- package/dist/src/entities/interface/tds_rate_voucher_type_mapping.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/tds_rate_voucher_type_mapping.entity.interface.autocode.js +0 -7
- package/dist/src/entities/interface/vendor.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/vendor.entity.interface.autocode.js +0 -24
- package/dist/src/entities/interface/vendor_invoice.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/vendor_invoice.entity.interface.autocode.js +0 -18
- package/dist/src/entities/interface/vendor_invoice_item.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/vendor_invoice_item.entity.interface.autocode.js +0 -17
- package/dist/src/entities/interface/voucher_type.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/voucher_type.entity.interface.autocode.js +0 -7
- package/dist/src/entities/model/document_upload.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/document_upload.entity.model.autocode.js +0 -25
- package/dist/src/entities/model/expense_head.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/expense_head.entity.model.autocode.js +0 -33
- package/dist/src/entities/model/gst_rate.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/gst_rate.entity.model.autocode.js +0 -22
- package/dist/src/entities/model/office_location.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/office_location.entity.model.autocode.js +0 -23
- package/dist/src/entities/model/organization_type.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/organization_type.entity.model.autocode.js +0 -22
- package/dist/src/entities/model/organization_type_tds_rate_mapping.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/organization_type_tds_rate_mapping.entity.model.autocode.js +0 -24
- package/dist/src/entities/model/tds_rate.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/tds_rate.entity.model.autocode.js +0 -261
- package/dist/src/entities/model/tds_rate_voucher_type_mapping.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/tds_rate_voucher_type_mapping.entity.model.autocode.js +0 -22
- package/dist/src/entities/model/vendor.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/vendor.entity.model.autocode.js +0 -60
- package/dist/src/entities/model/vendor_invoice.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/vendor_invoice.entity.model.autocode.js +0 -67
- package/dist/src/entities/model/vendor_invoice_item.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/vendor_invoice_item.entity.model.autocode.js +0 -132
- package/dist/src/entities/model/voucher_type.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/voucher_type.entity.model.autocode.js +0 -32
- /package/dist/src/{entities/interface/address-book.entity.interface.autocode.js → api/interface/vendor_invoice_advance.create.dto.interface.js} +0 -0
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
-
// import { BaseEntityModel } from "./base.entity.model";
|
|
4
|
-
// import { RelationConfigs } from "../interface/relation-config.interface";
|
|
5
|
-
// import { IOfficeLocationEntity } from "../interface/office_location.entity.interface";
|
|
6
|
-
// export class OfficeLocationEntityModel extends BaseEntityModel<EntityEnum.OFFICE_LOCATION> implements IOfficeLocationEntity {
|
|
7
|
-
// id: number = 0;
|
|
8
|
-
// name: string = "";
|
|
9
|
-
// country: string = "";
|
|
10
|
-
// createdOn: number = 0;
|
|
11
|
-
// updatedOn: number = 0;
|
|
12
|
-
// createdBy: number = 0;
|
|
13
|
-
// updatedBy: number = 0;
|
|
14
|
-
// static relationConfigs: RelationConfigs<[], EntityEnum.OFFICE_LOCATION> = [];
|
|
15
|
-
// static fromEntity(entity: IOfficeLocationEntity): OfficeLocationEntityModel {
|
|
16
|
-
// const result = new OfficeLocationEntityModel(EntityEnum.OFFICE_LOCATION);
|
|
17
|
-
// Object.assign(result, entity);
|
|
18
|
-
// return result;
|
|
19
|
-
// }
|
|
20
|
-
// getRelationConfigs(): any[] {
|
|
21
|
-
// return this.constructor.prototype.constructor.relationConfigs || [];
|
|
22
|
-
// }
|
|
23
|
-
// }
|
|
File without changes
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
-
// import { BaseEntityModel } from "./base.entity.model";
|
|
4
|
-
// export class OrganizationTypeEntityModel extends BaseEntityModel<EntityEnum.ORGANIZATION_TYPE> implements IOrganizationTypeEntity {
|
|
5
|
-
// id: number = 0;
|
|
6
|
-
// code: string = "";
|
|
7
|
-
// name: string = "";
|
|
8
|
-
// status: OrganizationTypeStatusEnum = OrganizationTypeStatusEnum.ACTIVE;
|
|
9
|
-
// createdOn: number = 0;
|
|
10
|
-
// updatedOn: number = 0;
|
|
11
|
-
// createdBy: number = 0;
|
|
12
|
-
// updatedBy: number = 0;
|
|
13
|
-
// static relationConfigs = [];
|
|
14
|
-
// static fromEntity(entity: IOrganizationTypeEntity): OrganizationTypeEntityModel {
|
|
15
|
-
// const result = new OrganizationTypeEntityModel(EntityEnum.ORGANIZATION_TYPE);
|
|
16
|
-
// Object.assign(result, entity);
|
|
17
|
-
// return result;
|
|
18
|
-
// }
|
|
19
|
-
// getRelationConfigs(): any[] {
|
|
20
|
-
// return this.constructor.prototype.constructor.relationConfigs || [];
|
|
21
|
-
// }
|
|
22
|
-
// }
|
package/dist/src/entities/model/organization_type_tds_rate_mapping.entity.model.autocode.d.ts
DELETED
|
File without changes
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
-
// import { BaseEntityModel } from "./base.entity.model";
|
|
4
|
-
// export class OrganizationTypeTdsRateMappingEntityModel
|
|
5
|
-
// extends BaseEntityModel<EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING>
|
|
6
|
-
// implements IOrganizationTypeTdsRateMappingEntity
|
|
7
|
-
// {
|
|
8
|
-
// id: number = 0;
|
|
9
|
-
// organizationTypeId: number = 0;
|
|
10
|
-
// tdsRateId: number = 0;
|
|
11
|
-
// createdOn: number = 0;
|
|
12
|
-
// updatedOn: number = 0;
|
|
13
|
-
// createdBy: number = 0;
|
|
14
|
-
// updatedBy: number = 0;
|
|
15
|
-
// static relationConfigs = [];
|
|
16
|
-
// static fromEntity(entity: IOrganizationTypeTdsRateMappingEntity): OrganizationTypeTdsRateMappingEntityModel {
|
|
17
|
-
// const result = new OrganizationTypeTdsRateMappingEntityModel(EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING);
|
|
18
|
-
// Object.assign(result, entity);
|
|
19
|
-
// return result;
|
|
20
|
-
// }
|
|
21
|
-
// getRelationConfigs(): any[] {
|
|
22
|
-
// return this.constructor.prototype.constructor.relationConfigs || [];
|
|
23
|
-
// }
|
|
24
|
-
// }
|
|
File without changes
|
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
-
// import { BaseEntityModel } from "./base.entity.model";
|
|
4
|
-
// import { RelationConfigs } from "../interface/relation-config.interface";
|
|
5
|
-
// import { RelationType } from "../enums/relation-type.enum";
|
|
6
|
-
// import { IUserEntity } from "../interface/user.entity.interface";
|
|
7
|
-
// import { AppBadRequestException } from "../../exceptions";
|
|
8
|
-
// import { ErrorKeyEnum } from "../../enums/error.key.enum";
|
|
9
|
-
// import { UserEntityModel } from "./user.entity.model";
|
|
10
|
-
// import { IRowActions } from "./interface/row-actions.interface";
|
|
11
|
-
// import { EntityActionFlowResolverV2 } from "../../utils";
|
|
12
|
-
// import { ITdsRateEntity } from "../interface/tds_rate.entity.interface";
|
|
13
|
-
// import { TdsRateStatusEnum } from "../enums/tds_rate_status_enum";
|
|
14
|
-
// import { OrganizationTypeTdsRateMappingEntityModel } from "./organization_type_tds_rate_mapping.entity.model";
|
|
15
|
-
// import { TdsRateVoucherTypeMappingEntityModel } from "./tds_rate_voucher_type_mapping.entity.model";
|
|
16
|
-
// import { OrganizationTypeEntityModel } from "./organization_type.entity.model";
|
|
17
|
-
// import { VoucherTypeEntityModel } from "./voucher_type.entity.model";
|
|
18
|
-
// import { VendorInvoiceItemEntityModel } from "./vendor_invoice_item.entity.model";
|
|
19
|
-
// import { VendorTdsLiabilityEntityModel } from "./vendor_tds_liability.entity.model";
|
|
20
|
-
// import { VendorTdsChallanEntityModel } from "./vendor_tds_challan.entity.model";
|
|
21
|
-
// import { VendorEntityModel } from "./vendor.entity.model";
|
|
22
|
-
// import { StateEntityModel } from "./state.entity.model";
|
|
23
|
-
// import { CountryEntityModel } from "./country.entity.model";
|
|
24
|
-
// import { VendorInvoiceEntityModel } from "./vendor_invoice.entity.model";
|
|
25
|
-
// import { OfficeLocationEntityModel } from "./office_location.entity.model";
|
|
26
|
-
// import { ExpenseHeadEntityModel } from "./expense_head.entity.model";
|
|
27
|
-
// import { GstRateEntityModel } from "./gst_rate.entity.model";
|
|
28
|
-
// import { VendorInvoicePaymentEntityModel } from "./vendor_invoice_payment.entity.model";
|
|
29
|
-
// import { BankEntityModel } from "./bank.entity.model";
|
|
30
|
-
// import { TdsRateActionEnum } from "../../api";
|
|
31
|
-
// import { ITdsRateFlowConfigContextData, tdsRateFlowConfig } from "../flow-configs/tds_rate_flow.config";
|
|
32
|
-
// export class TdsRateEntityModel extends BaseEntityModel<EntityEnum.TDS_RATE> implements ITdsRateEntity {
|
|
33
|
-
// id: number = 0;
|
|
34
|
-
// section: string = "";
|
|
35
|
-
// code: string = "";
|
|
36
|
-
// description?: string;
|
|
37
|
-
// panAvailableRate: number = 0;
|
|
38
|
-
// panNotAvailableRate: number = 0;
|
|
39
|
-
// effectiveFrom: number = 0;
|
|
40
|
-
// status: TdsRateStatusEnum = TdsRateStatusEnum.ACTIVE;
|
|
41
|
-
// createdOn: number = 0;
|
|
42
|
-
// updatedOn: number = 0;
|
|
43
|
-
// createdBy: number = 0;
|
|
44
|
-
// updatedBy: number = 0;
|
|
45
|
-
// organizationTypeTdsRateMappings?: OrganizationTypeTdsRateMappingEntityModel[];
|
|
46
|
-
// tdsRateVoucherTypeMappings?: TdsRateVoucherTypeMappingEntityModel[];
|
|
47
|
-
// vendorInvoiceItems?: VendorInvoiceItemEntityModel[];
|
|
48
|
-
// vendorTdsLiabilitys?: VendorTdsLiabilityEntityModel[];
|
|
49
|
-
// vendorTdsChallans?: VendorTdsChallanEntityModel[];
|
|
50
|
-
// static relationConfigs: RelationConfigs<
|
|
51
|
-
// [
|
|
52
|
-
// EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING,
|
|
53
|
-
// EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING,
|
|
54
|
-
// EntityEnum.VENDOR_INVOICE_ITEM,
|
|
55
|
-
// EntityEnum.VENDOR_TDS_LIABILITY,
|
|
56
|
-
// EntityEnum.VENDOR_TDS_CHALLAN,
|
|
57
|
-
// ],
|
|
58
|
-
// EntityEnum.TDS_RATE
|
|
59
|
-
// > = [
|
|
60
|
-
// {
|
|
61
|
-
// name: EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING,
|
|
62
|
-
// relation: RelationType.MANY,
|
|
63
|
-
// key: "organizationTypeTdsRateMappings",
|
|
64
|
-
// mapKeyConfig: {
|
|
65
|
-
// relationKey: "tdsRateId",
|
|
66
|
-
// key: "id",
|
|
67
|
-
// },
|
|
68
|
-
// },
|
|
69
|
-
// {
|
|
70
|
-
// name: EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING,
|
|
71
|
-
// relation: RelationType.MANY,
|
|
72
|
-
// key: "tdsRateVoucherTypeMappings",
|
|
73
|
-
// mapKeyConfig: {
|
|
74
|
-
// relationKey: "tdsRateId",
|
|
75
|
-
// key: "id",
|
|
76
|
-
// },
|
|
77
|
-
// },
|
|
78
|
-
// {
|
|
79
|
-
// name: EntityEnum.VENDOR_INVOICE_ITEM,
|
|
80
|
-
// relation: RelationType.MANY,
|
|
81
|
-
// key: "vendorInvoiceItems",
|
|
82
|
-
// mapKeyConfig: {
|
|
83
|
-
// relationKey: "tdsRateId",
|
|
84
|
-
// key: "id",
|
|
85
|
-
// },
|
|
86
|
-
// },
|
|
87
|
-
// {
|
|
88
|
-
// name: EntityEnum.VENDOR_TDS_LIABILITY,
|
|
89
|
-
// relation: RelationType.MANY,
|
|
90
|
-
// key: "vendorTdsLiabilitys",
|
|
91
|
-
// mapKeyConfig: {
|
|
92
|
-
// relationKey: "tdsRateId",
|
|
93
|
-
// key: "id",
|
|
94
|
-
// },
|
|
95
|
-
// },
|
|
96
|
-
// {
|
|
97
|
-
// name: EntityEnum.VENDOR_TDS_CHALLAN,
|
|
98
|
-
// relation: RelationType.MANY,
|
|
99
|
-
// key: "vendorTdsChallans",
|
|
100
|
-
// mapKeyConfig: {
|
|
101
|
-
// relationKey: "tdsRateId",
|
|
102
|
-
// key: "id",
|
|
103
|
-
// },
|
|
104
|
-
// },
|
|
105
|
-
// ];
|
|
106
|
-
// static fromEntity(entity: ITdsRateEntity): TdsRateEntityModel {
|
|
107
|
-
// const result = new TdsRateEntityModel(EntityEnum.TDS_RATE);
|
|
108
|
-
// Object.assign(result, entity);
|
|
109
|
-
// return result;
|
|
110
|
-
// }
|
|
111
|
-
// getRelationConfigs(): any[] {
|
|
112
|
-
// return this.constructor.prototype.constructor.relationConfigs || [];
|
|
113
|
-
// }
|
|
114
|
-
// get organizationTypes(): OrganizationTypeEntityModel[] {
|
|
115
|
-
// if (this.organizationTypeTdsRateMappings) {
|
|
116
|
-
// return this.organizationTypeTdsRateMappings.filter((mapping) => mapping.organizationType).map((mapping) => mapping.organizationType!);
|
|
117
|
-
// }
|
|
118
|
-
// return [];
|
|
119
|
-
// }
|
|
120
|
-
// get voucherTypes(): VoucherTypeEntityModel[] {
|
|
121
|
-
// if (this.tdsRateVoucherTypeMappings) {
|
|
122
|
-
// return this.tdsRateVoucherTypeMappings.filter((mapping) => mapping.voucherType).map((mapping) => mapping.voucherType!);
|
|
123
|
-
// }
|
|
124
|
-
// return [];
|
|
125
|
-
// }
|
|
126
|
-
// get vendors(): VendorEntityModel[] | undefined {
|
|
127
|
-
// // many_to_many -> many_to_many verified
|
|
128
|
-
// // {'tds_rate->organization_type': 'many_to_many', 'organization_type->vendor': 'one_to_many'}
|
|
129
|
-
// // ['tds_rate', 'organization_type'] -> many_to_many
|
|
130
|
-
// // ['organization_type', 'vendor'] -> one_to_many
|
|
131
|
-
// return this.organizationTypes
|
|
132
|
-
// ?.flatMap((organizationType) => organizationType.vendors)
|
|
133
|
-
// .filter((vendor): vendor is VendorEntityModel => !!vendor)
|
|
134
|
-
// .reduce((accumulator: VendorEntityModel[], current) => {
|
|
135
|
-
// if (!accumulator.some((vendor) => vendor.id === current.id)) {
|
|
136
|
-
// accumulator.push(current);
|
|
137
|
-
// }
|
|
138
|
-
// return accumulator;
|
|
139
|
-
// }, []);
|
|
140
|
-
// }
|
|
141
|
-
// get states(): StateEntityModel[] | undefined {
|
|
142
|
-
// // many_to_many -> many_to_many verified
|
|
143
|
-
// // {'tds_rate->organization_type': 'many_to_many', 'organization_type->vendor': 'one_to_many', 'vendor->state': 'many_to_one'}
|
|
144
|
-
// // ['organization_type', 'vendor'] -> one_to_many
|
|
145
|
-
// // ['vendor', 'state'] -> many_to_one
|
|
146
|
-
// return this.vendors
|
|
147
|
-
// ?.flatMap((vendor) => vendor.state)
|
|
148
|
-
// .filter((state): state is StateEntityModel => !!state)
|
|
149
|
-
// .reduce((accumulator: StateEntityModel[], current) => {
|
|
150
|
-
// if (!accumulator.some((state) => state.id === current.id)) {
|
|
151
|
-
// accumulator.push(current);
|
|
152
|
-
// }
|
|
153
|
-
// return accumulator;
|
|
154
|
-
// }, []);
|
|
155
|
-
// }
|
|
156
|
-
// get countrys(): CountryEntityModel[] | undefined {
|
|
157
|
-
// // many_to_many -> many_to_many verified
|
|
158
|
-
// // {'tds_rate->organization_type': 'many_to_many', 'organization_type->vendor': 'one_to_many', 'vendor->country': 'many_to_one'}
|
|
159
|
-
// // ['organization_type', 'vendor'] -> one_to_many
|
|
160
|
-
// // ['vendor', 'country'] -> many_to_one
|
|
161
|
-
// return this.vendors
|
|
162
|
-
// ?.flatMap((vendor) => vendor.country)
|
|
163
|
-
// .filter((country): country is CountryEntityModel => !!country)
|
|
164
|
-
// .reduce((accumulator: CountryEntityModel[], current) => {
|
|
165
|
-
// if (!accumulator.some((country) => country.id === current.id)) {
|
|
166
|
-
// accumulator.push(current);
|
|
167
|
-
// }
|
|
168
|
-
// return accumulator;
|
|
169
|
-
// }, []);
|
|
170
|
-
// }
|
|
171
|
-
// get vendorInvoices(): VendorInvoiceEntityModel[] | undefined {
|
|
172
|
-
// // one_to_many -> many_to_many mismatch
|
|
173
|
-
// // {'tds_rate->organization_type': 'many_to_many', 'organization_type->vendor': 'one_to_many', 'vendor->vendor_invoice': 'one_to_many'}
|
|
174
|
-
// // ['organization_type', 'vendor'] -> one_to_many
|
|
175
|
-
// // ['vendor', 'vendor_invoice'] -> one_to_many
|
|
176
|
-
// return this.vendors
|
|
177
|
-
// ?.flatMap((vendor) => vendor.vendorInvoices)
|
|
178
|
-
// .filter((vendorInvoice): vendorInvoice is VendorInvoiceEntityModel => !!vendorInvoice)
|
|
179
|
-
// .reduce((accumulator: VendorInvoiceEntityModel[], current) => {
|
|
180
|
-
// if (!accumulator.some((vendorInvoice) => vendorInvoice.id === current.id)) {
|
|
181
|
-
// accumulator.push(current);
|
|
182
|
-
// }
|
|
183
|
-
// return accumulator;
|
|
184
|
-
// }, []);
|
|
185
|
-
// }
|
|
186
|
-
// get officeLocations(): OfficeLocationEntityModel[] | undefined {
|
|
187
|
-
// // many_to_many -> many_to_many verified
|
|
188
|
-
// // {'tds_rate->organization_type': 'many_to_many', 'organization_type->vendor': 'one_to_many', 'vendor->vendor_invoice': 'one_to_many', 'vendor_invoice->office_location': 'many_to_one'}
|
|
189
|
-
// // ['vendor', 'vendor_invoice'] -> one_to_many
|
|
190
|
-
// // ['vendor_invoice', 'office_location'] -> many_to_one
|
|
191
|
-
// return this.vendorInvoices
|
|
192
|
-
// ?.flatMap((vendorInvoice) => vendorInvoice.officeLocation)
|
|
193
|
-
// .filter((officeLocation): officeLocation is OfficeLocationEntityModel => !!officeLocation)
|
|
194
|
-
// .reduce((accumulator: OfficeLocationEntityModel[], current) => {
|
|
195
|
-
// if (!accumulator.some((officeLocation) => officeLocation.id === current.id)) {
|
|
196
|
-
// accumulator.push(current);
|
|
197
|
-
// }
|
|
198
|
-
// return accumulator;
|
|
199
|
-
// }, []);
|
|
200
|
-
// }
|
|
201
|
-
// get expenseHeads(): ExpenseHeadEntityModel[] | undefined {
|
|
202
|
-
// // many_to_many -> many_to_many verified
|
|
203
|
-
// // {'tds_rate->voucher_type': 'many_to_many', 'voucher_type->expense_head': 'one_to_many'}
|
|
204
|
-
// // ['tds_rate', 'voucher_type'] -> many_to_many
|
|
205
|
-
// // ['voucher_type', 'expense_head'] -> one_to_many
|
|
206
|
-
// return this.voucherTypes
|
|
207
|
-
// ?.flatMap((voucherType) => voucherType.expenseHeads)
|
|
208
|
-
// .filter((expenseHead): expenseHead is ExpenseHeadEntityModel => !!expenseHead)
|
|
209
|
-
// .reduce((accumulator: ExpenseHeadEntityModel[], current) => {
|
|
210
|
-
// if (!accumulator.some((expenseHead) => expenseHead.id === current.id)) {
|
|
211
|
-
// accumulator.push(current);
|
|
212
|
-
// }
|
|
213
|
-
// return accumulator;
|
|
214
|
-
// }, []);
|
|
215
|
-
// }
|
|
216
|
-
// get gstRates(): GstRateEntityModel[] | undefined {
|
|
217
|
-
// // many_to_many -> many_to_many verified
|
|
218
|
-
// // {'tds_rate->vendor_invoice_item': 'one_to_many', 'vendor_invoice_item->gst_rate': 'many_to_one'}
|
|
219
|
-
// // ['tds_rate', 'vendor_invoice_item'] -> one_to_many
|
|
220
|
-
// // ['vendor_invoice_item', 'gst_rate'] -> many_to_one
|
|
221
|
-
// return this.vendorInvoiceItems
|
|
222
|
-
// ?.flatMap((vendorInvoiceItem) => vendorInvoiceItem.gstRate)
|
|
223
|
-
// .filter((gstRate): gstRate is GstRateEntityModel => !!gstRate)
|
|
224
|
-
// .reduce((accumulator: GstRateEntityModel[], current) => {
|
|
225
|
-
// if (!accumulator.some((gstRate) => gstRate.id === current.id)) {
|
|
226
|
-
// accumulator.push(current);
|
|
227
|
-
// }
|
|
228
|
-
// return accumulator;
|
|
229
|
-
// }, []);
|
|
230
|
-
// }
|
|
231
|
-
// get vendorInvoicePayments(): VendorInvoicePaymentEntityModel[] | undefined {
|
|
232
|
-
// // one_to_many -> many_to_many mismatch
|
|
233
|
-
// // {'tds_rate->organization_type': 'many_to_many', 'organization_type->vendor': 'one_to_many', 'vendor->vendor_invoice': 'one_to_many', 'vendor_invoice->vendor_invoice_payment': 'one_to_many'}
|
|
234
|
-
// // ['vendor', 'vendor_invoice'] -> one_to_many
|
|
235
|
-
// // ['vendor_invoice', 'vendor_invoice_payment'] -> one_to_many
|
|
236
|
-
// return this.vendorInvoices
|
|
237
|
-
// ?.flatMap((vendorInvoice) => vendorInvoice.vendorInvoicePayments)
|
|
238
|
-
// .filter((vendorInvoicePayment): vendorInvoicePayment is VendorInvoicePaymentEntityModel => !!vendorInvoicePayment)
|
|
239
|
-
// .reduce((accumulator: VendorInvoicePaymentEntityModel[], current) => {
|
|
240
|
-
// if (!accumulator.some((vendorInvoicePayment) => vendorInvoicePayment.id === current.id)) {
|
|
241
|
-
// accumulator.push(current);
|
|
242
|
-
// }
|
|
243
|
-
// return accumulator;
|
|
244
|
-
// }, []);
|
|
245
|
-
// }
|
|
246
|
-
// get banks(): BankEntityModel[] | undefined {
|
|
247
|
-
// // many_to_many -> many_to_many verified
|
|
248
|
-
// // {'tds_rate->vendor_tds_challan': 'one_to_many', 'vendor_tds_challan->bank': 'many_to_one'}
|
|
249
|
-
// // ['tds_rate', 'vendor_tds_challan'] -> one_to_many
|
|
250
|
-
// // ['vendor_tds_challan', 'bank'] -> many_to_one
|
|
251
|
-
// return this.vendorTdsChallans
|
|
252
|
-
// ?.flatMap((vendorTdsChallan) => vendorTdsChallan.bank)
|
|
253
|
-
// .filter((bank): bank is BankEntityModel => !!bank)
|
|
254
|
-
// .reduce((accumulator: BankEntityModel[], current) => {
|
|
255
|
-
// if (!accumulator.some((bank) => bank.id === current.id)) {
|
|
256
|
-
// accumulator.push(current);
|
|
257
|
-
// }
|
|
258
|
-
// return accumulator;
|
|
259
|
-
// }, []);
|
|
260
|
-
// }
|
|
261
|
-
// }
|
|
File without changes
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
-
// import { BaseEntityModel } from "./base.entity.model";
|
|
4
|
-
// export class TdsRateVoucherTypeMappingEntityModel
|
|
5
|
-
// extends BaseEntityModel<EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING>
|
|
6
|
-
// implements ITdsRateVoucherTypeMappingEntity
|
|
7
|
-
// {
|
|
8
|
-
// id: number = 0;
|
|
9
|
-
// createdOn: number = 0;
|
|
10
|
-
// updatedOn: number = 0;
|
|
11
|
-
// createdBy: number = 0;
|
|
12
|
-
// updatedBy: number = 0;
|
|
13
|
-
// static relationConfigs: RelationConfigs<never, EnumEntityType<EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING>> = [];
|
|
14
|
-
// static fromEntity(entity: ITdsRateVoucherTypeMappingEntity): TdsRateVoucherTypeMappingEntityModel {
|
|
15
|
-
// const result = new TdsRateVoucherTypeMappingEntityModel(EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING);
|
|
16
|
-
// Object.assign(result, entity);
|
|
17
|
-
// return result;
|
|
18
|
-
// }
|
|
19
|
-
// getRelationConfigs(): any[] {
|
|
20
|
-
// return this.constructor.prototype.constructor.relationConfigs || [];
|
|
21
|
-
// }
|
|
22
|
-
// }
|
|
File without changes
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
-
// import { BaseEntityModel } from "./base.entity.model";
|
|
4
|
-
// import { RelationConfigs } from "../interface/relation-config.interface";
|
|
5
|
-
// import { IVendorEntity } from "../interface/vendor.entity.interface";
|
|
6
|
-
// export class VendorEntityModel extends BaseEntityModel<EntityEnum.VENDOR> implements IVendorEntity {
|
|
7
|
-
// name: string = "";
|
|
8
|
-
// locationType: VendorLocationTypeEnum = VendorLocationTypeEnum.DOMESTIC;
|
|
9
|
-
// address?: string;
|
|
10
|
-
// city?: string;
|
|
11
|
-
// pincode?: string;
|
|
12
|
-
// state: string = "";
|
|
13
|
-
// country: string = "";
|
|
14
|
-
// gstType: VendorGstTypeEnum = VendorGstTypeEnum.REGISTERED;
|
|
15
|
-
// gstNo?: string;
|
|
16
|
-
// panType?: VendorPanTypeEnum;
|
|
17
|
-
// contractApplicability: VendorContractApplicabilityEnum = VendorContractApplicabilityEnum.YES;
|
|
18
|
-
// panDocument?: string;
|
|
19
|
-
// gstDocument?: string;
|
|
20
|
-
// contractDocument?: string;
|
|
21
|
-
// remarks?: string;
|
|
22
|
-
// paymentDueDays?: number;
|
|
23
|
-
// attachmentDocuments?: string;
|
|
24
|
-
// contactDetail?: string;
|
|
25
|
-
// bankDetail?: string;
|
|
26
|
-
// createdOn: number = 0;
|
|
27
|
-
// updatedOn: number = 0;
|
|
28
|
-
// createdBy: number = 0;
|
|
29
|
-
// updatedBy: number = 0;
|
|
30
|
-
// state?: StateEntityModel;
|
|
31
|
-
// country?: CountryEntityModel;
|
|
32
|
-
// static relationConfigs: RelationConfigs<[EntityEnum.STATE, EntityEnum.COUNTRY], EntityEnum.VENDOR> = [
|
|
33
|
-
// {
|
|
34
|
-
// name: EntityEnum.STATE,
|
|
35
|
-
// relation: RelationType.ONE,
|
|
36
|
-
// key: "state",
|
|
37
|
-
// mapKeyConfig: {
|
|
38
|
-
// relationKey: "name",
|
|
39
|
-
// key: "state",
|
|
40
|
-
// },
|
|
41
|
-
// },
|
|
42
|
-
// {
|
|
43
|
-
// name: EntityEnum.COUNTRY,
|
|
44
|
-
// relation: RelationType.ONE,
|
|
45
|
-
// key: "country",
|
|
46
|
-
// mapKeyConfig: {
|
|
47
|
-
// relationKey: "name",
|
|
48
|
-
// key: "country",
|
|
49
|
-
// },
|
|
50
|
-
// },
|
|
51
|
-
// ];
|
|
52
|
-
// static fromEntity(entity: IVendorEntity): VendorEntityModel {
|
|
53
|
-
// const result = new VendorEntityModel(EntityEnum.VENDOR);
|
|
54
|
-
// Object.assign(result, entity);
|
|
55
|
-
// return result;
|
|
56
|
-
// }
|
|
57
|
-
// getRelationConfigs(): any[] {
|
|
58
|
-
// return this.constructor.prototype.constructor.relationConfigs || [];
|
|
59
|
-
// }
|
|
60
|
-
// }
|
|
File without changes
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
-
// import { BaseEntityModel } from "./base.entity.model";
|
|
4
|
-
// import { RelationConfigs } from "../interface/relation-config.interface";
|
|
5
|
-
// import { RelationType } from "../enums/relation-type.enum";
|
|
6
|
-
// import { IVendorInvoiceEntity } from "../interface/vendor_invoice.entity.interface";
|
|
7
|
-
// import { VendorInvoicePaidStatusEnum } from "../enums/vendor_invoice_status_enum";
|
|
8
|
-
// import { VendorInvoiceStatusEnum } from "../enums/vendor_invoice_action_status_enum";
|
|
9
|
-
// import { VendorEntityModel } from "./vendor.entity.model";
|
|
10
|
-
// import { OfficeLocationEntityModel } from "./office_location.entity.model";
|
|
11
|
-
// export class VendorInvoiceEntityModel extends BaseEntityModel<EntityEnum.VENDOR_INVOICE> implements IVendorInvoiceEntity {
|
|
12
|
-
// id: number = 0;
|
|
13
|
-
// vendorId: number = 0;
|
|
14
|
-
// serviceLocationId: number = 0;
|
|
15
|
-
// invoiceNo: string = "";
|
|
16
|
-
// invoiceDate: number = 0;
|
|
17
|
-
// dueDate?: number;
|
|
18
|
-
// voucherNo?: string;
|
|
19
|
-
// voucherDate?: number;
|
|
20
|
-
// invoiceDocuments: string = "";
|
|
21
|
-
// status: VendorInvoicePaidStatusEnum = VendorInvoicePaidStatusEnum.PENDING;
|
|
22
|
-
// actionStatus: VendorInvoiceStatusEnum = VendorInvoiceStatusEnum.PENDING_APPROVAL;
|
|
23
|
-
// createdOn: number = 0;
|
|
24
|
-
// updatedOn: number = 0;
|
|
25
|
-
// createdBy: number = 0;
|
|
26
|
-
// updatedBy: number = 0;
|
|
27
|
-
// vendor?: VendorEntityModel;
|
|
28
|
-
// officeLocation?: OfficeLocationEntityModel;
|
|
29
|
-
// vendorInvoiceItems?: VendorInvoiceItemEntityModel[];
|
|
30
|
-
// static relationConfigs: RelationConfigs<[EntityEnum.VENDOR, EntityEnum.OFFICE_LOCATION, EntityEnum.VENDOR_INVOICE_ITEM], EntityEnum.VENDOR_INVOICE> = [
|
|
31
|
-
// {
|
|
32
|
-
// name: EntityEnum.VENDOR,
|
|
33
|
-
// relation: RelationType.ONE,
|
|
34
|
-
// key: "vendor",
|
|
35
|
-
// mapKeyConfig: {
|
|
36
|
-
// relationKey: "id",
|
|
37
|
-
// key: "vendorId",
|
|
38
|
-
// },
|
|
39
|
-
// },
|
|
40
|
-
// {
|
|
41
|
-
// name: EntityEnum.OFFICE_LOCATION,
|
|
42
|
-
// relation: RelationType.ONE,
|
|
43
|
-
// key: "officeLocation",
|
|
44
|
-
// mapKeyConfig: {
|
|
45
|
-
// relationKey: "id",
|
|
46
|
-
// key: "serviceLocationId",
|
|
47
|
-
// },
|
|
48
|
-
// },
|
|
49
|
-
// {
|
|
50
|
-
// name: EntityEnum.VENDOR_INVOICE_ITEM,
|
|
51
|
-
// relation: RelationType.MANY,
|
|
52
|
-
// key: "vendorInvoiceItems",
|
|
53
|
-
// mapKeyConfig: {
|
|
54
|
-
// relationKey: "vendorInvoiceId",
|
|
55
|
-
// key: "id",
|
|
56
|
-
// },
|
|
57
|
-
// },
|
|
58
|
-
// ];
|
|
59
|
-
// static fromEntity(entity: IVendorInvoiceEntity): VendorInvoiceEntityModel {
|
|
60
|
-
// const result = new VendorInvoiceEntityModel(EntityEnum.VENDOR_INVOICE);
|
|
61
|
-
// Object.assign(result, entity);
|
|
62
|
-
// return result;
|
|
63
|
-
// }
|
|
64
|
-
// getRelationConfigs(): any[] {
|
|
65
|
-
// return this.constructor.prototype.constructor.relationConfigs || [];
|
|
66
|
-
// }
|
|
67
|
-
// }
|
|
File without changes
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
-
// import { BaseEntityModel } from "./base.entity.model";
|
|
4
|
-
// import { RelationConfigs } from "../interface/relation-config.interface";
|
|
5
|
-
// import { RelationType } from "../enums/relation-type.enum";
|
|
6
|
-
// import { IVendorInvoiceItemEntity } from "../interface/vendor_invoice_item.entity.interface";
|
|
7
|
-
// import { VendorInvoiceEntityModel } from "./vendor_invoice.entity.model";
|
|
8
|
-
// import { VoucherTypeEntityModel } from "./voucher_type.entity.model";
|
|
9
|
-
// import { ExpenseHeadEntityModel } from "./expense_head.entity.model";
|
|
10
|
-
// import { GstRateEntityModel } from "./gst_rate.entity.model";
|
|
11
|
-
// import { TdsRateEntityModel } from "./tds_rate.entity.model";
|
|
12
|
-
// import { VendorEntityModel } from "./vendor.entity.model";
|
|
13
|
-
// import { StateEntityModel } from "./state.entity.model";
|
|
14
|
-
// import { CountryEntityModel } from "./country.entity.model";
|
|
15
|
-
// import { OrganizationTypeEntityModel } from "./organization_type.entity.model";
|
|
16
|
-
// import { OfficeLocationEntityModel } from "./office_location.entity.model";
|
|
17
|
-
// export class VendorInvoiceItemEntityModel extends BaseEntityModel<EntityEnum.VENDOR_INVOICE_ITEM> implements IVendorInvoiceItemEntity {
|
|
18
|
-
// id: number = 0;
|
|
19
|
-
// vendorInvoiceId: number = 0;
|
|
20
|
-
// voucherTypeId: number = 0;
|
|
21
|
-
// expenseHeadId: number = 0;
|
|
22
|
-
// narration: string = "";
|
|
23
|
-
// basicAmount: number = 0;
|
|
24
|
-
// gstRateId: number = 0;
|
|
25
|
-
// invoiceAmount: number = 0;
|
|
26
|
-
// tdsRateId: number = 0;
|
|
27
|
-
// netAmount: number = 0;
|
|
28
|
-
// quantity: number = 0;
|
|
29
|
-
// rate: number = 0;
|
|
30
|
-
// createdOn: number = 0;
|
|
31
|
-
// updatedOn: number = 0;
|
|
32
|
-
// createdBy: number = 0;
|
|
33
|
-
// updatedBy: number = 0;
|
|
34
|
-
// vendorInvoice?: VendorInvoiceEntityModel;
|
|
35
|
-
// voucherType?: VoucherTypeEntityModel;
|
|
36
|
-
// expenseHead?: ExpenseHeadEntityModel;
|
|
37
|
-
// gstRate?: GstRateEntityModel;
|
|
38
|
-
// tdsRate?: TdsRateEntityModel;
|
|
39
|
-
// static relationConfigs: RelationConfigs<
|
|
40
|
-
// [EntityEnum.VENDOR_INVOICE, EntityEnum.VOUCHER_TYPE, EntityEnum.EXPENSE_HEAD, EntityEnum.GST_RATE, EntityEnum.TDS_RATE],
|
|
41
|
-
// EntityEnum.VENDOR_INVOICE_ITEM
|
|
42
|
-
// > = [
|
|
43
|
-
// {
|
|
44
|
-
// name: EntityEnum.VENDOR_INVOICE,
|
|
45
|
-
// relation: RelationType.ONE,
|
|
46
|
-
// key: "vendorInvoice",
|
|
47
|
-
// mapKeyConfig: {
|
|
48
|
-
// relationKey: "id",
|
|
49
|
-
// key: "vendorInvoiceId",
|
|
50
|
-
// },
|
|
51
|
-
// },
|
|
52
|
-
// {
|
|
53
|
-
// name: EntityEnum.VOUCHER_TYPE,
|
|
54
|
-
// relation: RelationType.ONE,
|
|
55
|
-
// key: "voucherType",
|
|
56
|
-
// mapKeyConfig: {
|
|
57
|
-
// relationKey: "id",
|
|
58
|
-
// key: "voucherTypeId",
|
|
59
|
-
// },
|
|
60
|
-
// },
|
|
61
|
-
// {
|
|
62
|
-
// name: EntityEnum.EXPENSE_HEAD,
|
|
63
|
-
// relation: RelationType.ONE,
|
|
64
|
-
// key: "expenseHead",
|
|
65
|
-
// mapKeyConfig: {
|
|
66
|
-
// relationKey: "id",
|
|
67
|
-
// key: "expenseHeadId",
|
|
68
|
-
// },
|
|
69
|
-
// },
|
|
70
|
-
// {
|
|
71
|
-
// name: EntityEnum.GST_RATE,
|
|
72
|
-
// relation: RelationType.ONE,
|
|
73
|
-
// key: "gstRate",
|
|
74
|
-
// mapKeyConfig: {
|
|
75
|
-
// relationKey: "id",
|
|
76
|
-
// key: "gstRateId",
|
|
77
|
-
// },
|
|
78
|
-
// },
|
|
79
|
-
// {
|
|
80
|
-
// name: EntityEnum.TDS_RATE,
|
|
81
|
-
// relation: RelationType.ONE,
|
|
82
|
-
// key: "tdsRate",
|
|
83
|
-
// mapKeyConfig: {
|
|
84
|
-
// relationKey: "id",
|
|
85
|
-
// key: "tdsRateId",
|
|
86
|
-
// },
|
|
87
|
-
// },
|
|
88
|
-
// ];
|
|
89
|
-
// static fromEntity(entity: IVendorInvoiceItemEntity): VendorInvoiceItemEntityModel {
|
|
90
|
-
// const result = new VendorInvoiceItemEntityModel(EntityEnum.VENDOR_INVOICE_ITEM);
|
|
91
|
-
// Object.assign(result, entity);
|
|
92
|
-
// return result;
|
|
93
|
-
// }
|
|
94
|
-
// getRelationConfigs(): any[] {
|
|
95
|
-
// return this.constructor.prototype.constructor.relationConfigs || [];
|
|
96
|
-
// }
|
|
97
|
-
// get vendor(): VendorEntityModel | undefined {
|
|
98
|
-
// // many_to_one -> many_to_one verified
|
|
99
|
-
// // {'vendor_invoice_item->vendor_invoice': 'many_to_one', 'vendor_invoice->vendor': 'many_to_one'}
|
|
100
|
-
// // ['vendor_invoice_item', 'vendor_invoice'] -> many_to_one
|
|
101
|
-
// // ['vendor_invoice', 'vendor'] -> many_to_one
|
|
102
|
-
// return this.vendorInvoice?.vendor;
|
|
103
|
-
// }
|
|
104
|
-
// get state(): StateEntityModel | undefined {
|
|
105
|
-
// // many_to_one -> many_to_one verified
|
|
106
|
-
// // {'vendor_invoice_item->vendor_invoice': 'many_to_one', 'vendor_invoice->vendor': 'many_to_one', 'vendor->state': 'many_to_one'}
|
|
107
|
-
// // ['vendor_invoice', 'vendor'] -> many_to_one
|
|
108
|
-
// // ['vendor', 'state'] -> many_to_one
|
|
109
|
-
// return this.vendor?.state;
|
|
110
|
-
// }
|
|
111
|
-
// get country(): CountryEntityModel | undefined {
|
|
112
|
-
// // many_to_one -> many_to_one verified
|
|
113
|
-
// // {'vendor_invoice_item->vendor_invoice': 'many_to_one', 'vendor_invoice->vendor': 'many_to_one', 'vendor->country': 'many_to_one'}
|
|
114
|
-
// // ['vendor_invoice', 'vendor'] -> many_to_one
|
|
115
|
-
// // ['vendor', 'country'] -> many_to_one
|
|
116
|
-
// return this.vendor?.country;
|
|
117
|
-
// }
|
|
118
|
-
// get organizationType(): OrganizationTypeEntityModel | undefined {
|
|
119
|
-
// // many_to_one -> many_to_one verified
|
|
120
|
-
// // {'vendor_invoice_item->vendor_invoice': 'many_to_one', 'vendor_invoice->vendor': 'many_to_one', 'vendor->organization_type': 'many_to_one'}
|
|
121
|
-
// // ['vendor_invoice', 'vendor'] -> many_to_one
|
|
122
|
-
// // ['vendor', 'organization_type'] -> many_to_one
|
|
123
|
-
// return this.vendor?.organizationType;
|
|
124
|
-
// }
|
|
125
|
-
// get officeLocation(): OfficeLocationEntityModel | undefined {
|
|
126
|
-
// // many_to_one -> many_to_one verified
|
|
127
|
-
// // {'vendor_invoice_item->vendor_invoice': 'many_to_one', 'vendor_invoice->office_location': 'many_to_one'}
|
|
128
|
-
// // ['vendor_invoice_item', 'vendor_invoice'] -> many_to_one
|
|
129
|
-
// // ['vendor_invoice', 'office_location'] -> many_to_one
|
|
130
|
-
// return this.vendorInvoice?.officeLocation;
|
|
131
|
-
// }
|
|
132
|
-
// }
|
|
File without changes
|