law-common 10.72.2-beta.2 → 10.72.2-beta.3

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.
@@ -80,11 +80,11 @@ class VendorEntityModel extends base_entity_model_1.BaseEntityModel {
80
80
  }
81
81
  get tdsRates() {
82
82
  // many_to_many -> many_to_many verified
83
- // {'vendor->vendor_invoice': 'one_to_many', 'vendor_invoice->vendor_invoice_item': 'one_to_many', 'vendor_invoice_item->tds_rate': 'many_to_one'}
84
- // ['vendor_invoice', 'vendor_invoice_item'] -> one_to_many
85
- // ['vendor_invoice_item', 'tds_rate'] -> many_to_one
83
+ // {'vendor->organization_type': 'many_to_one', 'organization_type->tds_rate': 'many_to_many'}
84
+ // ['vendor', 'organization_type'] -> many_to_one
85
+ // ['organization_type', 'tds_rate'] -> many_to_many
86
86
  var _a;
87
- return (_a = this.vendorInvoiceItems) === null || _a === void 0 ? void 0 : _a.flatMap((vendorInvoiceItem) => vendorInvoiceItem.tdsRate).filter((tdsRate) => !!tdsRate).reduce((accumulator, current) => {
87
+ return (_a = this.organizationType) === null || _a === void 0 ? void 0 : _a.tdsRates.filter((tdsRate) => !!tdsRate).reduce((accumulator, current) => {
88
88
  if (!accumulator.some((tdsRate) => tdsRate.id === current.id)) {
89
89
  accumulator.push(current);
90
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "10.72.2-beta.2",
3
+ "version": "10.72.2-beta.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [