Tiny bugfix when locator is not selected.
See: https://sourceforge.net/tracker/?func=detail&atid=879335&aid=2306161&group_id=176962
This commit is contained in:
parent
49b3056950
commit
c28be88143
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue