diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-04-18 10:04:28 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-04-18 10:04:28 +0530 |
commit | bb331d9c61a0e38cbbfc891204819557327e1ca0 (patch) | |
tree | c6c221d041f8ef1a8c878eb079e93bd60c1d656a /src/components/Display/SummaryDisplay.js | |
parent | 4e880f6efe86c0b7e86e587e08eeee0f594417d5 (diff) |
Added HSN support
Diffstat (limited to 'src/components/Display/SummaryDisplay.js')
-rw-r--r-- | src/components/Display/SummaryDisplay.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/components/Display/SummaryDisplay.js b/src/components/Display/SummaryDisplay.js index ebc382c..1110358 100644 --- a/src/components/Display/SummaryDisplay.js +++ b/src/components/Display/SummaryDisplay.js @@ -18,7 +18,7 @@ const getSummary = (items) => { ); } -const SummaryDisplayTR = (props) => { +export const SummaryDisplayTR = (props) => { const summary = getSummary(props.items); return ( @@ -29,9 +29,18 @@ const SummaryDisplayTR = (props) => { <td>{summary.TotalQuantity}</td> <td className={"disabledBorder"}></td> <td className={"disabledBorder"}></td> + <td className={"disabledBorder"}></td> <td>{summary.TotalRawPrice}</td> </tr> ); } -export default SummaryDisplayTR; +const SummaryDisplay = (props) => { + const summary = getSummary(props.items); + + return ( + <p>Total: {summary.TotalRawPrice}</p> + ); +} + +export default SummaryDisplay; |