diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-27 14:47:48 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-27 14:47:48 +0530 |
commit | eedde57b9caff20e1e7d25b43fcb8785e23b3e11 (patch) | |
tree | 3532d795ecf269083e613860c0b27e3689773678 /src/components/Display/DisplayItem.js | |
parent | 240d7d56459c656c86330755c7a0b9000a090f77 (diff) |
Fixed DisplayItem and now really big decimal numbers don't show up
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; |