Calculation errors for refunded amounts
This commit is contained in:
@@ -54,6 +54,11 @@ class RefundAcceptedMail extends Mailable
|
||||
'accountIban' => Iban::format((string) $this->refund->account_iban),
|
||||
'hasDocument' => $this->pdfContent !== null,
|
||||
'invoiceNumber' => $invoice?->invoice_number,
|
||||
// Wird nur ein Teil erstattet, soll der Teili nicht rätseln, wo der Rest geblieben ist.
|
||||
'hasRetention' => $this->refund->hasRetention(),
|
||||
'retainedAmount' => $this->refund->retained_amount?->toString() ?? '0,00 Euro',
|
||||
'retentionReason' => $this->refund->retentionReasonLabel(),
|
||||
'retentionReasonNote' => $this->refund->retention_reason_note,
|
||||
// Hat die Aktionsleitung die Bankverbindung aufgenommen, hat der Teili selbst nichts
|
||||
// eingetragen -- dann darf die Mail sich nicht für seine Angaben bedanken.
|
||||
'capturedByManagement' => $this->refund->wasCapturedByManagement(),
|
||||
|
||||
Reference in New Issue
Block a user