mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-05 23:01:07 +00:00
refactor(receivables): rewrite legacy-era regions of the allocation model, requests, pdf controller and routes in place
This commit is contained in:
@@ -23,13 +23,19 @@ class PaymentAllocation extends Model
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* The receipt this slice was taken out of.
|
||||
*/
|
||||
public function payment(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Payment::class);
|
||||
return $this->belongsTo(Payment::class, 'payment_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* The document this slice was booked against.
|
||||
*/
|
||||
public function invoice(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Invoice::class);
|
||||
return $this->belongsTo(Invoice::class, 'invoice_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user