aboutsummaryrefslogtreecommitdiff
path: root/src/components/Display/ItemsDisplay.js
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-10 08:03:19 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-10 08:03:19 +0530
commit33c10cfa027d769c1d02a54bad766f431b1196ee (patch)
treebb487bcecf9944250c5a94267295ec917e087529 /src/components/Display/ItemsDisplay.js
parent86e800430360ac3af422faf1f6f7317aea9b1a19 (diff)
added sgst, cgst, igst support instead of GST as a whole
Diffstat (limited to 'src/components/Display/ItemsDisplay.js')
-rw-r--r--src/components/Display/ItemsDisplay.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/Display/ItemsDisplay.js b/src/components/Display/ItemsDisplay.js
index 7afc341..0b2fbf0 100644
--- a/src/components/Display/ItemsDisplay.js
+++ b/src/components/Display/ItemsDisplay.js
@@ -13,6 +13,7 @@ import {SummaryDisplayTR} from "./SummaryDisplay";
const ItemsDisplay = (props) => {
const items = props.items;
+ // TODO: remove mutability
let itemNumber = 0;
// TODO: Add HSN Support
@@ -26,7 +27,9 @@ const ItemsDisplay = (props) => {
<th className={"leftAlign"}>Description</th>
<th>Quantity(NOS)</th>
<th>Discount(%)</th>
- <th>GST(%)</th>
+ <th>sgst(%)</th>
+ <th>cgst(%)</th>
+ <th>igst(%)</th>
<th>HSN</th>
<th>Price</th>
</tr>
@@ -35,7 +38,7 @@ const ItemsDisplay = (props) => {
(item) => {
itemNumber++
return (
- <DisplayItem itemNumber={itemNumber} item={item} defGSTValue={props.defGSTValue}/>
+ <DisplayItem key={itemNumber} itemNumber={itemNumber} item={item} defGSTValue={props.defGSTValue}/>
);
}
)}