BF 2858041: Do not use equals to compare ZERO

https://sourceforge.net/tracker/?func=detail&aid=2858041&group_id=176962&atid=879332
This commit is contained in:
armenrz 2009-09-13 13:06:24 +00:00
parent f5bcca0a7b
commit 9083f1ed51
1 changed files with 1108 additions and 1108 deletions

View File

@ -273,7 +273,7 @@ public class DocLine
if (PriceList != null && Qty != null)
m_ListAmt = PriceList.multiply(Qty);
if (m_ListAmt.equals(Env.ZERO))
if (m_ListAmt.compareTo(Env.ZERO) == 0)
m_ListAmt = m_LineNetAmt;
m_DiscountAmt = m_ListAmt.subtract(m_LineNetAmt);
//