blob: 7026530f247981af66ecfae1d08611963eed31ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
import React from "react";
import "./Display.css";
import DisplayItem from "./DisplayItem";
const ItemsDisplay = (props) => {
const items = props.items;
let itemNumber = 0;
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>Price</th>
<th>Discount(%)</th>
<th>GST(%)</th>
</tr>
{items.map(
(item) => {
itemNumber++
return (
<DisplayItem itemNumber={itemNumber} item={item}/>
);
}
)}
</table>
)
/*return (
<div className={"ItemsDisplay"}>
<div className={"legend"}>
<ul>
<li className={"num"}>S. Num.</li>
<li className={"text"}>Name</li>
<li className={"text"}>Description</li>
<li className={"num"}>Quantity</li>
<li className={"num"}>Price</li>
<li className={"num"}>Discount</li>
<li className={"num"}>GST</li>
</ul>
</div>
<div className={"items"}>
{items.map(
(item) => {
itemNumber++
return (
<DisplayItem itemNumber={itemNumber} item={item}/>
);
}
)}
</div>
</div>
);*/
}
export default ItemsDisplay;
|