BF [2847655] - Import Product - price list precision

https://sourceforge.net/tracker/?func=detail&aid=2847655&group_id=176962&atid=879332
This commit is contained in:
trifonnt 2009-08-31 10:47:57 +00:00
parent 622c20e5de
commit 30949f2e2b
1 changed files with 3 additions and 3 deletions

View File

@ -172,9 +172,9 @@ public class MProductPrice extends X_M_ProductPrice
*/
public void setPrices (BigDecimal PriceList, BigDecimal PriceStd, BigDecimal PriceLimit)
{
setPriceLimit (PriceLimit);
setPriceList (PriceList);
setPriceStd (PriceStd);
setPriceLimit (PriceLimit.setScale(this.getM_PriceList_Version().getM_PriceList().getPricePrecision(), BigDecimal.ROUND_HALF_UP));
setPriceList (PriceList.setScale(this.getM_PriceList_Version().getM_PriceList().getPricePrecision(), BigDecimal.ROUND_HALF_UP));
setPriceStd (PriceStd.setScale(this.getM_PriceList_Version().getM_PriceList().getPricePrecision(), BigDecimal.ROUND_HALF_UP));
} // setPrice
/**