feat(refunds): persist and apply refund configuration per event
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user