Added custom serializer to Decimal for all Models to output as number and not string.

This should mitigate all hacks earlier and reverted the earlier hacks.
This commit is contained in:
tanshu committed 2023-08-16 22:29:22 +05:30
1 parent c26f433182
commit b1ca758e9d
35 files changed
+142 -154

No files matched your search

+4 -4
View File
@@ -193,10 +193,10 @@ export class IssueComponent implements OnInit, AfterViewInit, OnDestroy {
this.voucher.inventories.push(
new Inventory({
quantity,
rate: +this.batch.rate,
tax: +this.batch.tax,
discount: +this.batch.discount,
amount: quantity * +this.batch.rate * (1 + +this.batch.tax) * (1 - +this.batch.discount),
rate: this.batch.rate,
tax: this.batch.tax,
discount: this.batch.discount,
amount: quantity * this.batch.rate * (1 + this.batch.tax) * (1 - this.batch.discount),
batch: this.batch,
}),
);