generated from smaranjitghose/awesome-portfolio-websites
-
Notifications
You must be signed in to change notification settings - Fork 0
/
table.html
150 lines (136 loc) · 4.47 KB
/
table.html
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="vendpayment.component.css"/>
</head>
<body>
<legend style="font-weight: bold;">Payments And Aging</legend><br>
<table class="vendpaytable">
<thead>
<th>Company Code</th>
<th>Fiscal Year</th>
<th>Accounting Document Number</th>
<th>Number of Line Item</th>
<th>Posting Date</th>
<th>Document Date</th>
<th>Entry Date</th>
<th>Currency</th>
<th>Local Currency</th>
<th>Document Type</th>
<th>Fiscal Period</th>
<th>Posting Key</th>
<th>Debit/Credit Indicator</th>
<th>Tax Code</th>
<th>Amount in Local Currency</th>
<th>Amount</th>
<th>Reference Transaction</th>
<th>Reference Document Number</th>
<th>Reference Organizational Units</th>
<th>Aging</th>
</thead>
<tbody>
<tr *ngFor = "let iter of vendpaydata">
<td data-label="Company Code">{{iter.COMP_CODE._text}}</td>
<td data-label="Fiscal Year">{{iter.FISC_YEAR._text}}</td>
<td data-label="Accounting Document Number">{{iter.DOC_NO._text}}</td>
<td data-label="Number of Line Item">{{iter.ITEM_NUM._text}}</td>
<td data-label="Posting Date">{{iter.PSTNG_DATE._text}}</td>
<td data-label="Document Date">{{iter.DOC_DATE._text}}</td>
<td data-label="Entry Date">{{iter.ENTRY_DATE._text}}</td>
<td data-label="Currency">{{iter.CURRENCY._text}}</td>
<td data-label="Local Currency">{{iter.LOC_CURRCY._text}}</td>
<td data-label="Document Type">{{iter.DOC_TYPE._text}}</td>
<td data-label="Fiscal Period">{{iter.FIS_PERIOD._text}}</td>
<td data-label="Posting Key">{{iter.POST_KEY._text}}</td>
<td data-label="Debit/Credit Indicator">{{iter.DB_CR_IND._text}}</td>
<td data-label="Tax Code">{{iter.TAX_CODE._text}}</td>
<td data-label="Amount in Local Currency">{{iter.LC_AMOUNT._text}}</td>
<td data-label="Amount">{{iter.AMOUNT._text}}</td>
<td data-label="Reference Transaction">{{iter.OBJ_TYPE._text}}</td>
<td data-label="Reference Document Number">{{iter.REF_DOC._text}}</td>
<td data-label="Reference Organizational Units">{{iter.REF_ORG_UN._text}}</td>
<td data-label="Aging">{{calculateAging(iter.BLINE_DATE._text)}}</td>
</tr>
</tbody>
</table>
<br>
<button type="submit" id="prebtn"><a href="/vendactions" style="text-decoration: none;color: white;font-weight: bold;">Previous</a></button>
<!-- <div class="alert alert-warning" role="alert">
This is a warning alert—check it out!
</div> -->
</body>
</html>
<style>
body{
margin: 0;
padding: 20px;
font-family: Georgia, 'Times New Roman', Times, serif;
/* width: 100%; */
overflow-x: hidden;
}
#prebtn{
font-family: OpenSans;
color: #FFFFFF;
background: #bdc3c7; /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #2c3e50, #bdc3c7); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #2c3e50, #bdc3c7);
border: 1px solid #4b4d4c;
border-radius: 5px;
box-shadow: 0px 5px 0px #b0b4b2;
position: relative;
top: 0px;
transition: all ease 0.3s;
padding: 10px;
}
#prebtn:active{
box-shadow: 0 3px 0 #dfe0e0;
top: 3px;
}
*{
box-sizing: border-box;
}
.vendpaytable{
/* width: 100px; */
border-collapse: collapse;
}
.vendpaytable td, .vendpaytable th{
padding: 12px 15px;
border: 1px solid black;
text-align: center;
}
.vendpaytable th{
background-color: gainsboro;
color: black;
}
.vendpaytable tbody tr:nth-child(even){
background-color: #f5f5f5;
}
@media(max-width: 800px){
.vendpaytable thead{
display: none;
}
.vendpaytable, .vendpaytable tbody, .vendpaytable tr, .vendpaytable td{
display: block;
/* width: 100%; */
}
.vendpaytable tr{
margin-bottom: 15px;
}
.vendpaytable td{
text-align: right;
padding-left: 50%;
text-align: right;
position: relative;
}
.vendpaytable td::before{
content: attr(data-label);
position: absolute;
left: 0;
/* width: 50%; */
padding-left: 15px;
font-weight: bold;
text-align: left;
}
}
</style>