aboutsummaryrefslogtreecommitdiff
path: root/src/components/Form/AddNewItemForm.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Form/AddNewItemForm.js')
-rw-r--r--src/components/Form/AddNewItemForm.js3
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)