ekmungai / eloquent-ifrs

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

wishlist - link an object with a transaction #159

Closed baradhili closed 3 months ago

baradhili commented 5 months ago

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 - /**

ekmungai commented 5 months ago

Hi @baradhili,

Interesting idea. I'll look into it.

Cheers, Ed

ekmungai commented 5 months ago

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