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();
|
setPrice();
|
||||||
// IDEMPIERE-1574 Sales Order Line lets Price under the Price Limit when updating
|
// IDEMPIERE-1574 Sales Order Line lets Price under the Price Limit when updating
|
||||||
// Check PriceLimit
|
// Check PriceLimit
|
||||||
boolean enforce = m_IsSOTrx && m_parent.getM_PriceList().isEnforcePriceLimit();
|
boolean enforce = m_IsSOTrx && getParent().getM_PriceList().isEnforcePriceLimit();
|
||||||
if (enforce && MRole.getDefault().isOverwritePriceLimit())
|
if (enforce && MRole.getDefault().isOverwritePriceLimit())
|
||||||
enforce = false;
|
enforce = false;
|
||||||
// Check Price Limit?
|
// Check Price Limit?
|
||||||
|
|
|
@ -829,7 +829,7 @@ public class MOrderLine extends X_C_OrderLine
|
||||||
getProductPricing(m_M_PriceList_ID);
|
getProductPricing(m_M_PriceList_ID);
|
||||||
// IDEMPIERE-1574 Sales Order Line lets Price under the Price Limit when updating
|
// IDEMPIERE-1574 Sales Order Line lets Price under the Price Limit when updating
|
||||||
// Check PriceLimit
|
// Check PriceLimit
|
||||||
boolean enforce = m_IsSOTrx && m_parent.getM_PriceList().isEnforcePriceLimit();
|
boolean enforce = m_IsSOTrx && getParent().getM_PriceList().isEnforcePriceLimit();
|
||||||
if (enforce && MRole.getDefault().isOverwritePriceLimit())
|
if (enforce && MRole.getDefault().isOverwritePriceLimit())
|
||||||
enforce = false;
|
enforce = false;
|
||||||
// Check Price Limit?
|
// Check Price Limit?
|
||||||
|
|
Loading…
Reference in New Issue