ekmungai / eloquent-ifrs

Eloquent Double Entry Accounting with a focus on IFRS Compliant Reporting
MIT License
334 stars 68 forks source link

Invoice Assignment not working #70

Closed FahadRafique229 closed 2 years ago

FahadRafique229 commented 3 years ago

Call to undefined method IFRS\Models\Transaction::getClearedType() During Assignment I am facing this issue please guide me on how to create an invoice Assignment? Please check this code: $assignment = Assignment::create([ 'transaction_id' => $clientReceipt->id, 'cleared_id' => $clientInvoice->id, 'cleared_type'=> $clientInvoice->getClearedType(), 'amount' => 50, ]);

hicka commented 3 years ago

Try

'cleared_type'=> $clientInvoice->clearedType