From 220c15b3fa91bafed700b21224f1cc77528b2310 Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Mon, 7 Aug 2023 09:19:48 +0530 Subject: [PATCH] Fix: Pydantic v2 is sending decimals as strings and fucking things up --- overlord/src/app/issue/issue.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/overlord/src/app/issue/issue.component.ts b/overlord/src/app/issue/issue.component.ts index 93ef52a2..38d65318 100644 --- a/overlord/src/app/issue/issue.component.ts +++ b/overlord/src/app/issue/issue.component.ts @@ -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, }), );