@mody-park-cha-raja/finance_common 4.31.1-beta.0 → 4.33.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/index.d.mts CHANGED
@@ -550,6 +550,7 @@ declare class VendorBillModel extends BaseEntityModel implements IVendorBillEnti
550
550
  static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList>>>;
551
551
  static populateFromEntity(entity: IVendorBillEntity): VendorBillModel;
552
552
  get totalAmountPaid(): number | undefined;
553
+ get vendorName(): string;
553
554
  }
554
555
 
555
556
  declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
package/dist/index.d.ts CHANGED
@@ -550,6 +550,7 @@ declare class VendorBillModel extends BaseEntityModel implements IVendorBillEnti
550
550
  static relations: Partial<Record<EntityList, IModelRelationConfig<EntityList>>>;
551
551
  static populateFromEntity(entity: IVendorBillEntity): VendorBillModel;
552
552
  get totalAmountPaid(): number | undefined;
553
+ get vendorName(): string;
553
554
  }
554
555
 
555
556
  declare class ExpenseModel extends BaseEntityModel implements IExpenseEntity {
package/dist/index.js CHANGED
@@ -1617,6 +1617,9 @@ var _VendorBillModel = class _VendorBillModel extends BaseEntityModel {
1617
1617
  get totalAmountPaid() {
1618
1618
  return this.expenses?.reduce((total, expense) => total + expense.amount, 0);
1619
1619
  }
1620
+ get vendorName() {
1621
+ return this.vendor?.name ?? "";
1622
+ }
1620
1623
  };
1621
1624
  _VendorBillModel.relations = {
1622
1625
  ["user" /* USER */]: {