ekmungai / eloquent-ifrs

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

Error when updating $entity->currency_id field #50

Closed morrisonmburu closed 3 years ago

morrisonmburu commented 3 years ago

I get an error when running the script below Screenshot 2021-06-04 132741 ..... the error Screenshot 2021-06-04 132710

Kindly @ekmungai advice on how to fix it

ekmungai commented 3 years ago

Hi Morris,

The error was caused by a typo in the example code. the line $entity->currency_id = $currency should actually read $entity->currency_id = $currency->id. I've updated the readme to reflect the change, thanks for catching it.

Cheers, Edward