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.
@@ -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[];
@@ -20,4 +20,6 @@ export interface IVendorInvoiceEntity extends IEntityAuditColumn {
20
20
  totalGstAmount: number;
21
21
  totalTdsAmount: number;
22
22
  totalNetAmount: number;
23
+ paidAmount: number;
24
+ adjustedAmount: number;
23
25
  }
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "11.0.9",
3
+ "version": "11.1.1-beta.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [