IDEMPIERE-5568 Allow Force in Sales Order Delivery Rule even if the warehouse doesn't accept negatives (#1665)

This commit is contained in:
Carlos Ruiz 2023-02-10 14:08:16 +01:00 committed by GitHub
parent 7e0202eedb
commit 33f2ccf7b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -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"))
{