Approven von Beitragserstattungen
This commit is contained in:
@@ -22,6 +22,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
* @property string|null $reason_note
|
||||
* @property string|null $account_owner
|
||||
* @property string|null $account_iban
|
||||
* @property int|null $invoice_id
|
||||
* @property int|null $released_by
|
||||
* @property \Illuminate\Support\Carbon|null $released_at
|
||||
* @property \Illuminate\Support\Carbon|null $accepted_at
|
||||
@@ -51,6 +52,7 @@ class ParticipantRefund extends InstancedModel
|
||||
'reason_note',
|
||||
'account_owner',
|
||||
'account_iban',
|
||||
'invoice_id',
|
||||
'released_by',
|
||||
'released_at',
|
||||
'accepted_at',
|
||||
@@ -82,6 +84,15 @@ class ParticipantRefund extends InstancedModel
|
||||
return $this->belongsTo(RefundReason::class, 'reason', 'slug');
|
||||
}
|
||||
|
||||
/**
|
||||
* Die Abrechnung, die aus diesem Vorgang entstanden ist. Der Auszahlungsstand steht dort und wird
|
||||
* hier nicht gedoppelt.
|
||||
*/
|
||||
public function invoice(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Invoice::class);
|
||||
}
|
||||
|
||||
public function isPending(): bool
|
||||
{
|
||||
return $this->status === self::STATUS_PENDING;
|
||||
|
||||
Reference in New Issue
Block a user