diff --git a/vendor/model/FinancialEntries.class.php b/vendor/model/FinancialEntries.class.php index 52d3145..2969951 100644 --- a/vendor/model/FinancialEntries.class.php +++ b/vendor/model/FinancialEntries.class.php @@ -176,8 +176,8 @@ class FinancialEntries c.reference as reference_client, fc.reference from financial_movements fm - left join clients c on fm.company_id = c.company_id - left join client_budgets cb on fm.companies_budgets_id = cb.companies_budgets_id + left join companies c on fm.company_id = c.company_id + left join companies_budgets cb on fm.companies_budgets_id = cb.companies_budgets_id left join financial_categories fc on cb.financial_categories_id = fc.financial_categories_id where fm.companies_budgets_id = :companies_budgets_id';