/* * 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 { Item } from "./../../interfaces"; import "./Display.scss"; interface Props { defGSTValue: number itemNumber: number item: Item } const DisplayItem: React.FC = (props) => { const itemNumber = props.itemNumber; const item = props.item; return ( {itemNumber} {item.Model} {item.Description} {item.HSN} {item.Quantity} {item.UnitPrice} {item.DiscountValue} ({item.Discount}%) {item.TotalGSTValue} ({item.TotalGST}%) {(item.TotalValue + (item.TotalGSTValue - item.DiscountValue)).toFixed(2)} ); } export default DisplayItem;