BF [ 2306161 ] Locator on line level when creating lines from
https://sourceforge.net/tracker/?func=detail&atid=879335&aid=2306161&group_id=176962 Do not set M_Product.M_Locator when change the locator on line
This commit is contained in:
parent
5d1a1db86f
commit
53f27cbd6b
|
@ -132,12 +132,6 @@ public class VCreateFromShipment extends VCreateFrom implements VetoableChangeLi
|
||||||
MLocator locator = new MLocator(Env.getCtx(), key, null);
|
MLocator locator = new MLocator(Env.getCtx(), key, null);
|
||||||
m_locatorKey = new KeyNamePair(key, locator.getValue());
|
m_locatorKey = new KeyNamePair(key, locator.getValue());
|
||||||
m_table.getModel().setValueAt(m_locatorKey, m_row, m_column);
|
m_table.getModel().setValueAt(m_locatorKey, m_row, m_column);
|
||||||
|
|
||||||
// Get product and save new locator
|
|
||||||
KeyNamePair prodKey = (KeyNamePair)m_table.getModel().getValueAt(m_row, m_column + 1);
|
|
||||||
MProduct prod = new MProduct(Env.getCtx(), prodKey.getKey(), null);
|
|
||||||
prod.setM_Locator_ID(key);
|
|
||||||
prod.save();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue