feat(refunds): persist and apply refund configuration per event

This commit is contained in:
2026-09-30 15:31:54 -03:00
parent a770d435eb
commit 5a0ce08adb
7 changed files with 77 additions and 16 deletions

View File

@@ -148,7 +148,9 @@ class Ticket extends Model
public function allow_refund(): bool
{
return $this->tenant?->allow_refund() ?? false;
return $this->event_id === null
? ($this->tenant?->allow_refund() ?? false)
: ($this->event?->allow_refund() ?? false);
}
public function allowRefund(): bool