diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-26 23:45:43 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-26 23:45:43 +0530 |
commit | 33a344feca3de8b25988932fd0039d14c363b5cd (patch) | |
tree | 5ca767043822b462fa5697492730380e3bc0956e /src/components/Display/ItemsDisplay.js | |
parent | e54214c8ecdcf264a0f055ae24afe3299c0c7697 (diff) |
ported and changed order in ItemsDisplay
Diffstat (limited to 'src/components/Display/ItemsDisplay.js')
-rw-r--r-- | src/components/Display/ItemsDisplay.js | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/src/components/Display/ItemsDisplay.js b/src/components/Display/ItemsDisplay.js deleted file mode 100644 index f0882af..0000000 --- a/src/components/Display/ItemsDisplay.js +++ /dev/null @@ -1,53 +0,0 @@ -/* - * OpenBills - Self hosted browser app to generate and keep track of simple invoices - * Version - 0 - * Licensed under the MIT license - https://opensource.org/licenses/MIT - * - * Copyright (c) 2021 Vidhu Kant Sharma -*/ - -import React from "react"; -import "./Display.scss"; -import DisplayItem from "./DisplayItem"; -// import {SummaryDisplayTR} from "./SummaryDisplay"; - -const ItemsDisplay = (props) => { - const items = props.items; - // TODO: remove mutability - let itemNumber = 0; - - // TODO: Add HSN Support - - return ( - <table className={"ItemsDisplay"}> - <tbody> - <tr className="legend"> - <th>S. Num</th> - <th className={"leftAlign"}>Item</th> - <th className={"leftAlign"}>Description</th> - <th>Quantity(NOS)</th> - <th>Discount(%)</th> - <th>sgst(%)</th> - <th>cgst(%)</th> - <th>igst(%)</th> - <th>HSN</th> - <th>Price</th> - </tr> - - {items.map( - (item) => { - itemNumber++ - return ( - <DisplayItem key={itemNumber} itemNumber={itemNumber} item={item} defGSTValue={props.defGSTValue}/> - ); - } - )} - - </tbody> - </table> - ); - // this goes right before </tbody> - //<SummaryDisplayTR items={props.items}/> -} - -export default ItemsDisplay; |