From b7c32d7ea171ce460d07af316220758ebde9893c Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Sun, 18 Apr 2021 13:37:12 +0530 Subject: Bug Fix: now the total price of an item is the multiple of it's unit price and quantity like it should be --- src/components/Form/AddNewItemForm.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/components/Form') diff --git a/src/components/Form/AddNewItemForm.js b/src/components/Form/AddNewItemForm.js index 798bfc9..32784ca 100644 --- a/src/components/Form/AddNewItemForm.js +++ b/src/components/Form/AddNewItemForm.js @@ -60,7 +60,8 @@ const AddNewItemForm = (props) => { "Model": itemNameValue, "Description": itemDescValue, "Quantity": parseInt(itemQtyValue), - "Price": parseFloat(itemPriceValue), + "SinglePrice": parseFloat(itemPriceValue), + "TotalPrice": parseFloat(itemPriceValue * itemQtyValue), "Discount": parseInt(itemDiscountValue), "HSN": parseInt(itemHSNValue), "GST": parseInt(itemGSTValue) -- cgit v1.2.3