ekmungai / eloquent-ifrs

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

incomeStatement and balanceSheet empty #119

Closed EmilioBravo closed 3 months ago

EmilioBravo commented 1 year ago

Hi @ekmungai , first, I want to thank you for this amanzing package! I'm trying to implement it in a Laravel app, I've used the examples but the incomeStatement and the balanceSheet shows zero on every field.

What am I doing wrong?

$incomeStatement = new IncomeStatement('2023-01-01','2023-12-31',$entity);

`Heliotec Income Statement For the Period: Jan 01 2023 to Dec 31 2023

Operating Revenues

Operating Expenses

Gross Profit 0

Non Operating Revenues

Total Revenue 0

Non Operating Expenses

Total Non Operating Expenses 0

Net Profit 0 ===============`

ekmungai commented 1 year ago

Hi @EmilioBravo,

Thanks for reaching out. Just so we can narrow down the possible error, what happens when you construct the income statemenet without specifiying the entity?

$incomeStatement = new IncomeStatement('2023-01-01','2023-12-31');