From 48007e27f63596d90d29c71f7b9d9f66e607dde7 Mon Sep 17 00:00:00 2001 From: Ebed-meleck Date: Sun, 11 Feb 2024 22:07:03 +0200 Subject: [PATCH] fix line --- server/controllers/finance/reports/ohada_profit_loss/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/controllers/finance/reports/ohada_profit_loss/index.js b/server/controllers/finance/reports/ohada_profit_loss/index.js index 71412ec3d6..34cb1622d4 100644 --- a/server/controllers/finance/reports/ohada_profit_loss/index.js +++ b/server/controllers/finance/reports/ohada_profit_loss/index.js @@ -187,8 +187,8 @@ async function reporting(options, session) { _.merge(context, { fiscalYear }); const currentData = await AccountReference.computeAllAccountReference(fiscalYear.current.period_id); - const previousData = fiscalYear.previous.period_id ? await AccountReference.computeAllAccountReference(fiscalYear.previous.period_id) - : []; + const previousData = fiscalYear.previous.period_id + ? await AccountReference.computeAllAccountReference(fiscalYear.previous.period_id) : []; const currentReferences = formatReferences(_.groupBy(currentData, 'abbr')); const previousReferences = formatReferences(_.groupBy(previousData, 'abbr'));