diff options
Diffstat (limited to 'src/components/Form/Items/AddNewItemForm.tsx')
-rw-r--r-- | src/components/Form/Items/AddNewItemForm.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Form/Items/AddNewItemForm.tsx b/src/components/Form/Items/AddNewItemForm.tsx index 2c4669d..3d4e65f 100644 --- a/src/components/Form/Items/AddNewItemForm.tsx +++ b/src/components/Form/Items/AddNewItemForm.tsx @@ -70,7 +70,7 @@ const AddNewItemForm: React.FC<props> = (props) => { const totalValue: number = itemPriceValue * itemQTYValue; // the values below are being rounded to two decimal places - const discountValue: number = parseFloat(((itemDiscountPercentage / 100) * itemPriceValue).toFixed(2)) + const discountValue: number = parseFloat(((itemDiscountPercentage / 100) * totalValue).toFixed(2)) const totalGSTValue: number = parseFloat(((itemGSTPercentage / 100) * totalValue).toFixed(2)) const newInvoiceItem: Item = { |