Skip to content

Commit

Permalink
Merge pull request #49 from OpenLMIS/OLMIS-7921
Browse files Browse the repository at this point in the history
OLMIS-7923: reverted calculations
  • Loading branch information
dszafranek authored Apr 16, 2024
2 parents e1c9c16 + aab4274 commit 47f69df
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 47f69df

Please sign in to comment.