Invoice Assignment not working
FahadRafique229 opened this issue · 1 comments
FahadRafique229 commented
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
Try
'cleared_type'=> $clientInvoice->clearedType