diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-04-18 13:37:12 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-04-18 13:37:12 +0530 |
commit | b7c32d7ea171ce460d07af316220758ebde9893c (patch) | |
tree | f976df8b4bd28afcd62a4da6832bbd5235e26bde /src/components/Form | |
parent | bb331d9c61a0e38cbbfc891204819557327e1ca0 (diff) |
Bug Fix: now the total price of an item is the multiple of it's unit price and quantity like it should be
Diffstat (limited to 'src/components/Form')
-rw-r--r-- | src/components/Form/AddNewItemForm.js | 3 |
1 files changed, 2 insertions, 1 deletions
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) |