law-common 11.0.9 → 11.1.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.
- package/dist/src/api/interface/vendor_invoice.create.dto.interface.d.ts +1 -1
- package/dist/src/entities/interface/vendor_invoice.entity.interface.d.ts +2 -0
- package/dist/src/entities/model/vendor_invoice.entity.model.d.ts +2 -0
- package/dist/src/entities/model/vendor_invoice.entity.model.js +2 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { IEntityCreateDto, Nullable } from "../../entities";
|
|
|
2
2
|
import { IAppFileConfig, IFilePayload, MulterFileWithUrl } from "../../misc";
|
|
3
3
|
import { IVendorInvoiceEntity } from "../../entities/interface/vendor_invoice.entity.interface";
|
|
4
4
|
import { IVendorInvoiceItemCreateDto } from "./vendor_invoice_item.create.dto.interface";
|
|
5
|
-
export type IVendorInvoiceCreateExclude = "status" | "actionStatus" | "invoiceDocuments" | "remark";
|
|
5
|
+
export type IVendorInvoiceCreateExclude = "status" | "actionStatus" | "invoiceDocuments" | "remark" | "paidAmount" | "adjustedAmount";
|
|
6
6
|
export interface IVendorInvoiceCreateDto extends Omit<IEntityCreateDto<IVendorInvoiceEntity>, IVendorInvoiceCreateExclude> {
|
|
7
7
|
invoiceDocuments?: Nullable<MulterFileWithUrl[]>;
|
|
8
8
|
files: IFilePayload[];
|
|
@@ -34,6 +34,8 @@ export declare class VendorInvoiceEntityModel extends BaseEntityModel<EntityEnum
|
|
|
34
34
|
totalGstAmount: number;
|
|
35
35
|
totalTdsAmount: number;
|
|
36
36
|
totalNetAmount: number;
|
|
37
|
+
paidAmount: number;
|
|
38
|
+
adjustedAmount: number;
|
|
37
39
|
vendor?: VendorEntityModel;
|
|
38
40
|
officeLocation?: OfficeLocationEntityModel;
|
|
39
41
|
vendorInvoiceItems?: VendorInvoiceItemEntityModel[];
|
|
@@ -32,6 +32,8 @@ class VendorInvoiceEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
32
32
|
this.totalGstAmount = 0;
|
|
33
33
|
this.totalTdsAmount = 0;
|
|
34
34
|
this.totalNetAmount = 0;
|
|
35
|
+
this.paidAmount = 0;
|
|
36
|
+
this.adjustedAmount = 0;
|
|
35
37
|
}
|
|
36
38
|
static fromEntity(entity) {
|
|
37
39
|
const result = new VendorInvoiceEntityModel(entity_utils_interface_1.EntityEnum.VENDOR_INVOICE);
|