From 657d184d1c272192ea3bdad6103862e90f1160b0 Mon Sep 17 00:00:00 2001 From: seb Date: Thu, 15 Oct 2026 11:17:04 +0200 Subject: [PATCH] u --- .../manifest/OrderDocumentsTiles.jsx | 73 +++++++++++++------ src/components/manifest/OrderPaymentList.jsx | 8 +- 2 files changed, 54 insertions(+), 27 deletions(-) diff --git a/src/components/manifest/OrderDocumentsTiles.jsx b/src/components/manifest/OrderDocumentsTiles.jsx index 3e4c7c9..b83ea97 100644 --- a/src/components/manifest/OrderDocumentsTiles.jsx +++ b/src/components/manifest/OrderDocumentsTiles.jsx @@ -13,6 +13,7 @@ import CheckCircleOutlineOutlinedIcon from '@mui/icons-material/CheckCircleOutli import { PanelTile } from 'dashgui/panels'; import { formatDate } from './manifestConfig'; import { formatPrice } from '../../utils/price'; +import { typeLabel, typeIcon } from './OrderPaymentList'; import { GREEN_PANEL, YELLOW_PANEL, @@ -220,29 +221,55 @@ export class OrderDocumentsTiles extends PureComponent { {payments.length > 0 ? ( - {payments.map((pay) => ( - - - - - #{pay.id} - - - - +{formatPrice(pay.amount)} - - - ))} + {payments.map((pay) => { + const pType = pay.type || pay.paymentType || pay.payment_type; + return ( + + + + + + #{pay.id} + + + + +{formatPrice(pay.amount)} + + + + + + {typeIcon(pType, { fontSize: 15, color: 'text.secondary' })} + + {typeLabel(pType)} + + + {pay.date ? ( + + {formatDate(pay.date)} + + ) : null} + + + ); + })} ) : ( t.value === val); return match?.label || val || 'Zahlung'; } -function typeIcon(val) { +export function typeIcon(val, sx = { fontSize: 18 }) { const match = PAYMENT_TYPES.find((t) => t.value === val); const IconComp = match?.icon || PaymentsIcon; - return ; + return ; } const rowSx = {