Skip to content

Commit

Permalink
fix line
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebed-meleck committed Feb 11, 2024
1 parent ff5da06 commit 48007e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/controllers/finance/reports/ohada_profit_loss/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 48007e2

Please sign in to comment.