[IMP] Imprved code according to requirements in module sunpro_account_financial_report.