diff options
Diffstat (limited to 'src/components/Display')
-rw-r--r-- | src/components/Display/DisplayItem.js | 2 | ||||
-rw-r--r-- | src/components/Display/SummaryDisplay.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Display/DisplayItem.js b/src/components/Display/DisplayItem.js index 472ae47..4bd1b97 100644 --- a/src/components/Display/DisplayItem.js +++ b/src/components/Display/DisplayItem.js @@ -14,7 +14,7 @@ const DisplayItem = (props) => { <td className={item.Discount === 0 ? "disabledBorder" : ""}>{item.Discount}</td> <td className={item.GST === props.defGSTValue ? "" : "warningBorder"}>{item.GST}</td> <td>{item.HSN}</td> - <td>{item.Price}</td> + <td>{item.TotalPrice}</td> </tr> ); } diff --git a/src/components/Display/SummaryDisplay.js b/src/components/Display/SummaryDisplay.js index 1110358..27ebe0b 100644 --- a/src/components/Display/SummaryDisplay.js +++ b/src/components/Display/SummaryDisplay.js @@ -6,7 +6,7 @@ const getSummary = (items) => { let totalQuantity = 0; for (let i = 0; i < items.length; i++) { - totalRawPrice += items[i].Price; + totalRawPrice += items[i].TotalPrice; totalQuantity += items[i].Quantity } |