diff options
Diffstat (limited to 'src/components/Display/DisplayItem.js')
-rw-r--r-- | src/components/Display/DisplayItem.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/components/Display/DisplayItem.js b/src/components/Display/DisplayItem.js deleted file mode 100644 index 02693ab..0000000 --- a/src/components/Display/DisplayItem.js +++ /dev/null @@ -1,34 +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"; - -const DisplayItem = (props) => { - const itemNumber = props.itemNumber; - const item = props.item; - - return ( - <tr> - <td>{itemNumber}</td> - <td className={"leftAlign"}>{item.Model}</td> - <td className={item.Description === "" ? "leftAlign disabledBorder" : "leftAlign"}>{item.Description}</td> - <td>{item.Quantity}</td> - <td className={item.Discount === 0 ? "disabledBorder" : ""}>{item.Discount}</td> - - <td className={item.cgst === "" ? "disabledBorder" : (props.defGSTValue / 2 ? "" : "warningBorder")}>{item.sgst}</td> - <td className={item.sgst === "" ? "disabledBorder" : (props.defGSTValue / 2 ? "" : "warningBorder")}>{item.cgst}</td> - <td className={item.igst === "" ? "disabledBorder" : (item.igst === props.defGSTValue ? "" : "warningBorder")}>{item.igst}</td> - - <td>{item.HSN}</td> - <td>{item.TotalPrice}</td> - </tr> - ); -} - -export default DisplayItem; |