Closed baradhili closed 3 months ago
Hi @baradhili,
Interesting idea. I'll look into it.
Cheers, Ed
Hi @baradhili,
Good news, the latest release now supports adding attachments to Transactions. Just add the id of the model to attachment_id
and its class/type to attachment_type
and you can access it via $transaction->attachment
.
Cheers, Ed
It would be nice to be able to link an object with a transaction. This gives the ability to store a voucher with a transaction or at least a receipt image etc.
accounting does this - /**
@return JournalTransaction */ public function referencesObject($object) { $this->ref_class = get_class($object); $this->ref_class_id = $object->id; $this->save(); return $this; }
/**