IDEMPIERE-5568 Allow Force in Sales Order Delivery Rule even if the warehouse doesn't accept negatives (#1665)
This commit is contained in:
parent
7e0202eedb
commit
33f2ccf7b8
|
@ -987,12 +987,6 @@ public class MOrder extends X_C_Order implements DocAction
|
|||
log.saveWarning("WarehouseOrgConflict", "");
|
||||
}
|
||||
|
||||
boolean disallowNegInv = wh.isDisallowNegativeInv();
|
||||
String DeliveryRule = getDeliveryRule();
|
||||
if((disallowNegInv && DELIVERYRULE_Force.equals(DeliveryRule)) ||
|
||||
(DeliveryRule == null || DeliveryRule.length()==0))
|
||||
setDeliveryRule(DELIVERYRULE_Availability);
|
||||
|
||||
// Reservations in Warehouse
|
||||
if (!newRecord && is_ValueChanged("M_Warehouse_ID"))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue