Skip to content

Commit d1c776a

Browse files
committed
added payment type to povijest
1 parent d405d0b commit d1c776a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

frontend/src/pages/admin/povijest.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export default function Povijest() {
4545
const excelData = filteredTransactions.map(t => ({
4646
"Broj Računa": t.receipt?.invoiceNumber || "N/A",
4747
"Iznos (€)": parseFloat(t.amount).toFixed(2),
48+
"Plaćanje": t.receipt?.paymentType || "N/A",
4849
"Status": t.receipt?.status === 'STORNO' ? 'Storno' : t.receipt?.status === 'RACUN_STORNIRAN' ? 'Otkazano' : 'Gotovo',
4950
"Prodavač": t.user?.name || "Nepoznato",
5051
"Datum": new Date(t.createdAt).toLocaleDateString("hr-HR"),
@@ -124,6 +125,7 @@ export default function Povijest() {
124125
<tr style={{ backgroundColor: '#edf2f7', textAlign: 'left' }}>
125126
<th style={thStyle}>Broj Računa</th>
126127
<th style={thStyle}>Iznos</th>
128+
<th style={thStyle}>Plaćanje</th>
127129
<th style={thStyle}>Status</th>
128130
<th style={thStyle}>Prodavač</th>
129131
<th style={thStyle}>Datum</th>
@@ -135,6 +137,7 @@ export default function Povijest() {
135137
<tr key={t.id} style={{ borderBottom: '1px solid #edf2f7' }}>
136138
<td style={tdStyle}>{t.receipt?.invoiceNumber || "N/A"}</td>
137139
<td style={{ ...tdStyle, fontWeight: '600' }}>{parseFloat(t.amount).toFixed(2)}</td>
140+
<td style={tdStyle}>{t.receipt?.paymentType || "N/A"}</td>
138141
<td style={tdStyle}>
139142
<StatusBadge status={t.receipt?.status} />
140143
</td>

0 commit comments

Comments
 (0)