law-common 10.45.3-beta.13 → 10.45.3-beta.14
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.
|
@@ -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;
|
|
@@ -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;
|
|
@@ -40,6 +40,7 @@ export declare class BillingEntityModel extends BaseEntityModel<EntityEnum.BILLI
|
|
|
40
40
|
totalAmountPaid: number;
|
|
41
41
|
tdsAmount: number;
|
|
42
42
|
creditNoteAmount: number;
|
|
43
|
+
refundAmount?: number;
|
|
43
44
|
invoiceEntityId: number;
|
|
44
45
|
invoiceEntityType: BillingInvoiceTypeEnum;
|
|
45
46
|
invoicePdfUrl?: string | null;
|
|
@@ -32,6 +32,7 @@ class BillingEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
32
32
|
this.totalAmountPaid = 0;
|
|
33
33
|
this.tdsAmount = 0;
|
|
34
34
|
this.creditNoteAmount = 0;
|
|
35
|
+
this.refundAmount = 0;
|
|
35
36
|
this.invoiceEntityId = 0;
|
|
36
37
|
this.invoiceEntityType = billing_invoice_type_enum_1.BillingInvoiceTypeEnum.CLIENT;
|
|
37
38
|
this.invoiceContactName = "";
|