diff options
Diffstat (limited to 'src/components/Display/ItemsDisplay.js')
-rw-r--r-- | src/components/Display/ItemsDisplay.js | 40 |
1 files changed, 21 insertions, 19 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 ( <table className={"ItemsDisplay"}> - <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>GST(%)</th> - <th>HSN</th> - <th>Price</th> - </tr> + <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>GST(%)</th> + <th>HSN</th> + <th>Price</th> + </tr> - {items.map( - (item) => { - itemNumber++ - return ( - <DisplayItem itemNumber={itemNumber} item={item} defGSTValue={props.defGSTValue}/> - ); - } - )} + {items.map( + (item) => { + itemNumber++ + return ( + <DisplayItem itemNumber={itemNumber} item={item} defGSTValue={props.defGSTValue}/> + ); + } + )} - <SummaryDisplayTR items={props.items}/> + <SummaryDisplayTR items={props.items}/> + </tbody> </table> ); } |