Fix: Pydantic v2 is sending decimals as strings and fucking things up
This commit is contained in:
parent
a514c97409
commit
220c15b3fa
@ -193,10 +193,10 @@ export class IssueComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
this.voucher.inventories.push(
|
this.voucher.inventories.push(
|
||||||
new Inventory({
|
new Inventory({
|
||||||
quantity,
|
quantity,
|
||||||
rate: this.batch.rate,
|
rate: +this.batch.rate,
|
||||||
tax: this.batch.tax,
|
tax: +this.batch.tax,
|
||||||
discount: this.batch.discount,
|
discount: +this.batch.discount,
|
||||||
amount: quantity * this.batch.rate * (1 + this.batch.tax) * (1 - this.batch.discount),
|
amount: quantity * +this.batch.rate * (1 + +this.batch.tax) * (1 - +this.batch.discount),
|
||||||
batch: this.batch,
|
batch: this.batch,
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user