Skip to content

Commit

Permalink
OLMIS-7923: reverted calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
mdulko committed Apr 15, 2024
1 parent e1c9c16 commit aab4274
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/requisition-calculations/calculation.factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,13 +531,9 @@
pValue = getColumnValue(lineItem, requisition, pColumn);
pValue = pValue === undefined ? 0 : pValue;
}
/*
* This formula has changed based on Tanzania specific requirements
* instead of maxPeriodsOfStock changed to minPeriodsOfStock.
*
*/

return hColumn && hColumn.option.optionName === 'default' ?
Math.round(pValue * lineItem.approvedProduct.minPeriodsOfStock) : 0;
Math.round(pValue * lineItem.approvedProduct.maxPeriodsOfStock) : 0;
}

/**
Expand Down

0 comments on commit aab4274

Please sign in to comment.