Commit 0d159f8c authored by Mahmoud Aglan's avatar Mahmoud Aglan

Add missing processedBy relationship to Payment model

Used by ReceiptService for cashier name on payment receipts.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent bc24f0d3
......@@ -90,6 +90,11 @@ public function cashSession(): BelongsTo
return $this->belongsTo(CashSession::class);
}
public function processedBy(): BelongsTo
{
return $this->belongsTo(User::class, 'received_by');
}
public function isInbound(): bool
{
return $this->direction === 'inbound';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment