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 | |
parent | 4e880f6efe86c0b7e86e587e08eeee0f594417d5 (diff) |
Added HSN support
Diffstat (limited to 'src/components/Display')
-rw-r--r-- | src/components/Display/Display.css | 5 | ||||
-rw-r--r-- | src/components/Display/Display.scss | 3 | ||||
-rw-r--r-- | src/components/Display/DisplayItem.js | 1 | ||||
-rw-r--r-- | src/components/Display/ItemsDisplay.js | 3 | ||||
-rw-r--r-- | src/components/Display/SummaryDisplay.js | 13 |
5 files changed, 19 insertions, 6 deletions
diff --git a/src/components/Display/Display.css b/src/components/Display/Display.css index 74aa31e..bbec236 100644 --- a/src/components/Display/Display.css +++ b/src/components/Display/Display.css @@ -39,5 +39,6 @@ $defShadow: 0px 0px 4px #232627; .ItemsDisplay .leftAlign { text-align: left; } -.SummaryDisplayTR { - color: #FF79C6; } +.SummaryDisplayTR td { + color: #FF79C6; + font-size: 1.7rem; } diff --git a/src/components/Display/Display.scss b/src/components/Display/Display.scss index ec6cc65..34a30f4 100644 --- a/src/components/Display/Display.scss +++ b/src/components/Display/Display.scss @@ -35,8 +35,9 @@ text-align: left; } -.SummaryDisplayTR { +.SummaryDisplayTR td { color: $altFG; + font-size: 1.7rem; } diff --git a/src/components/Display/DisplayItem.js b/src/components/Display/DisplayItem.js index 849bfc5..472ae47 100644 --- a/src/components/Display/DisplayItem.js +++ b/src/components/Display/DisplayItem.js @@ -13,6 +13,7 @@ const DisplayItem = (props) => { <td>{item.Quantity}</td> <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> </tr> ); diff --git a/src/components/Display/ItemsDisplay.js b/src/components/Display/ItemsDisplay.js index 599dd8e..bdf1a40 100644 --- a/src/components/Display/ItemsDisplay.js +++ b/src/components/Display/ItemsDisplay.js @@ -1,7 +1,7 @@ import React from "react"; import "./Display.css"; import DisplayItem from "./DisplayItem"; -import SummaryDisplayTR from "./SummaryDisplay"; +import {SummaryDisplayTR} from "./SummaryDisplay"; const ItemsDisplay = (props) => { const items = props.items; @@ -18,6 +18,7 @@ const ItemsDisplay = (props) => { <th>Quantity(NOS)</th> <th>Discount(%)</th> <th>GST(%)</th> + <th>HSN</th> <th>Price</th> </tr> 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; |