From c28be8814326fae8d1877e1e8333788605421e74 Mon Sep 17 00:00:00 2001 From: usrdno Date: Thu, 11 Dec 2008 17:09:04 +0000 Subject: [PATCH] Tiny bugfix when locator is not selected. See: https://sourceforge.net/tracker/?func=detail&atid=879335&aid=2306161&group_id=176962 --- client/src/org/compiere/grid/VCreateFromShipment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/org/compiere/grid/VCreateFromShipment.java b/client/src/org/compiere/grid/VCreateFromShipment.java index 3a6ac77a92..9606b53c6d 100644 --- a/client/src/org/compiere/grid/VCreateFromShipment.java +++ b/client/src/org/compiere/grid/VCreateFromShipment.java @@ -830,9 +830,9 @@ public class VCreateFromShipment extends VCreateFrom implements VetoableChangeLi BigDecimal QtyEntered = (BigDecimal) model.getValueAt(i, COL_QTY); // Qty KeyNamePair pp = (KeyNamePair) model.getValueAt(i, COL_UOM); // UOM int C_UOM_ID = pp.getKey(); - pp = (KeyNamePair) model.getValueAt(i, COL_LOCATOR_ID); // Locator - // If a locator is specified on the product, choose that otherwise default locator - M_Locator_ID = pp!=null ? pp.getKey() : defaultLoc.intValue(); + pp = (KeyNamePair) model.getValueAt(i, COL_LOCATOR_ID); // Locator + // If a locator is specified on the product, choose that otherwise default locator + M_Locator_ID = pp!=null && pp.getKey()!=0 ? pp.getKey() : defaultLoc.intValue(); pp = (KeyNamePair) model.getValueAt(i, COL_PRODUCT_ID); // Product int M_Product_ID = pp.getKey();