law-common 10.45.3-beta.9 → 10.46.1-beta.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.
Files changed (58) hide show
  1. package/dist/src/api/index.d.ts +2 -0
  2. package/dist/src/api/index.js +2 -0
  3. package/dist/src/api/interface/billing.create.dto.interface.d.ts +2 -1
  4. package/dist/src/api/interface/expense_type.update.dto.d.ts +4 -1
  5. package/dist/src/api/interface/tds_rate.create.dto.interface.autocode.d.ts +0 -0
  6. package/dist/src/api/interface/tds_rate.create.dto.interface.autocode.js +6 -0
  7. package/dist/src/api/interface/tds_rate.create.dto.interface.d.ts +6 -0
  8. package/dist/src/api/interface/tds_rate.create.dto.interface.js +2 -0
  9. package/dist/src/api/interface/tds_rate.update.dto.interface.autocode.d.ts +0 -0
  10. package/dist/src/api/interface/tds_rate.update.dto.interface.autocode.js +3 -0
  11. package/dist/src/api/interface/tds_rate.update.dto.interface.d.ts +3 -0
  12. package/dist/src/api/interface/tds_rate.update.dto.interface.js +2 -0
  13. package/dist/src/entities/enums/billing.transaction.enum.d.ts +2 -1
  14. package/dist/src/entities/enums/billing.transaction.enum.js +2 -1
  15. package/dist/src/entities/enums/tds_rate_status_enum.autocode.d.ts +0 -0
  16. package/dist/src/entities/enums/tds_rate_status_enum.autocode.js +6 -0
  17. package/dist/src/entities/enums/tds_rate_status_enum.d.ts +5 -0
  18. package/dist/src/entities/enums/tds_rate_status_enum.js +9 -0
  19. package/dist/src/entities/index.d.ts +28 -23
  20. package/dist/src/entities/index.js +28 -23
  21. package/dist/src/entities/interface/billing.entity.interface.d.ts +1 -0
  22. package/dist/src/entities/interface/billing_transaction.entity.interface.d.ts +1 -0
  23. package/dist/src/entities/interface/entity.utils.interface.d.ts +9 -3
  24. package/dist/src/entities/interface/entity.utils.interface.js +2 -0
  25. package/dist/src/entities/interface/organization_type_tds_rate_mapping.entity.interface.autocode.d.ts +0 -0
  26. package/dist/src/entities/interface/organization_type_tds_rate_mapping.entity.interface.autocode.js +7 -0
  27. package/dist/src/entities/interface/organization_type_tds_rate_mapping.entity.interface.d.ts +6 -0
  28. package/dist/src/entities/interface/organization_type_tds_rate_mapping.entity.interface.js +2 -0
  29. package/dist/src/entities/interface/tds_rate.entity.interface.autocode.d.ts +0 -0
  30. package/dist/src/entities/interface/tds_rate.entity.interface.autocode.js +12 -0
  31. package/dist/src/entities/interface/tds_rate.entity.interface.d.ts +12 -0
  32. package/dist/src/entities/interface/tds_rate.entity.interface.js +2 -0
  33. package/dist/src/entities/model/billing-transaction.model.d.ts +2 -0
  34. package/dist/src/entities/model/billing-transaction.model.js +13 -1
  35. package/dist/src/entities/model/billing.entity.model.d.ts +16 -0
  36. package/dist/src/entities/model/billing.entity.model.js +84 -14
  37. package/dist/src/entities/model/entity.model.interface.js +4 -0
  38. package/dist/src/entities/model/interface/billing.model.interface.d.ts +10 -0
  39. package/dist/src/entities/model/interface/billing.model.interface.js +2 -0
  40. package/dist/src/entities/model/organization_type_tds_rate_mapping.entity.model.autocode.d.ts +0 -0
  41. package/dist/src/entities/model/organization_type_tds_rate_mapping.entity.model.autocode.js +24 -0
  42. package/dist/src/entities/model/organization_type_tds_rate_mapping.entity.model.d.ts +20 -0
  43. package/dist/src/entities/model/organization_type_tds_rate_mapping.entity.model.js +47 -0
  44. package/dist/src/entities/model/tds_rate.entity.model.autocode.d.ts +0 -0
  45. package/dist/src/entities/model/tds_rate.entity.model.autocode.js +37 -0
  46. package/dist/src/entities/model/tds_rate.entity.model.d.ts +24 -0
  47. package/dist/src/entities/model/tds_rate.entity.model.js +43 -0
  48. package/dist/src/enums/error.key.enum.d.ts +2 -1
  49. package/dist/src/enums/error.key.enum.js +1 -0
  50. package/dist/src/misc/config/app-file-config.d.ts +7 -0
  51. package/dist/src/misc/config/app-file-config.js +2 -0
  52. package/dist/src/misc/index.d.ts +3 -1
  53. package/dist/src/misc/index.js +3 -1
  54. package/dist/src/misc/type/delete-document-details.type.d.ts +1 -0
  55. package/dist/src/misc/type/delete-document-details.type.js +2 -0
  56. package/dist/src/utils/helper.fn.util.d.ts +54 -9
  57. package/dist/src/utils/helper.fn.util.js +76 -14
  58. package/package.json +1 -1
@@ -58,3 +58,5 @@ export * from "./interface/gst_rate.create.dto.interface";
58
58
  export * from "./interface/gst_rate.update.dto.interface";
59
59
  export * from "./interface/organization_type.create.dto.interface";
60
60
  export * from "./interface/organization_type.update.dto.interface";
61
+ export * from "./interface/tds_rate.create.dto.interface";
62
+ export * from "./interface/tds_rate.update.dto.interface";
@@ -78,3 +78,5 @@ __exportStar(require("./interface/gst_rate.create.dto.interface"), exports);
78
78
  __exportStar(require("./interface/gst_rate.update.dto.interface"), exports);
79
79
  __exportStar(require("./interface/organization_type.create.dto.interface"), exports);
80
80
  __exportStar(require("./interface/organization_type.update.dto.interface"), exports);
81
+ __exportStar(require("./interface/tds_rate.create.dto.interface"), exports);
82
+ __exportStar(require("./interface/tds_rate.update.dto.interface"), exports);
@@ -1,5 +1,5 @@
1
1
  import { BillingImpactEnum, BillingReimbursementExpenseChangedStatusEnum, BillingStatusEnum, IBillingEntity, IBillingTimesheetEntity, IEntityCreateDto, IProjectEntity, ITimesheetEntity } from "../../entities";
2
- export type IBillingCreateExclude = "paymentStatus" | "status" | "writeoffAmount" | "tdsAmount" | "totalAmountPaid" | "creditNoteAmount" | "invoicePdfUrl" | "startDate" | "endDate";
2
+ export type IBillingCreateExclude = "paymentStatus" | "status" | "writeoffAmount" | "tdsAmount" | "totalAmountPaid" | "creditNoteAmount" | "refundAmount" | "invoicePdfUrl" | "startDate" | "endDate";
3
3
  export interface IBillingCreateDto extends Omit<IEntityCreateDto<IBillingEntity>, IBillingCreateExclude | "particulars"> {
4
4
  timesheets?: IBillingTimesheetsDto;
5
5
  status?: BillingStatusEnum;
@@ -9,6 +9,7 @@ export interface IBillingCreateDto extends Omit<IEntityCreateDto<IBillingEntity>
9
9
  endDate?: string;
10
10
  }
11
11
  export interface IBillingParticulars {
12
+ invoiceDescription: string;
12
13
  invoiceText?: string;
13
14
  debitNoteText?: string;
14
15
  includeDebitNoteSummary: boolean;
@@ -1,6 +1,9 @@
1
- import { ExpenseTypeEnum } from "../../entities";
1
+ import { ExpenseTypeEnum, IExpenseTypeEntity } from "../../entities";
2
2
  export interface IExpenseTypeUpdateDto {
3
3
  name?: string;
4
4
  description?: string;
5
5
  type?: ExpenseTypeEnum;
6
6
  }
7
+ export interface IExpenseTypeUpdateDtoValidationData {
8
+ existingEntity: IExpenseTypeEntity;
9
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // import { IEntityCreateDto } from "../../entities";
3
+ // export type ITdsRateCreateExclude = "status";
4
+ // export interface ITdsRateCreateDto extends Omit<IEntityCreateDto<ITdsRateEntity>, ITdsRateCreateExclude> {
5
+ // organizationTypeIds: number[];
6
+ // }
@@ -0,0 +1,6 @@
1
+ import { IEntityCreateDto } from "../../entities";
2
+ import { ITdsRateEntity } from "../../entities/interface/tds_rate.entity.interface";
3
+ export type ITdsRateCreateExclude = "status";
4
+ export interface ITdsRateCreateDto extends Omit<IEntityCreateDto<ITdsRateEntity>, ITdsRateCreateExclude> {
5
+ organizationTypeIds: number[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // import { DeepPartialButRequired } from "./api.utils.interface";
3
+ // export type ITdsRateUpdateDto = DeepPartialButRequired<ITdsRateCreateDto, never>;
@@ -0,0 +1,3 @@
1
+ import { DeepPartialButRequired } from "./api.utils.interface";
2
+ import { ITdsRateCreateDto } from "./tds_rate.create.dto.interface";
3
+ export type ITdsRateUpdateDto = DeepPartialButRequired<ITdsRateCreateDto, never>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,7 +2,8 @@ export declare enum BillingTransactionType {
2
2
  TDS = "TDS",
3
3
  WRITE_OFF = "WRITE_OFF",
4
4
  CREDIT_NOTE = "CREDIT_NOTE",
5
- PAYMENT = "PAYMENT"
5
+ RECEIPT = "RECEIPT",
6
+ REFUND = "REFUND"
6
7
  }
7
8
  export declare namespace BillingTransactionType {
8
9
  function getNames(): string[];
@@ -8,7 +8,8 @@ var BillingTransactionType;
8
8
  BillingTransactionType["TDS"] = "TDS";
9
9
  BillingTransactionType["WRITE_OFF"] = "WRITE_OFF";
10
10
  BillingTransactionType["CREDIT_NOTE"] = "CREDIT_NOTE";
11
- BillingTransactionType["PAYMENT"] = "PAYMENT";
11
+ BillingTransactionType["RECEIPT"] = "RECEIPT";
12
+ BillingTransactionType["REFUND"] = "REFUND";
12
13
  })(BillingTransactionType || (exports.BillingTransactionType = BillingTransactionType = {}));
13
14
  (function (BillingTransactionType) {
14
15
  function getNames() {
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // export enum TdsRateStatusEnum {
3
+ // ACTIVE = "ACTIVE",
4
+ // INACTIVE = "INACTIVE",
5
+ // DEACTIVE = "DEACTIVE",
6
+ // }
@@ -0,0 +1,5 @@
1
+ export declare enum TdsRateStatusEnum {
2
+ ACTIVE = "ACTIVE",
3
+ INACTIVE = "INACTIVE",
4
+ DEACTIVE = "DEACTIVE"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TdsRateStatusEnum = void 0;
4
+ var TdsRateStatusEnum;
5
+ (function (TdsRateStatusEnum) {
6
+ TdsRateStatusEnum["ACTIVE"] = "ACTIVE";
7
+ TdsRateStatusEnum["INACTIVE"] = "INACTIVE";
8
+ TdsRateStatusEnum["DEACTIVE"] = "DEACTIVE";
9
+ })(TdsRateStatusEnum || (exports.TdsRateStatusEnum = TdsRateStatusEnum = {}));
@@ -1,6 +1,6 @@
1
+ export * from "./enums/organization.entity.enum";
1
2
  export * from "./enums/task.entity.enum";
2
3
  export * from "./enums/user.entity.enum";
3
- export * from "./enums/organization.entity.enum";
4
4
  export * from "./interface/entity.utils.interface";
5
5
  export * from "./interface/organization.entity.interface";
6
6
  export * from "./interface/task.entity.interface";
@@ -47,12 +47,12 @@ export * from "./enums/entity_search_constraint_type.enum";
47
47
  export * from "./enums/bank_action.enum";
48
48
  export * from "./enums/bank_status.enum";
49
49
  export * from "./interface/bank_history.entity.interface";
50
+ export * from "./enums/duration-type.enum";
51
+ export * from "./enums/leave-type.enum";
50
52
  export * from "./enums/leave.action.enum";
51
53
  export * from "./enums/leave.status.enum";
52
54
  export * from "./interface/leave.entity.interface";
53
55
  export * from "./interface/leave_history.entity.interface";
54
- export * from "./enums/duration-type.enum";
55
- export * from "./enums/leave-type.enum";
56
56
  export * from "./enums/work.from.home.action.enum";
57
57
  export * from "./enums/work.from.home.status.enum";
58
58
  export * from "./interface/work_from_home.entity.interface";
@@ -61,56 +61,61 @@ export * from "./interface/country.entity.interface";
61
61
  export * from "./enums/billing_invoice_type.enum";
62
62
  export * from "./interface/billing_timesheet.entity.interface";
63
63
  export * from "./interface/intermediary_bank.entity.interface";
64
+ export * from "./interface/address-book.entity.interface";
64
65
  export * from "./interface/holiday-list.entity.interface";
65
66
  export * from "./interface/holiday.entity.interface";
66
- export * from "./interface/address-book.entity.interface";
67
- export * from "./model/leave.entity.model";
68
- export * from "./model/leave_count.entity.model";
69
- export * from "./model/holiday.entity.model";
67
+ export * from "./enums/configuration-key.enum";
70
68
  export * from "./enums/cron-jobs-name.enum";
71
69
  export * from "./enums/cron-jobs-status.enum";
72
- export * from "./enums/configuration-key.enum";
73
70
  export * from "./enums/timezone.enum";
74
71
  export * from "./interface/cron-job.entity.interface";
75
- export * from "./model/configuration.model";
76
72
  export * from "./interface/to-do.entity.interface";
77
- export * from "./enums/billing-type.enum";
78
- export * from "./interface/billing-reimbursement-expense.entity.interface";
73
+ export * from "./model/configuration.model";
74
+ export * from "./model/holiday.entity.model";
75
+ export * from "./model/leave.entity.model";
76
+ export * from "./model/leave_count.entity.model";
77
+ export * from "./enums/billing-reimburement-expense-impact.enum";
79
78
  export * from "./enums/billing-reimbursement-expense-change-status.enum";
79
+ export * from "./enums/billing-type.enum";
80
80
  export * from "./interface/billing-reimbursement-expense-history.entity.interface";
81
- export * from "./enums/billing-reimburement-expense-impact.enum";
81
+ export * from "./interface/billing-reimbursement-expense.entity.interface";
82
82
  export * from "./model/bank.entity.model";
83
83
  export * from "./model/base.entity.model";
84
84
  export * from "./model/billing-reimbursement-expense.entity.model";
85
+ export * from "./model/billing-timesheet.entity.model";
85
86
  export * from "./model/billing.entity.model";
87
+ export * from "./model/client-affiliate.entity.model";
88
+ export * from "./model/client.entity.model";
89
+ export * from "./model/configuration.model";
90
+ export * from "./model/country.entity.model";
91
+ export * from "./model/designation.entity.model";
86
92
  export * from "./model/entity.model.interface";
87
93
  export * from "./model/project-user-mapping.entity.model";
88
94
  export * from "./model/project.entity.model";
89
95
  export * from "./model/reimbursement-expense.entity.model";
90
96
  export * from "./model/reimbursement.entity.model";
91
97
  export * from "./model/task.entity.model";
92
- export * from "./model/user.entity.model";
93
- export * from "./model/client.entity.model";
94
- export * from "./model/configuration.model";
95
- export * from "./model/designation.entity.model";
96
98
  export * from "./model/timesheet.entity.model";
97
99
  export * from "./model/user.entity.model";
98
- export * from "./model/client-affiliate.entity.model";
99
- export * from "./model/billing-timesheet.entity.model";
100
- export * from "./model/country.entity.model";
101
100
  export * from "./interface/entity-audit-columns.interface";
102
101
  export * from "./enums/billing-transaction-action.enum";
103
102
  export * from "./enums/billing-transaction-status.enum";
104
103
  export * from "./interface/billing-transaction-history.entity";
105
104
  export * from "./model/billing-transaction.model";
106
- export * from "./interface/address-book.entity.interface";
107
105
  export * from "./enums/address_book_status_enum";
108
- export * from "./interface/state.entity.interface";
106
+ export * from "./interface/address-book.entity.interface";
109
107
  export * from "./enums/state_status_enum";
108
+ export * from "./interface/state.entity.interface";
110
109
  export * from "./model/state.entity.model";
111
- export * from "./interface/gst_rate.entity.interface";
112
110
  export * from "./enums/gst_rate_status_enum";
111
+ export * from "./interface/gst_rate.entity.interface";
113
112
  export * from "./model/gst_rate.entity.model";
114
- export * from "./interface/organization_type.entity.interface";
115
113
  export * from "./enums/organization_type_status_enum";
114
+ export * from "./interface/organization_type.entity.interface";
116
115
  export * from "./model/organization_type.entity.model";
116
+ export * from "./interface/organization_type_tds_rate_mapping.entity.interface";
117
+ export * from "./model/organization_type_tds_rate_mapping.entity.model";
118
+ export * from "./enums/tds_rate_status_enum";
119
+ export * from "./interface/tds_rate.entity.interface";
120
+ export * from "./model/tds_rate.entity.model";
121
+ export * from "./model/interface/billing.model.interface";
@@ -14,9 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./enums/organization.entity.enum"), exports);
17
18
  __exportStar(require("./enums/task.entity.enum"), exports);
18
19
  __exportStar(require("./enums/user.entity.enum"), exports);
19
- __exportStar(require("./enums/organization.entity.enum"), exports);
20
20
  __exportStar(require("./interface/entity.utils.interface"), exports);
21
21
  __exportStar(require("./interface/organization.entity.interface"), exports);
22
22
  __exportStar(require("./interface/task.entity.interface"), exports);
@@ -63,12 +63,12 @@ __exportStar(require("./enums/entity_search_constraint_type.enum"), exports);
63
63
  __exportStar(require("./enums/bank_action.enum"), exports);
64
64
  __exportStar(require("./enums/bank_status.enum"), exports);
65
65
  __exportStar(require("./interface/bank_history.entity.interface"), exports);
66
+ __exportStar(require("./enums/duration-type.enum"), exports);
67
+ __exportStar(require("./enums/leave-type.enum"), exports);
66
68
  __exportStar(require("./enums/leave.action.enum"), exports);
67
69
  __exportStar(require("./enums/leave.status.enum"), exports);
68
70
  __exportStar(require("./interface/leave.entity.interface"), exports);
69
71
  __exportStar(require("./interface/leave_history.entity.interface"), exports);
70
- __exportStar(require("./enums/duration-type.enum"), exports);
71
- __exportStar(require("./enums/leave-type.enum"), exports);
72
72
  __exportStar(require("./enums/work.from.home.action.enum"), exports);
73
73
  __exportStar(require("./enums/work.from.home.status.enum"), exports);
74
74
  __exportStar(require("./interface/work_from_home.entity.interface"), exports);
@@ -77,56 +77,61 @@ __exportStar(require("./interface/country.entity.interface"), exports);
77
77
  __exportStar(require("./enums/billing_invoice_type.enum"), exports);
78
78
  __exportStar(require("./interface/billing_timesheet.entity.interface"), exports);
79
79
  __exportStar(require("./interface/intermediary_bank.entity.interface"), exports);
80
+ __exportStar(require("./interface/address-book.entity.interface"), exports);
80
81
  __exportStar(require("./interface/holiday-list.entity.interface"), exports);
81
82
  __exportStar(require("./interface/holiday.entity.interface"), exports);
82
- __exportStar(require("./interface/address-book.entity.interface"), exports);
83
- __exportStar(require("./model/leave.entity.model"), exports);
84
- __exportStar(require("./model/leave_count.entity.model"), exports);
85
- __exportStar(require("./model/holiday.entity.model"), exports);
83
+ __exportStar(require("./enums/configuration-key.enum"), exports);
86
84
  __exportStar(require("./enums/cron-jobs-name.enum"), exports);
87
85
  __exportStar(require("./enums/cron-jobs-status.enum"), exports);
88
- __exportStar(require("./enums/configuration-key.enum"), exports);
89
86
  __exportStar(require("./enums/timezone.enum"), exports);
90
87
  __exportStar(require("./interface/cron-job.entity.interface"), exports);
91
- __exportStar(require("./model/configuration.model"), exports);
92
88
  __exportStar(require("./interface/to-do.entity.interface"), exports);
93
- __exportStar(require("./enums/billing-type.enum"), exports);
94
- __exportStar(require("./interface/billing-reimbursement-expense.entity.interface"), exports);
89
+ __exportStar(require("./model/configuration.model"), exports);
90
+ __exportStar(require("./model/holiday.entity.model"), exports);
91
+ __exportStar(require("./model/leave.entity.model"), exports);
92
+ __exportStar(require("./model/leave_count.entity.model"), exports);
93
+ __exportStar(require("./enums/billing-reimburement-expense-impact.enum"), exports);
95
94
  __exportStar(require("./enums/billing-reimbursement-expense-change-status.enum"), exports);
95
+ __exportStar(require("./enums/billing-type.enum"), exports);
96
96
  __exportStar(require("./interface/billing-reimbursement-expense-history.entity.interface"), exports);
97
- __exportStar(require("./enums/billing-reimburement-expense-impact.enum"), exports);
97
+ __exportStar(require("./interface/billing-reimbursement-expense.entity.interface"), exports);
98
98
  __exportStar(require("./model/bank.entity.model"), exports);
99
99
  __exportStar(require("./model/base.entity.model"), exports);
100
100
  __exportStar(require("./model/billing-reimbursement-expense.entity.model"), exports);
101
+ __exportStar(require("./model/billing-timesheet.entity.model"), exports);
101
102
  __exportStar(require("./model/billing.entity.model"), exports);
103
+ __exportStar(require("./model/client-affiliate.entity.model"), exports);
104
+ __exportStar(require("./model/client.entity.model"), exports);
105
+ __exportStar(require("./model/configuration.model"), exports);
106
+ __exportStar(require("./model/country.entity.model"), exports);
107
+ __exportStar(require("./model/designation.entity.model"), exports);
102
108
  __exportStar(require("./model/entity.model.interface"), exports);
103
109
  __exportStar(require("./model/project-user-mapping.entity.model"), exports);
104
110
  __exportStar(require("./model/project.entity.model"), exports);
105
111
  __exportStar(require("./model/reimbursement-expense.entity.model"), exports);
106
112
  __exportStar(require("./model/reimbursement.entity.model"), exports);
107
113
  __exportStar(require("./model/task.entity.model"), exports);
108
- __exportStar(require("./model/user.entity.model"), exports);
109
- __exportStar(require("./model/client.entity.model"), exports);
110
- __exportStar(require("./model/configuration.model"), exports);
111
- __exportStar(require("./model/designation.entity.model"), exports);
112
114
  __exportStar(require("./model/timesheet.entity.model"), exports);
113
115
  __exportStar(require("./model/user.entity.model"), exports);
114
- __exportStar(require("./model/client-affiliate.entity.model"), exports);
115
- __exportStar(require("./model/billing-timesheet.entity.model"), exports);
116
- __exportStar(require("./model/country.entity.model"), exports);
117
116
  __exportStar(require("./interface/entity-audit-columns.interface"), exports);
118
117
  __exportStar(require("./enums/billing-transaction-action.enum"), exports);
119
118
  __exportStar(require("./enums/billing-transaction-status.enum"), exports);
120
119
  __exportStar(require("./interface/billing-transaction-history.entity"), exports);
121
120
  __exportStar(require("./model/billing-transaction.model"), exports);
122
- __exportStar(require("./interface/address-book.entity.interface"), exports);
123
121
  __exportStar(require("./enums/address_book_status_enum"), exports);
124
- __exportStar(require("./interface/state.entity.interface"), exports);
122
+ __exportStar(require("./interface/address-book.entity.interface"), exports);
125
123
  __exportStar(require("./enums/state_status_enum"), exports);
124
+ __exportStar(require("./interface/state.entity.interface"), exports);
126
125
  __exportStar(require("./model/state.entity.model"), exports);
127
- __exportStar(require("./interface/gst_rate.entity.interface"), exports);
128
126
  __exportStar(require("./enums/gst_rate_status_enum"), exports);
127
+ __exportStar(require("./interface/gst_rate.entity.interface"), exports);
129
128
  __exportStar(require("./model/gst_rate.entity.model"), exports);
130
- __exportStar(require("./interface/organization_type.entity.interface"), exports);
131
129
  __exportStar(require("./enums/organization_type_status_enum"), exports);
130
+ __exportStar(require("./interface/organization_type.entity.interface"), exports);
132
131
  __exportStar(require("./model/organization_type.entity.model"), exports);
132
+ __exportStar(require("./interface/organization_type_tds_rate_mapping.entity.interface"), exports);
133
+ __exportStar(require("./model/organization_type_tds_rate_mapping.entity.model"), exports);
134
+ __exportStar(require("./enums/tds_rate_status_enum"), exports);
135
+ __exportStar(require("./interface/tds_rate.entity.interface"), exports);
136
+ __exportStar(require("./model/tds_rate.entity.model"), exports);
137
+ __exportStar(require("./model/interface/billing.model.interface"), exports);
@@ -20,6 +20,7 @@ export interface IBillingEntity extends IEntityAuditColumn {
20
20
  totalAmountPaid: number;
21
21
  tdsAmount: number;
22
22
  creditNoteAmount: number;
23
+ refundAmount: number;
23
24
  invoiceEntityId: number;
24
25
  invoiceEntityType: BillingInvoiceTypeEnum;
25
26
  invoicePdfUrl?: string | null;
@@ -5,6 +5,7 @@ import { IEntityFilterData } from "./entity.utils.interface";
5
5
  export interface IBillingTransactionEntity extends IEntityAuditColumn {
6
6
  id: number;
7
7
  billingId: number;
8
+ advanceBillingId?: number;
8
9
  type: BillingTransactionType;
9
10
  amount: number;
10
11
  details: string;
@@ -18,12 +18,14 @@ import { HolidayEntityModel } from "../model/holiday.entity.model";
18
18
  import { LeaveEntityModel } from "../model/leave.entity.model";
19
19
  import { LeaveCountVirtualEntityModel } from "../model/leave_count.entity.model";
20
20
  import { OrganizationTypeEntityModel } from "../model/organization_type.entity.model";
21
+ import { OrganizationTypeTdsRateMappingEntityModel } from "../model/organization_type_tds_rate_mapping.entity.model";
21
22
  import { ProjectUserMappingEntityModel } from "../model/project-user-mapping.entity.model";
22
23
  import { ProjectEntityModel } from "../model/project.entity.model";
23
24
  import { ReimbursementExpenseEntityModel } from "../model/reimbursement-expense.entity.model";
24
25
  import { ReimbursementEntityModel } from "../model/reimbursement.entity.model";
25
26
  import { StateEntityModel } from "../model/state.entity.model";
26
27
  import { TaskEntityModel } from "../model/task.entity.model";
28
+ import { TdsRateEntityModel } from "../model/tds_rate.entity.model";
27
29
  import { TimesheetEntityModel } from "../model/timesheet.entity.model";
28
30
  import { UserEntityModel } from "../model/user.entity.model";
29
31
  import { IAddressBookEntity } from "./address-book.entity.interface";
@@ -53,6 +55,7 @@ import { ILeaveHistoryEntity } from "./leave_history.entity.interface";
53
55
  import { IOfficeLocationEntity } from "./office.location.entity";
54
56
  import { IOrganizationEntity } from "./organization.entity.interface";
55
57
  import { IOrganizationTypeEntity } from "./organization_type.entity.interface";
58
+ import { IOrganizationTypeTdsRateMappingEntity } from "./organization_type_tds_rate_mapping.entity.interface";
56
59
  import { IPermissionEntity } from "./permission.entity.interface";
57
60
  import { IProjectEntity, IProjectUserMappingEntity } from "./project.entity.interface";
58
61
  import { IRateEntity } from "./rate.entity.interface";
@@ -62,6 +65,7 @@ import { IRoleEntity } from "./role.entity.interface";
62
65
  import { IRolePermissionMappingEntity } from "./role.permission.mapping.entity.interface";
63
66
  import { IStateEntity } from "./state.entity.interface";
64
67
  import { ITaskEntity } from "./task.entity.interface";
68
+ import { ITdsRateEntity } from "./tds_rate.entity.interface";
65
69
  import { ITimesheetEntity } from "./timesheet.entity.interface";
66
70
  import { ITimesheetHistoryEntity } from "./timesheet_history.entity.interface";
67
71
  import { IToDoListEntity } from "./to-do.entity.interface";
@@ -152,7 +156,9 @@ export declare enum EntityEnum {
152
156
  ADDRESS_BOOK = "address_book",
153
157
  STATE = "state",
154
158
  GST_RATE = "gst_rate",
155
- ORGANIZATION_TYPE = "organization_type"
159
+ ORGANIZATION_TYPE = "organization_type",
160
+ TDS_RATE = "tds_rate",
161
+ ORGANIZATION_TYPE_TDS_RATE_MAPPING = "organization_type_tds_rate_mapping"
156
162
  }
157
163
  export type EntityRelations = {
158
164
  [K in EntityEnum | VirtualEntityEnum]: K;
@@ -171,7 +177,7 @@ export type IBaseEntityApiResponse<T> = {
171
177
  [K in EntityEnum | VirtualEntityEnum]?: IBaseEntityApiResponse<EnumEntityType<K>>;
172
178
  };
173
179
  };
174
- export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_TIMESHEET ? IBillingTimesheetEntity : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? IBillingReimbursementExpenseEntity : 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_PAYMENT ? IBillingPaymentEntity : 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.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 : never) & {
180
+ export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_TIMESHEET ? IBillingTimesheetEntity : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? IBillingReimbursementExpenseEntity : 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_PAYMENT ? IBillingPaymentEntity : 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.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 : never) & {
175
181
  id: number;
176
182
  };
177
183
  export type EntityRelationConfig<T extends EntityEnum | VirtualEntityEnum> = {
@@ -294,7 +300,7 @@ export declare enum VirtualEntityEnum {
294
300
  }
295
301
  export type IHistoryConstraintSearchResponse<T> = IBaseResponse<IHistoryEntitySearchByConstraintResponse<T>[]>;
296
302
  export type IHistoryConstraintSearchServiceResponse<T> = IHistoryEntitySearchByConstraintResponse<T>[];
297
- export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.CLIENT ? ClientEntityModel : 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.LEAVE ? LeaveEntityModel : 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.TIMESHEET ? TimesheetEntityModel : T extends EntityEnum.COUNTRY ? CountryEntityModel : T extends EntityEnum.BILLING_TRANSACTION ? BillingTransactionEntityModel : T extends EntityEnum.ADDRESS_BOOK ? AddressBookEntityModel : T extends EntityEnum.STATE ? StateEntityModel : T extends EntityEnum.GST_RATE ? GstRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE ? OrganizationTypeEntityModel : UserEntityModel;
303
+ export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.CLIENT ? ClientEntityModel : 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.LEAVE ? LeaveEntityModel : 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.TIMESHEET ? TimesheetEntityModel : T extends EntityEnum.COUNTRY ? CountryEntityModel : T extends EntityEnum.BILLING_TRANSACTION ? BillingTransactionEntityModel : 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.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? OrganizationTypeTdsRateMappingEntityModel : T extends EntityEnum.TDS_RATE ? TdsRateEntityModel : UserEntityModel;
298
304
  export type EntityMap = {
299
305
  [key in EntityEnum | VirtualEntityEnum]: EnumToModel<key>[];
300
306
  };
@@ -81,6 +81,8 @@ var EntityEnum;
81
81
  EntityEnum["STATE"] = "state";
82
82
  EntityEnum["GST_RATE"] = "gst_rate";
83
83
  EntityEnum["ORGANIZATION_TYPE"] = "organization_type";
84
+ EntityEnum["TDS_RATE"] = "tds_rate";
85
+ EntityEnum["ORGANIZATION_TYPE_TDS_RATE_MAPPING"] = "organization_type_tds_rate_mapping";
84
86
  })(EntityEnum || (exports.EntityEnum = EntityEnum = {}));
85
87
  var VirtualEntityEnum;
86
88
  (function (VirtualEntityEnum) {
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ // import { IEntityAuditColumn } from "./entity-audit-columns.interface";
3
+ // export interface IOrganizationTypeTdsRateMappingEntity extends IEntityAuditColumn {
4
+ // id: number;
5
+ // organizationTypeId: number;
6
+ // tdsRateId: number;
7
+ // }
@@ -0,0 +1,6 @@
1
+ import { IEntityAuditColumn } from "./entity-audit-columns.interface";
2
+ export interface IOrganizationTypeTdsRateMappingEntity extends IEntityAuditColumn {
3
+ id: number;
4
+ organizationTypeId: number;
5
+ tdsRateId: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // import { IEntityAuditColumn } from "./entity-audit-columns.interface";
3
+ // export interface ITdsRateEntity extends IEntityAuditColumn {
4
+ // id: number;
5
+ // section: string;
6
+ // code: string;
7
+ // description?: string;
8
+ // panAvailableRate: number;
9
+ // panNotAvailableRate: number;
10
+ // effectiveFrom: number;
11
+ // status: TdsRateStatusEnum;
12
+ // }
@@ -0,0 +1,12 @@
1
+ import { TdsRateStatusEnum } from "../enums/tds_rate_status_enum";
2
+ import { IEntityAuditColumn } from "./entity-audit-columns.interface";
3
+ export interface ITdsRateEntity extends IEntityAuditColumn {
4
+ id: number;
5
+ section: string;
6
+ code: string;
7
+ description?: string;
8
+ panAvailableRate: number;
9
+ panNotAvailableRate: number;
10
+ effectiveFrom: number;
11
+ status: TdsRateStatusEnum;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,6 +10,7 @@ import { UserEntityModel } from "./user.entity.model";
10
10
  export declare class BillingTransactionEntityModel extends BaseEntityModel<EntityEnum.BILLING_TRANSACTION> implements IBillingTransactionEntity {
11
11
  id: number;
12
12
  billingId: number;
13
+ advanceBillingId?: number;
13
14
  type: BillingTransactionType;
14
15
  amount: number;
15
16
  details: string;
@@ -35,4 +36,5 @@ export declare class BillingTransactionEntityModel extends BaseEntityModel<Entit
35
36
  EntityEnum.BILLING
36
37
  ], EnumEntityType<EntityEnum.BILLING_TRANSACTION>>;
37
38
  static fromEntity(entity: IBillingTransactionEntity): BillingTransactionEntityModel;
39
+ static sumAmounts(transactions: BillingTransactionEntityModel[]): number;
38
40
  }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BillingTransactionEntityModel = void 0;
4
+ const utils_1 = require("../../utils");
4
5
  const billing_transaction_status_enum_1 = require("../enums/billing-transaction-status.enum");
5
6
  const billing_transaction_enum_1 = require("../enums/billing.transaction.enum");
6
7
  const relation_type_enum_1 = require("../enums/relation-type.enum");
@@ -11,7 +12,8 @@ class BillingTransactionEntityModel extends base_entity_model_1.BaseEntityModel
11
12
  super(...arguments);
12
13
  this.id = 0;
13
14
  this.billingId = 0;
14
- this.type = billing_transaction_enum_1.BillingTransactionType.PAYMENT;
15
+ this.advanceBillingId = 0;
16
+ this.type = billing_transaction_enum_1.BillingTransactionType.RECEIPT;
15
17
  this.amount = 0;
16
18
  this.details = "";
17
19
  this.status = billing_transaction_status_enum_1.BillingTransactionStatusEnum.APPROVED;
@@ -30,6 +32,16 @@ class BillingTransactionEntityModel extends base_entity_model_1.BaseEntityModel
30
32
  Object.assign(result, entity);
31
33
  return result;
32
34
  }
35
+ static sumAmounts(transactions) {
36
+ return (0, utils_1.sumArray)(transactions.map((t) => {
37
+ var _a;
38
+ return ({
39
+ amount: typeof t.amount === "string"
40
+ ? (0, utils_1.getDecimalNumberFromString)(t.amount)
41
+ : ((_a = t.amount) !== null && _a !== void 0 ? _a : 0),
42
+ });
43
+ }), "amount");
44
+ }
33
45
  }
34
46
  exports.BillingTransactionEntityModel = BillingTransactionEntityModel;
35
47
  BillingTransactionEntityModel.relationConfigs = [
@@ -6,6 +6,7 @@ import { BillingStatusEnum } from "../enums/billing.status.enum";
6
6
  import { BillingInvoiceTypeEnum } from "../enums/billing_invoice_type.enum";
7
7
  import { PaymentStatusEnum } from "../enums/payment_status.enum";
8
8
  import { IBillingEntity } from "../interface/billing.entity.interface";
9
+ import { IBillingTransactionEntity } from "../interface/billing_transaction.entity.interface";
9
10
  import { EntityEnum, EnumEntityType } from "../interface/entity.utils.interface";
10
11
  import { RelationConfigs } from "../interface/relation-config.interface";
11
12
  import { BankEntityModel } from "./bank.entity.model";
@@ -14,6 +15,7 @@ import { BillingReimbursementExpneseEntityModel } from "./billing-reimbursement-
14
15
  import { BillingTimesheetEntityModel } from "./billing-timesheet.entity.model";
15
16
  import { BillingTransactionEntityModel } from "./billing-transaction.model";
16
17
  import { ClientEntityModel } from "./client.entity.model";
18
+ import { IAdvanceBillingTransactionsSummary } from "./interface/billing.model.interface";
17
19
  import { ProjectEntityModel } from "./project.entity.model";
18
20
  import { ReimbursementExpenseEntityModel } from "./reimbursement-expense.entity.model";
19
21
  import { UserEntityModel } from "./user.entity.model";
@@ -40,6 +42,7 @@ export declare class BillingEntityModel extends BaseEntityModel<EntityEnum.BILLI
40
42
  totalAmountPaid: number;
41
43
  tdsAmount: number;
42
44
  creditNoteAmount: number;
45
+ refundAmount: number;
43
46
  invoiceEntityId: number;
44
47
  invoiceEntityType: BillingInvoiceTypeEnum;
45
48
  invoicePdfUrl?: string | null;
@@ -87,4 +90,17 @@ export declare class BillingEntityModel extends BaseEntityModel<EntityEnum.BILLI
87
90
  [key: string]: () => boolean;
88
91
  }): BillingActionsEnum[];
89
92
  getRelationConfigs(): any;
93
+ getAdvanceBillingTransactionsSummary(adjustedBillingTransactions: IBillingTransactionEntity[]): IAdvanceBillingTransactionsSummary;
94
+ private getUseableTDSAmount;
95
+ private getUsedTDSAmount;
96
+ private getTotalTDSAmount;
97
+ private getTotalRecieptAmount;
98
+ private getUseableRecieptAmount;
99
+ private getUsedRecieptAmount;
100
+ private getUseableAmount;
101
+ private getUsedAmount;
102
+ getTotalAmountRecieved(): number;
103
+ getTotalRecievableAmount(): number;
104
+ validateAdvanceBillingId(adjustedBillingTransactions: IBillingTransactionEntity[]): void;
105
+ getApprovedBillingTransactionsTotalAmount(): number;
90
106
  }