law-common 12.2.1-beta.2 → 12.2.1-beta.4
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 +0 -4
- package/dist/src/api/index.js +0 -4
- package/dist/src/api/interface/billing.create.dto.interface.d.ts +0 -2
- package/dist/src/api/interface/billing.entity.response.d.ts +2 -1
- package/dist/src/api/interface/billing.update.dto.interface.d.ts +2 -0
- package/dist/src/entities/enums/billing-particular-line-item.changed-status.enum.d.ts +6 -0
- package/dist/src/entities/enums/billing-particular-line-item.changed-status.enum.js +10 -0
- package/dist/src/entities/enums/billing-particular-line-item.source.enum.d.ts +5 -0
- package/dist/src/entities/enums/billing-particular-line-item.source.enum.js +10 -0
- package/dist/src/entities/index.d.ts +11 -15
- package/dist/src/entities/index.js +12 -15
- package/dist/src/entities/interface/billing_particular_line_item.entity.interface.d.ts +18 -0
- package/dist/src/entities/interface/entity.utils.interface.d.ts +5 -8
- package/dist/src/entities/interface/entity.utils.interface.js +2 -2
- package/dist/src/entities/model/billing-particular-line-item.entity.model.d.ts +19 -0
- package/dist/src/entities/model/billing-particular-line-item.entity.model.js +34 -0
- package/dist/src/entities/model/billing.entity.model.d.ts +12 -1
- package/dist/src/entities/model/billing.entity.model.js +55 -0
- package/dist/src/entities/model/client-affiliate.entity.model.d.ts +0 -6
- package/dist/src/entities/model/client-affiliate.entity.model.js +0 -29
- package/dist/src/entities/model/client.entity.model.d.ts +0 -1
- package/dist/src/entities/model/client.entity.model.js +0 -3
- package/dist/src/entities/model/entity.model.interface.js +2 -4
- package/package.json +56 -56
- package/dist/src/api/interface/client_debit_note.create.dto.interface.d.ts +0 -12
- package/dist/src/api/interface/client_debit_note.create.dto.interface.js +0 -12
- package/dist/src/api/interface/client_debit_note.update.dto.interface.d.ts +0 -26
- package/dist/src/api/interface/client_debit_note.update.dto.interface.js +0 -18
- package/dist/src/api/interface/client_debit_note_particulars.create.dto.interface.d.ts +0 -5
- package/dist/src/api/interface/client_debit_note_particulars.update.dto.interface.d.ts +0 -22
- package/dist/src/api/interface/client_debit_note_particulars.update.dto.interface.js +0 -17
- package/dist/src/entities/enums/client_debit_note_particulars_status_enum.d.ts +0 -11
- package/dist/src/entities/enums/client_debit_note_particulars_status_enum.js +0 -15
- package/dist/src/entities/enums/client_debit_note_status_enum.d.ts +0 -11
- package/dist/src/entities/enums/client_debit_note_status_enum.js +0 -15
- package/dist/src/entities/flow-configs/client_debit_note_flow.config.d.ts +0 -6
- package/dist/src/entities/flow-configs/client_debit_note_flow.config.js +0 -174
- package/dist/src/entities/flow-configs/client_debit_note_particulars_flow.config.d.ts +0 -6
- package/dist/src/entities/flow-configs/client_debit_note_particulars_flow.config.js +0 -165
- package/dist/src/entities/interface/client_debit_note.entity.interface.d.ts +0 -18
- package/dist/src/entities/interface/client_debit_note.entity.interface.js +0 -2
- package/dist/src/entities/interface/client_debit_note_particulars.entity.interface.d.ts +0 -9
- package/dist/src/entities/interface/client_debit_note_particulars.entity.interface.js +0 -2
- package/dist/src/entities/model/client_debit_note.entity.model.d.ts +0 -57
- package/dist/src/entities/model/client_debit_note.entity.model.js +0 -337
- package/dist/src/entities/model/client_debit_note_particulars.entity.model.d.ts +0 -43
- package/dist/src/entities/model/client_debit_note_particulars.entity.model.js +0 -319
- /package/dist/src/{api/interface/client_debit_note_particulars.create.dto.interface.js → entities/interface/billing_particular_line_item.entity.interface.js} +0 -0
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
# law-common
|
|
1
|
+
# law-common
|
package/dist/src/api/index.d.ts
CHANGED
|
@@ -113,7 +113,3 @@ export * from "./interface/vendor_advance.create.dto.interface";
|
|
|
113
113
|
export * from "./interface/vendor_advance.update.dto.interface";
|
|
114
114
|
export * from "./interface/vendor_invoice_advance.create.dto.interface";
|
|
115
115
|
export * from "./interface/vendor_invoice_advance.update.dto.interface";
|
|
116
|
-
export * from "./interface/client_debit_note.create.dto.interface";
|
|
117
|
-
export * from "./interface/client_debit_note.update.dto.interface";
|
|
118
|
-
export * from "./interface/client_debit_note_particulars.create.dto.interface";
|
|
119
|
-
export * from "./interface/client_debit_note_particulars.update.dto.interface";
|
package/dist/src/api/index.js
CHANGED
|
@@ -133,7 +133,3 @@ __exportStar(require("./interface/vendor_advance.create.dto.interface"), exports
|
|
|
133
133
|
__exportStar(require("./interface/vendor_advance.update.dto.interface"), exports);
|
|
134
134
|
__exportStar(require("./interface/vendor_invoice_advance.create.dto.interface"), exports);
|
|
135
135
|
__exportStar(require("./interface/vendor_invoice_advance.update.dto.interface"), exports);
|
|
136
|
-
__exportStar(require("./interface/client_debit_note.create.dto.interface"), exports);
|
|
137
|
-
__exportStar(require("./interface/client_debit_note.update.dto.interface"), exports);
|
|
138
|
-
__exportStar(require("./interface/client_debit_note_particulars.create.dto.interface"), exports);
|
|
139
|
-
__exportStar(require("./interface/client_debit_note_particulars.update.dto.interface"), exports);
|
|
@@ -11,8 +11,6 @@ export interface IBillingCreateDto extends Omit<IEntityCreateDto<IBillingEntity>
|
|
|
11
11
|
}
|
|
12
12
|
export interface IBillingParticulars {
|
|
13
13
|
invoiceDescription: string;
|
|
14
|
-
invoiceText?: string;
|
|
15
|
-
opeText?: string;
|
|
16
14
|
includeOpeSummary: boolean;
|
|
17
15
|
includePONumber: 0 | 1;
|
|
18
16
|
includeGSTNumber: 0 | 1;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { BillingActionsEnum, BillingStatusEnum, EntityModelRelationHelper, IBillingEntity, IBillingReimbursementExpenseEntity, IBillingTimesheetEntity, IProjectEntity, IUserEntity } from "../../entities";
|
|
1
|
+
import { BillingActionsEnum, BillingStatusEnum, EntityModelRelationHelper, IBillingEntity, IBillingParticularLineItemEntity, IBillingReimbursementExpenseEntity, IBillingTimesheetEntity, IProjectEntity, IUserEntity } from "../../entities";
|
|
2
2
|
import { IUpdateBillingDto } from "./billing.update.dto.interface";
|
|
3
3
|
export type IBillingEntityResponse = {
|
|
4
4
|
billing: IBillingEntity;
|
|
5
5
|
billingReimbursementExpenses?: IBillingReimbursementExpenseEntity[];
|
|
6
6
|
billingTimesheets?: IBillingTimesheetEntity[];
|
|
7
|
+
billingParticularLineItems?: IBillingParticularLineItemEntity[];
|
|
7
8
|
};
|
|
8
9
|
export interface IUserEntityRelation {
|
|
9
10
|
users?: IUserEntity[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BillingActionsEnum, IBillingEntity, IBillingProfileEntity, IBillingReimbursementExpenseUpdateDto, IBillingTimesheetUpdateDto, IEntityUpdateDto } from "../../entities";
|
|
2
|
+
import { IBillingParticularLineItemUpdateDto } from "../../entities/interface/billing_particular_line_item.entity.interface";
|
|
2
3
|
import { IBillingEntityCreateDtoValidationData, IBillingParticulars } from "./billing.create.dto.interface";
|
|
3
4
|
export type IBillingUpdateDtoExclude = "draftInvoiceNumber" | "invoiceNumber";
|
|
4
5
|
export interface IBillingUpdateDto extends Omit<IEntityUpdateDto<IBillingEntity>, IBillingUpdateDtoExclude> {
|
|
@@ -8,6 +9,7 @@ export interface IUpdateBillingDto extends Omit<IBillingUpdateDto, "particulars"
|
|
|
8
9
|
timesheets?: IBillingTimesheetUpdateDto[];
|
|
9
10
|
reimbursementExpenses?: IBillingReimbursementExpenseUpdateDto[];
|
|
10
11
|
particulars?: IBillingParticulars;
|
|
12
|
+
billingParticularLineItems?: IBillingParticularLineItemUpdateDto[];
|
|
11
13
|
}
|
|
12
14
|
export interface IBillingUpdateDtoValidationData extends IBillingEntityCreateDtoValidationData {
|
|
13
15
|
billingEntity: IBillingEntity;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingParticularLineItemChangedStatusEnum = void 0;
|
|
4
|
+
var BillingParticularLineItemChangedStatusEnum;
|
|
5
|
+
(function (BillingParticularLineItemChangedStatusEnum) {
|
|
6
|
+
BillingParticularLineItemChangedStatusEnum["UNCHANGED"] = "unchanged";
|
|
7
|
+
BillingParticularLineItemChangedStatusEnum["UPDATED"] = "updated";
|
|
8
|
+
BillingParticularLineItemChangedStatusEnum["DELETED"] = "deleted";
|
|
9
|
+
BillingParticularLineItemChangedStatusEnum["NEW"] = "new";
|
|
10
|
+
})(BillingParticularLineItemChangedStatusEnum || (exports.BillingParticularLineItemChangedStatusEnum = BillingParticularLineItemChangedStatusEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingParticularLineItemSourceEnum = void 0;
|
|
4
|
+
// LW-773-billing-particular-line-item-source-enum
|
|
5
|
+
var BillingParticularLineItemSourceEnum;
|
|
6
|
+
(function (BillingParticularLineItemSourceEnum) {
|
|
7
|
+
BillingParticularLineItemSourceEnum["INVOICE"] = "invoice";
|
|
8
|
+
BillingParticularLineItemSourceEnum["OPE"] = "ope";
|
|
9
|
+
BillingParticularLineItemSourceEnum["NEW"] = "new";
|
|
10
|
+
})(BillingParticularLineItemSourceEnum || (exports.BillingParticularLineItemSourceEnum = BillingParticularLineItemSourceEnum = {}));
|
|
@@ -38,8 +38,8 @@ export * from "./interface/billing_history.entity.interface";
|
|
|
38
38
|
export * from "./interface/billing_timesheet_history.entity.interface";
|
|
39
39
|
export * from "./enums/history_operation.enum";
|
|
40
40
|
export * from "./enums/timesheet.action.enum";
|
|
41
|
-
export * from "./enums/timesheet.status.enum";
|
|
42
41
|
export * from "./enums/timesheet.classification.status.enum";
|
|
42
|
+
export * from "./enums/timesheet.status.enum";
|
|
43
43
|
export * from "./enums/billing.action.enum";
|
|
44
44
|
export * from "./enums/configuration.type.enum";
|
|
45
45
|
export * from "./enums/project_user_status.enum";
|
|
@@ -224,36 +224,32 @@ export * from "./interface/entity_history.entity.interface";
|
|
|
224
224
|
export * from "./model/entity_history.entity.model";
|
|
225
225
|
export * from "./enums/vendor_invoice_payment_mode_enum";
|
|
226
226
|
export * from "./enums/vendor_invoice_payment_status_enum";
|
|
227
|
+
export * from "./flow-configs/vendor_invoice_payment_flow.config";
|
|
227
228
|
export * from "./interface/vendor_invoice_payment.entity.interface";
|
|
228
229
|
export * from "./model/vendor_invoice_payment.entity.model";
|
|
229
|
-
export * from "./flow-configs/vendor_invoice_payment_flow.config";
|
|
230
230
|
export * from "./enums/leave_approval_status_enum";
|
|
231
231
|
export * from "./flow-configs/leave_approval_flow.config";
|
|
232
232
|
export * from "./interface/leave_approval.entity.interface";
|
|
233
233
|
export * from "./model/leave_approval.entity.model";
|
|
234
234
|
export * from "./enums/vendor_tds_liability_paid_status_enum";
|
|
235
235
|
export * from "./enums/vendor_tds_liability_status_enum";
|
|
236
|
+
export * from "./flow-configs/vendor_tds_liability_flow.config";
|
|
236
237
|
export * from "./interface/vendor_tds_liability.entity.interface";
|
|
237
238
|
export * from "./model/vendor_tds_liability.entity.model";
|
|
238
|
-
export * from "./flow-configs/vendor_tds_liability_flow.config";
|
|
239
239
|
export * from "./enums/vendor_tds_challan_status_enum";
|
|
240
|
+
export * from "./flow-configs/vendor_tds_challan_flow.config";
|
|
240
241
|
export * from "./interface/vendor_tds_challan.entity.interface";
|
|
241
242
|
export * from "./model/vendor_tds_challan.entity.model";
|
|
242
|
-
export * from "./flow-configs/vendor_tds_challan_flow.config";
|
|
243
|
-
export * from "./enums/vendor_advance_status_enum";
|
|
244
243
|
export * from "./enums/vendor_advance_payment_mode";
|
|
244
|
+
export * from "./enums/vendor_advance_status_enum";
|
|
245
|
+
export * from "./flow-configs/vendor_advance_flow.config";
|
|
245
246
|
export * from "./interface/vendor_advance.entity.interface";
|
|
246
247
|
export * from "./model/vendor_advance.entity.model";
|
|
247
|
-
export * from "./flow-configs/vendor_advance_flow.config";
|
|
248
248
|
export * from "./enums/vendor_invoice_advance_status_enum";
|
|
249
|
+
export * from "./flow-configs/vendor_invoice_advance_flow.config";
|
|
249
250
|
export * from "./interface/vendor_invoice_advance.entity.interface";
|
|
250
251
|
export * from "./model/vendor_invoice_advance.entity.model";
|
|
251
|
-
export * from "./
|
|
252
|
-
export * from "./enums/
|
|
253
|
-
export * from "./interface/
|
|
254
|
-
export * from "./model/
|
|
255
|
-
export * from "./flow-configs/client_debit_note_flow.config";
|
|
256
|
-
export * from "./enums/client_debit_note_particulars_status_enum";
|
|
257
|
-
export * from "./interface/client_debit_note_particulars.entity.interface";
|
|
258
|
-
export * from "./model/client_debit_note_particulars.entity.model";
|
|
259
|
-
export * from "./flow-configs/client_debit_note_particulars_flow.config";
|
|
252
|
+
export * from "./enums/billing-particular-line-item.changed-status.enum";
|
|
253
|
+
export * from "./enums/billing-particular-line-item.source.enum";
|
|
254
|
+
export * from "./interface/billing_particular_line_item.entity.interface";
|
|
255
|
+
export * from "./model/billing-particular-line-item.entity.model";
|
|
@@ -54,8 +54,8 @@ __exportStar(require("./interface/billing_history.entity.interface"), exports);
|
|
|
54
54
|
__exportStar(require("./interface/billing_timesheet_history.entity.interface"), exports);
|
|
55
55
|
__exportStar(require("./enums/history_operation.enum"), exports);
|
|
56
56
|
__exportStar(require("./enums/timesheet.action.enum"), exports);
|
|
57
|
-
__exportStar(require("./enums/timesheet.status.enum"), exports);
|
|
58
57
|
__exportStar(require("./enums/timesheet.classification.status.enum"), exports);
|
|
58
|
+
__exportStar(require("./enums/timesheet.status.enum"), exports);
|
|
59
59
|
__exportStar(require("./enums/billing.action.enum"), exports);
|
|
60
60
|
__exportStar(require("./enums/configuration.type.enum"), exports);
|
|
61
61
|
__exportStar(require("./enums/project_user_status.enum"), exports);
|
|
@@ -240,36 +240,33 @@ __exportStar(require("./interface/entity_history.entity.interface"), exports);
|
|
|
240
240
|
__exportStar(require("./model/entity_history.entity.model"), exports);
|
|
241
241
|
__exportStar(require("./enums/vendor_invoice_payment_mode_enum"), exports);
|
|
242
242
|
__exportStar(require("./enums/vendor_invoice_payment_status_enum"), exports);
|
|
243
|
+
__exportStar(require("./flow-configs/vendor_invoice_payment_flow.config"), exports);
|
|
243
244
|
__exportStar(require("./interface/vendor_invoice_payment.entity.interface"), exports);
|
|
244
245
|
__exportStar(require("./model/vendor_invoice_payment.entity.model"), exports);
|
|
245
|
-
__exportStar(require("./flow-configs/vendor_invoice_payment_flow.config"), exports);
|
|
246
246
|
__exportStar(require("./enums/leave_approval_status_enum"), exports);
|
|
247
247
|
__exportStar(require("./flow-configs/leave_approval_flow.config"), exports);
|
|
248
248
|
__exportStar(require("./interface/leave_approval.entity.interface"), exports);
|
|
249
249
|
__exportStar(require("./model/leave_approval.entity.model"), exports);
|
|
250
250
|
__exportStar(require("./enums/vendor_tds_liability_paid_status_enum"), exports);
|
|
251
251
|
__exportStar(require("./enums/vendor_tds_liability_status_enum"), exports);
|
|
252
|
+
__exportStar(require("./flow-configs/vendor_tds_liability_flow.config"), exports);
|
|
252
253
|
__exportStar(require("./interface/vendor_tds_liability.entity.interface"), exports);
|
|
253
254
|
__exportStar(require("./model/vendor_tds_liability.entity.model"), exports);
|
|
254
|
-
__exportStar(require("./flow-configs/vendor_tds_liability_flow.config"), exports);
|
|
255
255
|
__exportStar(require("./enums/vendor_tds_challan_status_enum"), exports);
|
|
256
|
+
__exportStar(require("./flow-configs/vendor_tds_challan_flow.config"), exports);
|
|
256
257
|
__exportStar(require("./interface/vendor_tds_challan.entity.interface"), exports);
|
|
257
258
|
__exportStar(require("./model/vendor_tds_challan.entity.model"), exports);
|
|
258
|
-
__exportStar(require("./flow-configs/vendor_tds_challan_flow.config"), exports);
|
|
259
|
-
__exportStar(require("./enums/vendor_advance_status_enum"), exports);
|
|
260
259
|
__exportStar(require("./enums/vendor_advance_payment_mode"), exports);
|
|
260
|
+
__exportStar(require("./enums/vendor_advance_status_enum"), exports);
|
|
261
|
+
__exportStar(require("./flow-configs/vendor_advance_flow.config"), exports);
|
|
261
262
|
__exportStar(require("./interface/vendor_advance.entity.interface"), exports);
|
|
262
263
|
__exportStar(require("./model/vendor_advance.entity.model"), exports);
|
|
263
|
-
__exportStar(require("./flow-configs/vendor_advance_flow.config"), exports);
|
|
264
264
|
__exportStar(require("./enums/vendor_invoice_advance_status_enum"), exports);
|
|
265
|
+
__exportStar(require("./flow-configs/vendor_invoice_advance_flow.config"), exports);
|
|
265
266
|
__exportStar(require("./interface/vendor_invoice_advance.entity.interface"), exports);
|
|
266
267
|
__exportStar(require("./model/vendor_invoice_advance.entity.model"), exports);
|
|
267
|
-
|
|
268
|
-
__exportStar(require("./enums/
|
|
269
|
-
__exportStar(require("./
|
|
270
|
-
__exportStar(require("./
|
|
271
|
-
__exportStar(require("./
|
|
272
|
-
__exportStar(require("./enums/client_debit_note_particulars_status_enum"), exports);
|
|
273
|
-
__exportStar(require("./interface/client_debit_note_particulars.entity.interface"), exports);
|
|
274
|
-
__exportStar(require("./model/client_debit_note_particulars.entity.model"), exports);
|
|
275
|
-
__exportStar(require("./flow-configs/client_debit_note_particulars_flow.config"), exports);
|
|
268
|
+
// LW-773-billing-particular-line-item-exports
|
|
269
|
+
__exportStar(require("./enums/billing-particular-line-item.changed-status.enum"), exports);
|
|
270
|
+
__exportStar(require("./enums/billing-particular-line-item.source.enum"), exports);
|
|
271
|
+
__exportStar(require("./interface/billing_particular_line_item.entity.interface"), exports);
|
|
272
|
+
__exportStar(require("./model/billing-particular-line-item.entity.model"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BillingParticularLineItemChangedStatusEnum } from "../enums/billing-particular-line-item.changed-status.enum";
|
|
2
|
+
import { BillingParticularLineItemSourceEnum } from "../enums/billing-particular-line-item.source.enum";
|
|
3
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
4
|
+
import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
|
|
5
|
+
export interface IBillingParticularLineItemEntity extends IEntityAuditColumn {
|
|
6
|
+
id: number;
|
|
7
|
+
billingId: number;
|
|
8
|
+
description: string;
|
|
9
|
+
amount: number;
|
|
10
|
+
source: BillingParticularLineItemSourceEnum;
|
|
11
|
+
changedStatus: BillingParticularLineItemChangedStatusEnum;
|
|
12
|
+
}
|
|
13
|
+
export interface IBillingParticularLineItemCreateDto extends IEntityCreateDto<IBillingParticularLineItemEntity> {
|
|
14
|
+
}
|
|
15
|
+
export interface IBillingParticularLineItemUpdateDto extends IEntityUpdateDto<IBillingParticularLineItemEntity> {
|
|
16
|
+
}
|
|
17
|
+
export interface IBillingParticularLineItemEntityFilterData extends IEntityFilterData<IBillingParticularLineItemEntity> {
|
|
18
|
+
}
|
|
@@ -20,8 +20,6 @@ import { ClientAffiliateEntityModel } from "../model/client-affiliate.entity.mod
|
|
|
20
20
|
import { ClientIntroducingMappingEntityModel } from "../model/client-introducing-mapping.entity.model";
|
|
21
21
|
import { ClientUserMappingEntityModel } from "../model/client-user-mapping.entity.model";
|
|
22
22
|
import { ClientEntityModel } from "../model/client.entity.model";
|
|
23
|
-
import { ClientDebitNoteEntityModel } from "../model/client_debit_note.entity.model";
|
|
24
|
-
import { ClientDebitNoteParticularsEntityModel } from "../model/client_debit_note_particulars.entity.model";
|
|
25
23
|
import { ClientQuoteEntityModel } from "../model/client_quote.entity.model";
|
|
26
24
|
import { ClientQuoteRateEntityModel } from "../model/client_quote_rate.entity.model";
|
|
27
25
|
import { ConfigurationEntityModel } from "../model/configuration.model";
|
|
@@ -80,6 +78,7 @@ import { WebsiteLeadEntityModel } from "../model/website_lead.entity.model";
|
|
|
80
78
|
import { WebsiteNewsletterSubscriptionEntityModel } from "../model/website_newsletter_subscription.entity.model";
|
|
81
79
|
import { WorkFromHomeEntityModel } from "../model/work-from-home.entity.model";
|
|
82
80
|
import { WorkFromHomeHistoryEntityModel } from "../model/work_from_home_history.entity.model";
|
|
81
|
+
import { BillingParticularLineItemEntityModel } from "../model/billing-particular-line-item.entity.model";
|
|
83
82
|
import { IAddressBookEntity } from "./address-book.entity.interface";
|
|
84
83
|
import { AggregationFields, IEntityAggregationConfig } from "./aggregation.utils";
|
|
85
84
|
import { IBankEntity } from "./bank.entity.interface";
|
|
@@ -95,8 +94,6 @@ import { IBillingTimesheetHistoryEntity } from "./billing_timesheet_history.enti
|
|
|
95
94
|
import { IBillingTransactionEntity } from "./billing_transaction.entity.interface";
|
|
96
95
|
import { IClientEntity, IClientIntroducingMappingEntity, IClientUserMappingEntity } from "./client.entity.interface";
|
|
97
96
|
import { IClientAffiliateEntity } from "./client_affiliate_entity.interface";
|
|
98
|
-
import { IClientDebitNoteEntity } from "./client_debit_note.entity.interface";
|
|
99
|
-
import { IClientDebitNoteParticularsEntity } from "./client_debit_note_particulars.entity.interface";
|
|
100
97
|
import { IClientQuoteEntity } from "./client_quote.entity.interface";
|
|
101
98
|
import { IClientQuoteRateEntity } from "./client_quote_rate.entity.interface";
|
|
102
99
|
import { IConfigurationEntity } from "./configuration.entity.interface";
|
|
@@ -154,6 +151,7 @@ import { IWebsiteLeadEntity } from "./website_lead.entity.interface";
|
|
|
154
151
|
import { IWebsiteNewsletterSubscriptionEntity } from "./website_newsletter_subscription.entity.interface";
|
|
155
152
|
import { IWorkFromHomeEntity } from "./work_from_home.entity.interface";
|
|
156
153
|
import { IWorkFromHomeHistoryEntity } from "./work_from_home_history.entity.interface";
|
|
154
|
+
import { IBillingParticularLineItemEntity } from "./billing_particular_line_item.entity.interface";
|
|
157
155
|
export type IApiEntity<T> = Modify<T, {
|
|
158
156
|
createdOn: string;
|
|
159
157
|
updatedOn: string;
|
|
@@ -266,8 +264,7 @@ export declare enum EntityEnum {
|
|
|
266
264
|
VENDOR_TDS_CHALLAN = "vendor_tds_challan",
|
|
267
265
|
VENDOR_ADVANCE = "vendor_advance",
|
|
268
266
|
VENDOR_INVOICE_ADVANCE = "vendor_invoice_advance",
|
|
269
|
-
|
|
270
|
-
CLIENT_DEBIT_NOTE_PARTICULARS = "client_debit_note_particulars"
|
|
267
|
+
BILLING_PARTICULAR_LINE_ITEM = "billing_particular_line_item"
|
|
271
268
|
}
|
|
272
269
|
export type EntityRelations = {
|
|
273
270
|
[K in EntityEnum | VirtualEntityEnum]: K;
|
|
@@ -292,7 +289,7 @@ export type IBaseEntityApiResponse<T> = {
|
|
|
292
289
|
[key in EntityEnum | VirtualEntityEnum]?: AggregationFields<EnumToModel<key>>[];
|
|
293
290
|
};
|
|
294
291
|
};
|
|
295
|
-
export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_HISTORY ? IBillingHistoryEntity : T extends EntityEnum.MOVING_TIMESHEET ? IMovingTimesheetEntity : T extends EntityEnum.BILLING_TIMESHEET ? IBillingTimesheetEntity : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? IBillingReimbursementExpenseEntity : T extends EntityEnum.BILLING_TIMESHEET_HISTORY ? IBillingTimesheetHistoryEntity : T extends EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY ? IBillingReimbursementExpenseHistoryEntity : T extends EntityEnum.TIMESHEET ? ITimesheetEntity : T extends EntityEnum.USER ? IUserEntity : T extends EntityEnum.PROJECT ? IProjectEntity : T extends EntityEnum.CLIENT ? IClientEntity : T extends EntityEnum.LEAVE ? ILeaveEntity : T extends EntityEnum.BANK ? IBankEntity : T extends EntityEnum.BILLING_TRANSACTION ? IBillingTransactionEntity : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? IBillingTransactionHistoryEntity : T extends EntityEnum.CLIENT_AFFILIATE ? IClientAffiliateEntity : T extends EntityEnum.CONFIGURATION ? IConfigurationEntity : T extends EntityEnum.HOLIDAY ? IHolidayEntity : T extends EntityEnum.HOLIDAY_LIST ? IHolidayListEntity : T extends EntityEnum.COUNTRY ? ICountryEntity : T extends EntityEnum.EXPENSE_TYPE ? IExpenseTypeEntity : T extends EntityEnum.INDUSTRY ? IIndustryEntity : T extends EntityEnum.INTERMEDIARY_BANK ? IIntermediaryBankEntity : T extends EntityEnum.OFFICE_LOCATION ? IOfficeLocationEntity : T extends EntityEnum.PERMISSION ? IPermissionEntity : T extends EntityEnum.ROLE ? IRoleEntity : T extends EntityEnum.TASK ? ITaskEntity : T extends EntityEnum.DESIGNATION ? IDesignationEntity : T extends EntityEnum.RATE ? IRateEntity : T extends EntityEnum.REIMBURSEMENT ? IReimbursementEntity : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? IReimbursementExpenseEntity : T extends EntityEnum.REIMBURSEMENT_HISTORY ? IReimbursementHistoryEntity : T extends EntityEnum.WORK_FROM_HOME ? IWorkFromHomeEntity : T extends EntityEnum.ORGANIZATION ? IOrganizationEntity : T extends EntityEnum.PROJECT_USER_MAPPING ? IProjectUserMappingEntity : T extends EntityEnum.CLIENT_USER_MAPPING ? IClientUserMappingEntity : T extends EntityEnum.CLIENT_INTRODUCING_MAPPING ? IClientIntroducingMappingEntity : T extends EntityEnum.TO_DO_LIST ? IToDoListEntity : T extends EntityEnum.CRON_JOBS ? ICronJobsEntity : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? IRolePermissionMappingEntity : T extends EntityEnum.BANK_HISTORY ? IBankHistoryEntity : T extends VirtualEntityEnum.LEAVE_COUNT ? ILeaveCountVirtualEntity : T extends EntityEnum.LEAVE_HISTORY ? ILeaveHistoryEntity : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? IWorkFromHomeHistoryEntity : T extends EntityEnum.TIMESHEET_HISTORY ? ITimesheetHistoryEntity : T extends EntityEnum.ADDRESS_BOOK ? IAddressBookEntity : T extends EntityEnum.STATE ? IStateEntity : T extends EntityEnum.GST_RATE ? IGstRateEntity : T extends EntityEnum.ORGANIZATION_TYPE ? IOrganizationTypeEntity : T extends EntityEnum.TDS_RATE ? ITdsRateEntity : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? IOrganizationTypeTdsRateMappingEntity : T extends EntityEnum.VOUCHER_TYPE ? IVoucherTypeEntity : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? ITdsRateVoucherTypeMappingEntity : T extends EntityEnum.EXPENSE_HEAD ? IExpenseHeadEntity : T extends EntityEnum.DOCUMENT_UPLOAD ? IDocumentUploadEntity : T extends EntityEnum.VENDOR ? IVendorEntity : T extends EntityEnum.VENDOR_INVOICE ? IVendorInvoiceEntity : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? IVendorInvoiceHistoryEntity : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? IVendorInvoiceHistoryEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM ? IVendorInvoiceItemEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? IVendorInvoiceItemHistoryEntity : T extends EntityEnum.VENDOR_HISTORY ? IVendorHistoryEntity : T extends EntityEnum.WEBSITE_LEAD ? IWebsiteLeadEntity : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? IWebsiteNewsletterSubscriptionEntity : T extends EntityEnum.CLIENT_QUOTE ? IClientQuoteEntity : T extends EntityEnum.CLIENT_QUOTE_RATE ? IClientQuoteRateEntity : T extends EntityEnum.BILLING_PROFILE ? IBillingProfileEntity : T extends EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING ? IProjectRevenueSplitMappingEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? IVendorInvoiceItemHistoryEntity : T extends EntityEnum.VENDOR_HISTORY ? IVendorHistoryEntity : T extends EntityEnum.WEBSITE_LEAD ? IWebsiteLeadEntity : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? IWebsiteNewsletterSubscriptionEntity : T extends EntityEnum.CLIENT_QUOTE ? IClientQuoteEntity : T extends EntityEnum.CLIENT_QUOTE_RATE ? IClientQuoteRateEntity : T extends EntityEnum.ENTITY_HISTORY ? IEntityHistoryEntity : T extends EntityEnum.LEAVE_APPROVAL ? ILeaveApprovalEntity : T extends EntityEnum.VENDOR_INVOICE_PAYMENT ? IVendorInvoicePaymentEntity : T extends EntityEnum.VENDOR_TDS_LIABILITY ? IVendorTdsLiabilityEntity : T extends EntityEnum.VENDOR_TDS_CHALLAN ? IVendorTdsChallanEntity : T extends EntityEnum.VENDOR_ADVANCE ? IVendorAdvanceEntity : T extends EntityEnum.VENDOR_INVOICE_ADVANCE ? IVendorInvoiceAdvanceEntity : T extends EntityEnum.
|
|
292
|
+
export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_HISTORY ? IBillingHistoryEntity : T extends EntityEnum.MOVING_TIMESHEET ? IMovingTimesheetEntity : T extends EntityEnum.BILLING_TIMESHEET ? IBillingTimesheetEntity : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? IBillingReimbursementExpenseEntity : T extends EntityEnum.BILLING_TIMESHEET_HISTORY ? IBillingTimesheetHistoryEntity : T extends EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY ? IBillingReimbursementExpenseHistoryEntity : T extends EntityEnum.BILLING_PARTICULAR_LINE_ITEM ? IBillingParticularLineItemEntity : T extends EntityEnum.TIMESHEET ? ITimesheetEntity : T extends EntityEnum.USER ? IUserEntity : T extends EntityEnum.PROJECT ? IProjectEntity : T extends EntityEnum.CLIENT ? IClientEntity : T extends EntityEnum.LEAVE ? ILeaveEntity : T extends EntityEnum.BANK ? IBankEntity : T extends EntityEnum.BILLING_TRANSACTION ? IBillingTransactionEntity : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? IBillingTransactionHistoryEntity : T extends EntityEnum.CLIENT_AFFILIATE ? IClientAffiliateEntity : T extends EntityEnum.CONFIGURATION ? IConfigurationEntity : T extends EntityEnum.HOLIDAY ? IHolidayEntity : T extends EntityEnum.HOLIDAY_LIST ? IHolidayListEntity : T extends EntityEnum.COUNTRY ? ICountryEntity : T extends EntityEnum.EXPENSE_TYPE ? IExpenseTypeEntity : T extends EntityEnum.INDUSTRY ? IIndustryEntity : T extends EntityEnum.INTERMEDIARY_BANK ? IIntermediaryBankEntity : T extends EntityEnum.OFFICE_LOCATION ? IOfficeLocationEntity : T extends EntityEnum.PERMISSION ? IPermissionEntity : T extends EntityEnum.ROLE ? IRoleEntity : T extends EntityEnum.TASK ? ITaskEntity : T extends EntityEnum.DESIGNATION ? IDesignationEntity : T extends EntityEnum.RATE ? IRateEntity : T extends EntityEnum.REIMBURSEMENT ? IReimbursementEntity : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? IReimbursementExpenseEntity : T extends EntityEnum.REIMBURSEMENT_HISTORY ? IReimbursementHistoryEntity : T extends EntityEnum.WORK_FROM_HOME ? IWorkFromHomeEntity : T extends EntityEnum.ORGANIZATION ? IOrganizationEntity : T extends EntityEnum.PROJECT_USER_MAPPING ? IProjectUserMappingEntity : T extends EntityEnum.CLIENT_USER_MAPPING ? IClientUserMappingEntity : T extends EntityEnum.CLIENT_INTRODUCING_MAPPING ? IClientIntroducingMappingEntity : T extends EntityEnum.TO_DO_LIST ? IToDoListEntity : T extends EntityEnum.CRON_JOBS ? ICronJobsEntity : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? IRolePermissionMappingEntity : T extends EntityEnum.BANK_HISTORY ? IBankHistoryEntity : T extends VirtualEntityEnum.LEAVE_COUNT ? ILeaveCountVirtualEntity : T extends EntityEnum.LEAVE_HISTORY ? ILeaveHistoryEntity : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? IWorkFromHomeHistoryEntity : T extends EntityEnum.TIMESHEET_HISTORY ? ITimesheetHistoryEntity : T extends EntityEnum.ADDRESS_BOOK ? IAddressBookEntity : T extends EntityEnum.STATE ? IStateEntity : T extends EntityEnum.GST_RATE ? IGstRateEntity : T extends EntityEnum.ORGANIZATION_TYPE ? IOrganizationTypeEntity : T extends EntityEnum.TDS_RATE ? ITdsRateEntity : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? IOrganizationTypeTdsRateMappingEntity : T extends EntityEnum.VOUCHER_TYPE ? IVoucherTypeEntity : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? ITdsRateVoucherTypeMappingEntity : T extends EntityEnum.EXPENSE_HEAD ? IExpenseHeadEntity : T extends EntityEnum.DOCUMENT_UPLOAD ? IDocumentUploadEntity : T extends EntityEnum.VENDOR ? IVendorEntity : T extends EntityEnum.VENDOR_INVOICE ? IVendorInvoiceEntity : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? IVendorInvoiceHistoryEntity : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? IVendorInvoiceHistoryEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM ? IVendorInvoiceItemEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? IVendorInvoiceItemHistoryEntity : T extends EntityEnum.VENDOR_HISTORY ? IVendorHistoryEntity : T extends EntityEnum.WEBSITE_LEAD ? IWebsiteLeadEntity : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? IWebsiteNewsletterSubscriptionEntity : T extends EntityEnum.CLIENT_QUOTE ? IClientQuoteEntity : T extends EntityEnum.CLIENT_QUOTE_RATE ? IClientQuoteRateEntity : T extends EntityEnum.BILLING_PROFILE ? IBillingProfileEntity : T extends EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING ? IProjectRevenueSplitMappingEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? IVendorInvoiceItemHistoryEntity : T extends EntityEnum.VENDOR_HISTORY ? IVendorHistoryEntity : T extends EntityEnum.WEBSITE_LEAD ? IWebsiteLeadEntity : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? IWebsiteNewsletterSubscriptionEntity : T extends EntityEnum.CLIENT_QUOTE ? IClientQuoteEntity : T extends EntityEnum.CLIENT_QUOTE_RATE ? IClientQuoteRateEntity : T extends EntityEnum.ENTITY_HISTORY ? IEntityHistoryEntity : T extends EntityEnum.LEAVE_APPROVAL ? ILeaveApprovalEntity : T extends EntityEnum.VENDOR_INVOICE_PAYMENT ? IVendorInvoicePaymentEntity : T extends EntityEnum.VENDOR_TDS_LIABILITY ? IVendorTdsLiabilityEntity : T extends EntityEnum.VENDOR_TDS_CHALLAN ? IVendorTdsChallanEntity : T extends EntityEnum.VENDOR_ADVANCE ? IVendorAdvanceEntity : T extends EntityEnum.VENDOR_INVOICE_ADVANCE ? IVendorInvoiceAdvanceEntity : T extends EntityEnum.BILLING_PARTICULAR_LINE_ITEM ? IBillingParticularLineItemEntity : never) & {
|
|
296
293
|
id: number;
|
|
297
294
|
};
|
|
298
295
|
export type EntityRelationConfig<T extends EntityEnum | VirtualEntityEnum> = {
|
|
@@ -424,7 +421,7 @@ export declare enum VirtualEntityEnum {
|
|
|
424
421
|
}
|
|
425
422
|
export type IHistoryConstraintSearchResponse<T> = IBaseResponse<IHistoryEntitySearchByConstraintResponse<T>[]>;
|
|
426
423
|
export type IHistoryConstraintSearchServiceResponse<T> = IHistoryEntitySearchByConstraintResponse<T>[];
|
|
427
|
-
export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.BILLING_HISTORY ? BillingHistoryEntityModel : T extends EntityEnum.CLIENT ? ClientEntityModel : T extends EntityEnum.INTERMEDIARY_BANK ? IntermediaryBankEntityModel : T extends EntityEnum.PROJECT ? ProjectEntityModel : T extends EntityEnum.PROJECT_USER_MAPPING ? ProjectUserMappingEntityModel : T extends EntityEnum.REIMBURSEMENT ? ReimbursementEntityModel : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? ReimbursementExpenseEntityModel : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? BillingReimbursementExpneseEntityModel : T extends EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY ? BillingReimbursementExpenseHistoryEntityModel : T extends EntityEnum.LEAVE ? LeaveEntityModel : T extends EntityEnum.WORK_FROM_HOME ? WorkFromHomeEntityModel : T extends EntityEnum.HOLIDAY ? HolidayEntityModel : T extends VirtualEntityEnum.LEAVE_COUNT ? LeaveCountVirtualEntityModel : T extends EntityEnum.CLIENT_AFFILIATE ? ClientAffiliateEntityModel : T extends EntityEnum.BANK ? BankEntityModel : T extends EntityEnum.CONFIGURATION ? ConfigurationEntityModel : T extends EntityEnum.TASK ? TaskEntityModel : T extends EntityEnum.BILLING_TIMESHEET ? BillingTimesheetEntityModel : T extends EntityEnum.BILLING_TIMESHEET_HISTORY ? BillingTimesheetHistoryEntityModel : T extends EntityEnum.TIMESHEET ? TimesheetEntityModel : T extends EntityEnum.MOVING_TIMESHEET ? MovingTimesheetEntityModel : T extends EntityEnum.TIMESHEET_HISTORY ? TimesheetHistoryEntityModel : T extends EntityEnum.COUNTRY ? CountryEntityModel : T extends EntityEnum.BILLING_TRANSACTION ? BillingTransactionEntityModel : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? BillingTransactionHistoryEntityModel : T extends EntityEnum.ADDRESS_BOOK ? AddressBookEntityModel : T extends EntityEnum.STATE ? StateEntityModel : T extends EntityEnum.GST_RATE ? GstRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE ? OrganizationTypeEntityModel : T extends EntityEnum.TDS_RATE ? TdsRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? OrganizationTypeTdsRateMappingEntityModel : T extends EntityEnum.VOUCHER_TYPE ? VoucherTypeEntityModel : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? TdsRateVoucherTypeMappingEntityModel : T extends EntityEnum.ORGANIZATION ? OrganizationEntityModel : T extends EntityEnum.INDUSTRY ? IndustryEntityModel : T extends EntityEnum.EXPENSE_TYPE ? ExpenseTypeEntityModel : T extends EntityEnum.DESIGNATION ? DesignationEntityModel : T extends EntityEnum.RATE ? RateEntityModel : T extends EntityEnum.ROLE ? RoleEntityModel : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? RolePermissionMappingEntityModel : T extends EntityEnum.PERMISSION ? PermissionEntityModel : T extends EntityEnum.EXPENSE_HEAD ? ExpenseHeadEntityModel : T extends EntityEnum.DOCUMENT_UPLOAD ? DocumentUploadEntityModel : T extends EntityEnum.VENDOR ? VendorEntityModel : T extends EntityEnum.VENDOR_INVOICE ? VendorInvoiceEntityModel : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? VendorInvoiceHistoryEntityModel : T extends EntityEnum.OFFICE_LOCATION ? OfficeLocationEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM ? VendorInvoiceItemEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? VendorInvoiceItemHistoryEntityModel : T extends EntityEnum.VENDOR_HISTORY ? VendorHistoryEntityModel : T extends EntityEnum.WEBSITE_LEAD ? WebsiteLeadEntityModel : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? WebsiteNewsletterSubscriptionEntityModel : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? WorkFromHomeHistoryEntityModel : T extends EntityEnum.LEAVE_HISTORY ? LeaveHistoryEntityModel : T extends EntityEnum.BANK_HISTORY ? BankHistoryEntityModel : T extends EntityEnum.REIMBURSEMENT_HISTORY ? ReimbursementHistoryEntityModel : T extends EntityEnum.CLIENT_USER_MAPPING ? ClientUserMappingEntityModel : T extends EntityEnum.CLIENT_INTRODUCING_MAPPING ? ClientIntroducingMappingEntityModel : T extends EntityEnum.HOLIDAY_LIST ? HolidayListEntityModel : T extends EntityEnum.CRON_JOBS ? CronJobsEntityModel : T extends EntityEnum.TO_DO_LIST ? ToDoListEntityModel : T extends EntityEnum.CLIENT_QUOTE ? ClientQuoteEntityModel : T extends EntityEnum.CLIENT_QUOTE_RATE ? ClientQuoteRateEntityModel : T extends EntityEnum.BILLING_PROFILE ? BillingProfileEntityModel : T extends EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING ? ProjectRevenueSplitMappingEntityModel : T extends EntityEnum.WEBSITE_LEAD ? WebsiteLeadEntityModel : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? WebsiteNewsletterSubscriptionEntityModel : T extends EntityEnum.CLIENT_QUOTE ? ClientQuoteEntityModel : T extends EntityEnum.CLIENT_QUOTE_RATE ? ClientQuoteRateEntityModel : T extends EntityEnum.DESIGNATION ? DesignationEntityModel : T extends EntityEnum.RATE ? RateEntityModel : T extends EntityEnum.ENTITY_HISTORY ? EntityHistoryEntityModel : T extends EntityEnum.LEAVE_APPROVAL ? LeaveApprovalEntityModel : T extends EntityEnum.VENDOR_INVOICE_PAYMENT ? VendorInvoicePaymentEntityModel : T extends EntityEnum.VENDOR_TDS_LIABILITY ? VendorTdsLiabilityEntityModel : T extends EntityEnum.VENDOR_TDS_CHALLAN ? VendorTdsChallanEntityModel : T extends EntityEnum.VENDOR_ADVANCE ? VendorAdvanceEntityModel : T extends EntityEnum.VENDOR_INVOICE_ADVANCE ? VendorInvoiceAdvanceEntityModel : T extends EntityEnum.
|
|
424
|
+
export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.BILLING_HISTORY ? BillingHistoryEntityModel : T extends EntityEnum.CLIENT ? ClientEntityModel : T extends EntityEnum.INTERMEDIARY_BANK ? IntermediaryBankEntityModel : T extends EntityEnum.PROJECT ? ProjectEntityModel : T extends EntityEnum.PROJECT_USER_MAPPING ? ProjectUserMappingEntityModel : T extends EntityEnum.REIMBURSEMENT ? ReimbursementEntityModel : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? ReimbursementExpenseEntityModel : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? BillingReimbursementExpneseEntityModel : T extends EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY ? BillingReimbursementExpenseHistoryEntityModel : T extends EntityEnum.LEAVE ? LeaveEntityModel : T extends EntityEnum.WORK_FROM_HOME ? WorkFromHomeEntityModel : T extends EntityEnum.HOLIDAY ? HolidayEntityModel : T extends VirtualEntityEnum.LEAVE_COUNT ? LeaveCountVirtualEntityModel : T extends EntityEnum.CLIENT_AFFILIATE ? ClientAffiliateEntityModel : T extends EntityEnum.BANK ? BankEntityModel : T extends EntityEnum.CONFIGURATION ? ConfigurationEntityModel : T extends EntityEnum.TASK ? TaskEntityModel : T extends EntityEnum.BILLING_TIMESHEET ? BillingTimesheetEntityModel : T extends EntityEnum.BILLING_TIMESHEET_HISTORY ? BillingTimesheetHistoryEntityModel : T extends EntityEnum.TIMESHEET ? TimesheetEntityModel : T extends EntityEnum.MOVING_TIMESHEET ? MovingTimesheetEntityModel : T extends EntityEnum.TIMESHEET_HISTORY ? TimesheetHistoryEntityModel : T extends EntityEnum.COUNTRY ? CountryEntityModel : T extends EntityEnum.BILLING_TRANSACTION ? BillingTransactionEntityModel : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? BillingTransactionHistoryEntityModel : T extends EntityEnum.ADDRESS_BOOK ? AddressBookEntityModel : T extends EntityEnum.STATE ? StateEntityModel : T extends EntityEnum.GST_RATE ? GstRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE ? OrganizationTypeEntityModel : T extends EntityEnum.TDS_RATE ? TdsRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? OrganizationTypeTdsRateMappingEntityModel : T extends EntityEnum.VOUCHER_TYPE ? VoucherTypeEntityModel : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? TdsRateVoucherTypeMappingEntityModel : T extends EntityEnum.ORGANIZATION ? OrganizationEntityModel : T extends EntityEnum.INDUSTRY ? IndustryEntityModel : T extends EntityEnum.EXPENSE_TYPE ? ExpenseTypeEntityModel : T extends EntityEnum.DESIGNATION ? DesignationEntityModel : T extends EntityEnum.RATE ? RateEntityModel : T extends EntityEnum.ROLE ? RoleEntityModel : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? RolePermissionMappingEntityModel : T extends EntityEnum.PERMISSION ? PermissionEntityModel : T extends EntityEnum.EXPENSE_HEAD ? ExpenseHeadEntityModel : T extends EntityEnum.DOCUMENT_UPLOAD ? DocumentUploadEntityModel : T extends EntityEnum.VENDOR ? VendorEntityModel : T extends EntityEnum.VENDOR_INVOICE ? VendorInvoiceEntityModel : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? VendorInvoiceHistoryEntityModel : T extends EntityEnum.OFFICE_LOCATION ? OfficeLocationEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM ? VendorInvoiceItemEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? VendorInvoiceItemHistoryEntityModel : T extends EntityEnum.VENDOR_HISTORY ? VendorHistoryEntityModel : T extends EntityEnum.WEBSITE_LEAD ? WebsiteLeadEntityModel : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? WebsiteNewsletterSubscriptionEntityModel : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? WorkFromHomeHistoryEntityModel : T extends EntityEnum.LEAVE_HISTORY ? LeaveHistoryEntityModel : T extends EntityEnum.BANK_HISTORY ? BankHistoryEntityModel : T extends EntityEnum.REIMBURSEMENT_HISTORY ? ReimbursementHistoryEntityModel : T extends EntityEnum.CLIENT_USER_MAPPING ? ClientUserMappingEntityModel : T extends EntityEnum.CLIENT_INTRODUCING_MAPPING ? ClientIntroducingMappingEntityModel : T extends EntityEnum.HOLIDAY_LIST ? HolidayListEntityModel : T extends EntityEnum.CRON_JOBS ? CronJobsEntityModel : T extends EntityEnum.TO_DO_LIST ? ToDoListEntityModel : T extends EntityEnum.CLIENT_QUOTE ? ClientQuoteEntityModel : T extends EntityEnum.CLIENT_QUOTE_RATE ? ClientQuoteRateEntityModel : T extends EntityEnum.BILLING_PROFILE ? BillingProfileEntityModel : T extends EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING ? ProjectRevenueSplitMappingEntityModel : T extends EntityEnum.WEBSITE_LEAD ? WebsiteLeadEntityModel : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? WebsiteNewsletterSubscriptionEntityModel : T extends EntityEnum.CLIENT_QUOTE ? ClientQuoteEntityModel : T extends EntityEnum.CLIENT_QUOTE_RATE ? ClientQuoteRateEntityModel : T extends EntityEnum.DESIGNATION ? DesignationEntityModel : T extends EntityEnum.RATE ? RateEntityModel : T extends EntityEnum.ENTITY_HISTORY ? EntityHistoryEntityModel : T extends EntityEnum.LEAVE_APPROVAL ? LeaveApprovalEntityModel : T extends EntityEnum.VENDOR_INVOICE_PAYMENT ? VendorInvoicePaymentEntityModel : T extends EntityEnum.VENDOR_TDS_LIABILITY ? VendorTdsLiabilityEntityModel : T extends EntityEnum.VENDOR_TDS_CHALLAN ? VendorTdsChallanEntityModel : T extends EntityEnum.VENDOR_ADVANCE ? VendorAdvanceEntityModel : T extends EntityEnum.VENDOR_INVOICE_ADVANCE ? VendorInvoiceAdvanceEntityModel : T extends EntityEnum.BILLING_PARTICULAR_LINE_ITEM ? BillingParticularLineItemEntityModel : UserEntityModel;
|
|
428
425
|
export type EntityMap = {
|
|
429
426
|
[key in EntityEnum | VirtualEntityEnum]: EnumToModel<key>[];
|
|
430
427
|
} & {
|
|
@@ -106,8 +106,8 @@ var EntityEnum;
|
|
|
106
106
|
EntityEnum["VENDOR_TDS_CHALLAN"] = "vendor_tds_challan";
|
|
107
107
|
EntityEnum["VENDOR_ADVANCE"] = "vendor_advance";
|
|
108
108
|
EntityEnum["VENDOR_INVOICE_ADVANCE"] = "vendor_invoice_advance";
|
|
109
|
-
|
|
110
|
-
EntityEnum["
|
|
109
|
+
// LW-773-billing-particular-line-item
|
|
110
|
+
EntityEnum["BILLING_PARTICULAR_LINE_ITEM"] = "billing_particular_line_item";
|
|
111
111
|
})(EntityEnum || (exports.EntityEnum = EntityEnum = {}));
|
|
112
112
|
var VirtualEntityEnum;
|
|
113
113
|
(function (VirtualEntityEnum) {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BillingParticularLineItemChangedStatusEnum } from "../enums/billing-particular-line-item.changed-status.enum";
|
|
2
|
+
import { BillingParticularLineItemSourceEnum } from "../enums/billing-particular-line-item.source.enum";
|
|
3
|
+
import { IBillingParticularLineItemEntity } from "../interface/billing_particular_line_item.entity.interface";
|
|
4
|
+
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
5
|
+
import { BaseEntityModel } from "./base.entity.model";
|
|
6
|
+
export declare class BillingParticularLineItemEntityModel extends BaseEntityModel<EntityEnum.BILLING_PARTICULAR_LINE_ITEM> implements IBillingParticularLineItemEntity {
|
|
7
|
+
id: number;
|
|
8
|
+
billingId: number;
|
|
9
|
+
description: string;
|
|
10
|
+
amount: number;
|
|
11
|
+
source: BillingParticularLineItemSourceEnum;
|
|
12
|
+
changedStatus: BillingParticularLineItemChangedStatusEnum;
|
|
13
|
+
createdOn: number;
|
|
14
|
+
updatedOn: number;
|
|
15
|
+
createdBy: number;
|
|
16
|
+
updatedBy: number;
|
|
17
|
+
getRelationConfigs(): any;
|
|
18
|
+
static fromEntity(entity: IBillingParticularLineItemEntity): BillingParticularLineItemEntityModel;
|
|
19
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingParticularLineItemEntityModel = void 0;
|
|
4
|
+
const billing_particular_line_item_changed_status_enum_1 = require("../enums/billing-particular-line-item.changed-status.enum");
|
|
5
|
+
const billing_particular_line_item_source_enum_1 = require("../enums/billing-particular-line-item.source.enum");
|
|
6
|
+
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
7
|
+
const base_entity_model_1 = require("./base.entity.model");
|
|
8
|
+
// LW-773-billing-particular-line-item-model
|
|
9
|
+
class BillingParticularLineItemEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.id = 0;
|
|
13
|
+
this.billingId = 0;
|
|
14
|
+
this.description = "";
|
|
15
|
+
this.amount = 0;
|
|
16
|
+
this.source = billing_particular_line_item_source_enum_1.BillingParticularLineItemSourceEnum.NEW;
|
|
17
|
+
this.changedStatus = billing_particular_line_item_changed_status_enum_1.BillingParticularLineItemChangedStatusEnum.UNCHANGED;
|
|
18
|
+
this.createdOn = 0;
|
|
19
|
+
this.updatedOn = 0;
|
|
20
|
+
this.createdBy = 0;
|
|
21
|
+
this.updatedBy = 0;
|
|
22
|
+
}
|
|
23
|
+
// LW-773-get-relation-configs
|
|
24
|
+
getRelationConfigs() {
|
|
25
|
+
return this.constructor.prototype.constructor.relationConfigs;
|
|
26
|
+
}
|
|
27
|
+
// LW-773-from-entity
|
|
28
|
+
static fromEntity(entity) {
|
|
29
|
+
const result = new BillingParticularLineItemEntityModel(entity_utils_interface_1.EntityEnum.BILLING_PARTICULAR_LINE_ITEM);
|
|
30
|
+
Object.assign(result, entity);
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.BillingParticularLineItemEntityModel = BillingParticularLineItemEntityModel;
|
|
@@ -17,6 +17,7 @@ import { EntityEnum, Nullable } from "../interface/entity.utils.interface";
|
|
|
17
17
|
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
18
18
|
import { BankEntityModel } from "./bank.entity.model";
|
|
19
19
|
import { BaseEntityModel } from "./base.entity.model";
|
|
20
|
+
import { BillingParticularLineItemEntityModel } from "./billing-particular-line-item.entity.model";
|
|
20
21
|
import { BillingProfileEntityModel } from "./billing-profile.entity.model";
|
|
21
22
|
import { BillingReimbursementExpneseEntityModel } from "./billing-reimbursement-expense.entity.model";
|
|
22
23
|
import { BillingTimesheetEntityModel } from "./billing-timesheet.entity.model";
|
|
@@ -67,6 +68,7 @@ export declare class BillingEntityModel extends BaseEntityModel<EntityEnum.BILLI
|
|
|
67
68
|
bank?: BankEntityModel[];
|
|
68
69
|
billingTimesheets?: BillingTimesheetEntityModel[];
|
|
69
70
|
billingTransactions?: BillingTransactionEntityModel[];
|
|
71
|
+
billingParticularLineItems?: BillingParticularLineItemEntityModel[];
|
|
70
72
|
isProjectComplete?: boolean;
|
|
71
73
|
static readonly BILLING_ENTITY_DOCUMENT_TYPES: readonly ["invoice"];
|
|
72
74
|
static validateDocumentNoDocumentFile(data: DocumentFields<typeof BillingEntityModel.BILLING_ENTITY_DOCUMENT_TYPES>, deleteDetails?: DeleteDocumentDetails<typeof BillingEntityModel.BILLING_ENTITY_DOCUMENT_TYPES>): Result<void, IDtoValidationError[]>;
|
|
@@ -81,11 +83,20 @@ export declare class BillingEntityModel extends BaseEntityModel<EntityEnum.BILLI
|
|
|
81
83
|
EntityEnum.BILLING_REIMBURSEMENT_EXPENSE,
|
|
82
84
|
EntityEnum.BILLING_TIMESHEET,
|
|
83
85
|
EntityEnum.BANK,
|
|
84
|
-
EntityEnum.BILLING_TRANSACTION
|
|
86
|
+
EntityEnum.BILLING_TRANSACTION,
|
|
87
|
+
EntityEnum.BILLING_PARTICULAR_LINE_ITEM
|
|
85
88
|
], EntityEnum.BILLING>;
|
|
86
89
|
static fromEntity(entity: IBillingEntity): BillingEntityModel;
|
|
87
90
|
get nonDeletedBillingTimesheets(): BillingTimesheetEntityModel[];
|
|
88
91
|
get nonDeletedBillingReimbursementExpenses(): BillingReimbursementExpneseEntityModel[];
|
|
92
|
+
private groupParticularLineItemsByStatus;
|
|
93
|
+
get activeBillingParticularLineItems(): BillingParticularLineItemEntityModel[];
|
|
94
|
+
get inactiveBillingParticularLineItems(): BillingParticularLineItemEntityModel[];
|
|
95
|
+
groupParticularLineItemsBySource(): {
|
|
96
|
+
invoice: BillingParticularLineItemEntityModel[];
|
|
97
|
+
ope: BillingParticularLineItemEntityModel[];
|
|
98
|
+
custom: BillingParticularLineItemEntityModel[];
|
|
99
|
+
};
|
|
89
100
|
getStatusCategory(): BillingStatusCategoryEnum;
|
|
90
101
|
getStatusLabel(): string;
|
|
91
102
|
getTotalAmountInINR(): string;
|
|
@@ -7,6 +7,10 @@ const error_key_enum_1 = require("../../enums/error.key.enum");
|
|
|
7
7
|
const exceptions_1 = require("../../exceptions");
|
|
8
8
|
const utils_1 = require("../../utils");
|
|
9
9
|
const billing_reimbursement_expense_change_status_enum_1 = require("../enums/billing-reimbursement-expense-change-status.enum");
|
|
10
|
+
// LW-773-billing-particular-line-item-status-import
|
|
11
|
+
const billing_particular_line_item_changed_status_enum_1 = require("../enums/billing-particular-line-item.changed-status.enum");
|
|
12
|
+
// LW-773-billing-particular-line-item-source-import
|
|
13
|
+
const billing_particular_line_item_source_enum_1 = require("../enums/billing-particular-line-item.source.enum");
|
|
10
14
|
const billing_status_category_enum_1 = require("../enums/billing-status-category.enum");
|
|
11
15
|
const billing_transaction_status_enum_1 = require("../enums/billing-transaction-status.enum");
|
|
12
16
|
const billing_type_enum_1 = require("../enums/billing-type.enum");
|
|
@@ -85,6 +89,47 @@ class BillingEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
85
89
|
var _a, _b;
|
|
86
90
|
return (_b = (_a = this.billingReimbursementExpenses) === null || _a === void 0 ? void 0 : _a.filter((ts) => ts.changedStatus !== billing_reimbursement_expense_change_status_enum_1.BillingReimbursementExpenseChangedStatusEnum.DELETED)) !== null && _b !== void 0 ? _b : [];
|
|
87
91
|
}
|
|
92
|
+
// LW-773-group-particulars-by-status
|
|
93
|
+
groupParticularLineItemsByStatus() {
|
|
94
|
+
var _a;
|
|
95
|
+
const active = [];
|
|
96
|
+
const inactive = [];
|
|
97
|
+
for (const item of (_a = this.billingParticularLineItems) !== null && _a !== void 0 ? _a : []) {
|
|
98
|
+
if (item.changedStatus === billing_particular_line_item_changed_status_enum_1.BillingParticularLineItemChangedStatusEnum.DELETED) {
|
|
99
|
+
inactive.push(item);
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
active.push(item);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return { active, inactive };
|
|
106
|
+
}
|
|
107
|
+
// LW-773-active-particular-line-items
|
|
108
|
+
get activeBillingParticularLineItems() {
|
|
109
|
+
return this.groupParticularLineItemsByStatus().active;
|
|
110
|
+
}
|
|
111
|
+
// LW-773-inactive-particular-line-items
|
|
112
|
+
get inactiveBillingParticularLineItems() {
|
|
113
|
+
return this.groupParticularLineItemsByStatus().inactive;
|
|
114
|
+
}
|
|
115
|
+
// LW-773-group-particular-line-items-by-source
|
|
116
|
+
groupParticularLineItemsBySource() {
|
|
117
|
+
const invoice = [];
|
|
118
|
+
const ope = [];
|
|
119
|
+
const custom = [];
|
|
120
|
+
for (const item of this.activeBillingParticularLineItems) {
|
|
121
|
+
if (item.source === billing_particular_line_item_source_enum_1.BillingParticularLineItemSourceEnum.INVOICE) {
|
|
122
|
+
invoice.push(item);
|
|
123
|
+
}
|
|
124
|
+
else if (item.source === billing_particular_line_item_source_enum_1.BillingParticularLineItemSourceEnum.OPE) {
|
|
125
|
+
ope.push(item);
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
custom.push(item);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return { invoice, ope, custom };
|
|
132
|
+
}
|
|
88
133
|
getStatusCategory() {
|
|
89
134
|
return this.mapStatusCategory(this.status);
|
|
90
135
|
}
|
|
@@ -576,4 +621,14 @@ BillingEntityModel.relationConfigs = [
|
|
|
576
621
|
key: "id",
|
|
577
622
|
},
|
|
578
623
|
},
|
|
624
|
+
// LW-773-billing-particular-line-item-relation-config
|
|
625
|
+
{
|
|
626
|
+
name: entity_utils_interface_1.EntityEnum.BILLING_PARTICULAR_LINE_ITEM,
|
|
627
|
+
relation: relation_type_enum_1.RelationType.MANY,
|
|
628
|
+
key: "billingParticularLineItems",
|
|
629
|
+
mapKeyConfig: {
|
|
630
|
+
relationKey: "billingId",
|
|
631
|
+
key: "id",
|
|
632
|
+
},
|
|
633
|
+
},
|
|
579
634
|
];
|
|
@@ -28,15 +28,9 @@ export declare class ClientAffiliateEntityModel extends BaseEntityModel<EntityEn
|
|
|
28
28
|
vendorCode?: Nullable<string>;
|
|
29
29
|
static readonly CLIENT_AFFILIATE_ENTITY_DOCUMENT_TYPES: readonly ["pan", "tan", "gst"];
|
|
30
30
|
getRelationConfigs(): any;
|
|
31
|
-
private get parsedAddress();
|
|
32
|
-
get addressLineOne(): string;
|
|
33
|
-
get addressLineTwo(): string;
|
|
34
|
-
get city(): string;
|
|
35
|
-
get state(): string;
|
|
36
31
|
static fromEntity(entity: IClientAffiliateEntity): ClientAffiliateEntityModel;
|
|
37
32
|
static isValidGST(gstNumber: string | null): boolean;
|
|
38
33
|
static isValidPan(panNumber: string | null): boolean;
|
|
39
34
|
static isValidTan(tanNumber: string | null): boolean;
|
|
40
35
|
static validateDocumentNoDocumentFile(data: DocumentFields<typeof ClientAffiliateEntityModel.CLIENT_AFFILIATE_ENTITY_DOCUMENT_TYPES>, deleteDetails?: DeleteDocumentDetails<typeof ClientAffiliateEntityModel.CLIENT_AFFILIATE_ENTITY_DOCUMENT_TYPES>): Result<void, IDtoValidationError[]>;
|
|
41
|
-
get debitNoteAddress(): string;
|
|
42
36
|
}
|
|
@@ -33,32 +33,6 @@ class ClientAffiliateEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
33
33
|
getRelationConfigs() {
|
|
34
34
|
return this.constructor.prototype.constructor.relationConfigs;
|
|
35
35
|
}
|
|
36
|
-
get parsedAddress() {
|
|
37
|
-
if (!this.address)
|
|
38
|
-
return null;
|
|
39
|
-
try {
|
|
40
|
-
return JSON.parse(this.address);
|
|
41
|
-
}
|
|
42
|
-
catch (_a) {
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
get addressLineOne() {
|
|
47
|
-
var _a, _b;
|
|
48
|
-
return (_b = (_a = this.parsedAddress) === null || _a === void 0 ? void 0 : _a.addressLine1) !== null && _b !== void 0 ? _b : "";
|
|
49
|
-
}
|
|
50
|
-
get addressLineTwo() {
|
|
51
|
-
var _a, _b;
|
|
52
|
-
return (_b = (_a = this.parsedAddress) === null || _a === void 0 ? void 0 : _a.addressLine2) !== null && _b !== void 0 ? _b : "";
|
|
53
|
-
}
|
|
54
|
-
get city() {
|
|
55
|
-
var _a, _b;
|
|
56
|
-
return (_b = (_a = this.parsedAddress) === null || _a === void 0 ? void 0 : _a.city) !== null && _b !== void 0 ? _b : "";
|
|
57
|
-
}
|
|
58
|
-
get state() {
|
|
59
|
-
var _a, _b;
|
|
60
|
-
return (_b = (_a = this.parsedAddress) === null || _a === void 0 ? void 0 : _a.state) !== null && _b !== void 0 ? _b : "";
|
|
61
|
-
}
|
|
62
36
|
static fromEntity(entity) {
|
|
63
37
|
const result = new ClientAffiliateEntityModel(entity_utils_interface_1.EntityEnum.CLIENT_AFFILIATE);
|
|
64
38
|
Object.assign(result, entity);
|
|
@@ -76,9 +50,6 @@ class ClientAffiliateEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
76
50
|
static validateDocumentNoDocumentFile(data, deleteDetails) {
|
|
77
51
|
return (0, document_validate_util_1.validateDocumentPairs)(ClientAffiliateEntityModel.CLIENT_AFFILIATE_ENTITY_DOCUMENT_TYPES, data, deleteDetails);
|
|
78
52
|
}
|
|
79
|
-
get debitNoteAddress() {
|
|
80
|
-
return `${this.addressLineOne || ""}, ${this.addressLineTwo || ""}, ${this.city || ""}, ${this.country || ""}, ${this.zipCode || ""}`;
|
|
81
|
-
}
|
|
82
53
|
}
|
|
83
54
|
exports.ClientAffiliateEntityModel = ClientAffiliateEntityModel;
|
|
84
55
|
ClientAffiliateEntityModel.CLIENT_AFFILIATE_ENTITY_DOCUMENT_TYPES = ["pan", "tan", "gst"];
|
|
@@ -79,5 +79,4 @@ export declare class ClientEntityModel extends BaseEntityModel<EntityEnum.CLIENT
|
|
|
79
79
|
get state(): string;
|
|
80
80
|
getBillingsFromProfileCode(billingProfileCode?: string): import("./billing.entity.model").BillingEntityModel[];
|
|
81
81
|
getCreditNoteTransactions(billingProfileCode?: string): import("./billing-transaction.model").BillingTransactionEntityModel[];
|
|
82
|
-
get debitNoteAddress(): string;
|
|
83
82
|
}
|
|
@@ -134,9 +134,6 @@ class ClientEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
134
134
|
getCreditNoteTransactions(billingProfileCode) {
|
|
135
135
|
return this.getBillingsFromProfileCode(billingProfileCode).flatMap((billing) => { var _a; return (_a = billing.creditNoteTransactions) !== null && _a !== void 0 ? _a : []; });
|
|
136
136
|
}
|
|
137
|
-
get debitNoteAddress() {
|
|
138
|
-
return `${this.addressLineOne || ""}, ${this.addressLineTwo || ""}, ${this.city || ""}, ${this.country || ""}, ${this.zipCode || ""}`;
|
|
139
|
-
}
|
|
140
137
|
}
|
|
141
138
|
exports.ClientEntityModel = ClientEntityModel;
|
|
142
139
|
ClientEntityModel.CLIENT_ENTITY_DOCUMENT_TYPES = ["pan", "tan", "gst"];
|