blob: 472ae47544d037996e152617a68d0d062edc1f07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import React from "react";
import "./Display.css";
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.GST === props.defGSTValue ? "" : "warningBorder"}>{item.GST}</td>
<td>{item.HSN}</td>
<td>{item.Price}</td>
</tr>
);
}
export default DisplayItem;
|