Calculation errors for refunded amounts
This commit is contained in:
@@ -29,6 +29,12 @@ class ParticipantRefundResource extends JsonResource
|
||||
'reason' => $this->resource->reason,
|
||||
'reasonLabel' => $this->resource->reasonLabel(),
|
||||
'reasonNote' => $this->resource->reason_note,
|
||||
// Was beim Verband bleibt. `hasRetention` erspart dem Frontend den Betragsvergleich samt
|
||||
// Rundungsfrage -- es soll nur entscheiden, ob der Hinweis angezeigt wird.
|
||||
'hasRetention' => $this->resource->hasRetention(),
|
||||
'retainedAmount' => $this->resource->retained_amount?->toString() ?? '0,00 Euro',
|
||||
'retentionReasonLabel' => $this->resource->retentionReasonLabel(),
|
||||
'retentionReasonNote' => $this->resource->retention_reason_note,
|
||||
'releasedAt' => $this->resource->released_at?->format('d.m.Y'),
|
||||
'acceptedAt' => $this->resource->accepted_at?->format('d.m.Y'),
|
||||
'cancelledAt' => $this->resource->cancelled_at?->format('d.m.Y'),
|
||||
|
||||
Reference in New Issue
Block a user