IDEMPIERE-1574 Sales Order Line lets Price under the Price Limit when updating / fix NPE
This commit is contained in:
parent
9acb39e8c6
commit
ee448d8c45
|
@ -860,7 +860,7 @@ public class MInvoiceLine extends X_C_InvoiceLine
|
|||
setPrice();
|
||||
// IDEMPIERE-1574 Sales Order Line lets Price under the Price Limit when updating
|
||||
// Check PriceLimit
|
||||
boolean enforce = m_IsSOTrx && m_parent.getM_PriceList().isEnforcePriceLimit();
|
||||
boolean enforce = m_IsSOTrx && getParent().getM_PriceList().isEnforcePriceLimit();
|
||||
if (enforce && MRole.getDefault().isOverwritePriceLimit())
|
||||
enforce = false;
|
||||
// Check Price Limit?
|
||||
|
|
|
@ -829,7 +829,7 @@ public class MOrderLine extends X_C_OrderLine
|
|||
getProductPricing(m_M_PriceList_ID);
|
||||
// IDEMPIERE-1574 Sales Order Line lets Price under the Price Limit when updating
|
||||
// Check PriceLimit
|
||||
boolean enforce = m_IsSOTrx && m_parent.getM_PriceList().isEnforcePriceLimit();
|
||||
boolean enforce = m_IsSOTrx && getParent().getM_PriceList().isEnforcePriceLimit();
|
||||
if (enforce && MRole.getDefault().isOverwritePriceLimit())
|
||||
enforce = false;
|
||||
// Check Price Limit?
|
||||
|
|
Loading…
Reference in New Issue