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:
parent
f5bcca0a7b
commit
9083f1ed51
|
@ -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);
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue