feat(EinundzwanzigPlebTable): update payment calculation logic

This commit is contained in:
fsociety
2024-09-30 16:02:18 +02:00
parent 7c6ce0eb7d
commit af644bf2c9

View File

@@ -78,7 +78,7 @@ final class EinundzwanzigPlebTable extends PowerGridComponent
->add(
'payment',
fn(EinundzwanzigPleb $model)
=> $model->paymentEvents->count() > 0 ? $model->paymentEvents->first()->amount : 'keine Zahlung vorhanden',
=> $model->paymentEvents->count() > 0 && $model->paymentEvents->first()->paid ? $model->paymentEvents->first()->amount : 'keine Zahlung vorhanden',
)
->add(
'npub',