From 4df6eaa913737427ddec2561c0ee8c9235f0c95f Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Mon, 3 May 2021 22:08:22 +0530 Subject: fixed warnings occouring due to abscence of --- src/components/Display/ItemsDisplay.js | 40 +++++++++++++------------- src/components/Display/SummaryDisplay.js | 48 +++++++++++++++++--------------- 2 files changed, 46 insertions(+), 42 deletions(-) diff --git a/src/components/Display/ItemsDisplay.js b/src/components/Display/ItemsDisplay.js index 0a349f2..7afc341 100644 --- a/src/components/Display/ItemsDisplay.js +++ b/src/components/Display/ItemsDisplay.js @@ -19,27 +19,29 @@ const ItemsDisplay = (props) => { return ( - - - - - - - - - - + + + + + + + + + + + - {items.map( - (item) => { - itemNumber++ - return ( - - ); - } - )} + {items.map( + (item) => { + itemNumber++ + return ( + + ); + } + )} - + +
S. NumItemDescriptionQuantity(NOS)Discount(%)GST(%)HSNPrice
S. NumItemDescriptionQuantity(NOS)Discount(%)GST(%)HSNPrice
); } diff --git a/src/components/Display/SummaryDisplay.js b/src/components/Display/SummaryDisplay.js index a44e036..2f65e79 100644 --- a/src/components/Display/SummaryDisplay.js +++ b/src/components/Display/SummaryDisplay.js @@ -79,36 +79,38 @@ const SummaryDisplay = (props) => {

Summary

- - - - - - {summary.TotalDiscountPrice !== 0.00 && + - - - + + - } - - - - - + {summary.TotalDiscountPrice !== 0.00 && + + + + + + } - {summary.RoundedOff !== 0.00 && - - + + + - } - - - - + {summary.RoundedOff !== 0.00 && + + + + + } + + + + + +
Base Total{summary.TotalRawPrice}
After Discount{summary.TotalPriceAfterDiscount}(-{summary.TotalDiscountPrice})Base Total{summary.TotalRawPrice}
After Tax{summary.TotalPriceAfterTax}(+{summary.TotalTaxAmount})
After Discount{summary.TotalPriceAfterDiscount}(-{summary.TotalDiscountPrice})
Rounded Off{summary.RoundedOff}After Tax{summary.TotalPriceAfterTax}(+{summary.TotalTaxAmount})
Grand Total{summary.TotalPrice}
Rounded Off{summary.RoundedOff}
Grand Total{summary.TotalPrice}
); -- cgit v1.2.3