Eloquent-IFRS 3.0 brings several major changes in the codebase to enable support for the Cash Flow Statement, as well as refactoring the relationships between Currencies, Entities and Users to broaden the range of commercial environments it can be deployed to.
Like Laravel, Eloquent-IFRS follows Semanting Versioning. This means that only Major releases introduce breaking changes to the package.
Eloquent IFRS 3.0 requires Eloquent minimum 6.0+ and PHP 7.2 to work. Update your emungai/eloquent-ifrs dependency to ^3.0 in your composer.json file. You also need to update your database schema for the Major changes mentioned below.
These changes require you to update your database schema to be compatible with the new version of the package. Details about column types can be obtained from the respective migration files.
account_id attribute.vat_id attribute.date attribute to posting_date.parent_id attribute to facilitate daughter entities, Make currency_id nullable because Currencies require Entities, not vice versa.entity_id attribute to enable different Entities to have multiple currencies.toString() method to identify instances.CONTROL_ACCOUNT account type to CONTROL.getTransactions() from AccountStatement Report to Account Model.openingBalances() method.assignable and clearableattribute.getClass() method to retrieve the transaction instance’s child class name.reportingCurrency attribute. Daughter Entities return the reporting currency of their parent Entity.