IDEMPIERE-3035 Potential data corruption selection sales order line on shipment
This commit is contained in:
parent
f33db5b1ee
commit
c600cea235
|
@ -417,10 +417,13 @@ public class CalloutInOut extends CalloutEngine
|
||||||
{
|
{
|
||||||
if (ol.getC_Charge_ID() > 0 && ol.getM_Product_ID() <= 0) {
|
if (ol.getC_Charge_ID() > 0 && ol.getM_Product_ID() <= 0) {
|
||||||
mTab.setValue("C_Charge_ID", new Integer(ol.getC_Charge_ID()));
|
mTab.setValue("C_Charge_ID", new Integer(ol.getC_Charge_ID()));
|
||||||
|
mTab.setValue("M_Product_ID", null);
|
||||||
|
mTab.setValue("M_AttributeSetInstance_ID", null);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
mTab.setValue("M_Product_ID", new Integer(ol.getM_Product_ID()));
|
mTab.setValue("M_Product_ID", new Integer(ol.getM_Product_ID()));
|
||||||
mTab.setValue("M_AttributeSetInstance_ID", new Integer(ol.getM_AttributeSetInstance_ID()));
|
mTab.setValue("M_AttributeSetInstance_ID", new Integer(ol.getM_AttributeSetInstance_ID()));
|
||||||
|
mTab.setValue("C_Charge_ID", null);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
mTab.setValue("C_UOM_ID", new Integer(ol.getC_UOM_ID()));
|
mTab.setValue("C_UOM_ID", new Integer(ol.getC_UOM_ID()));
|
||||||
|
@ -472,10 +475,13 @@ public class CalloutInOut extends CalloutEngine
|
||||||
{
|
{
|
||||||
if (rl.getC_Charge_ID() > 0 && rl.getM_Product_ID() <= 0) {
|
if (rl.getC_Charge_ID() > 0 && rl.getM_Product_ID() <= 0) {
|
||||||
mTab.setValue("C_Charge_ID", new Integer(rl.getC_Charge_ID()));
|
mTab.setValue("C_Charge_ID", new Integer(rl.getC_Charge_ID()));
|
||||||
|
mTab.setValue("M_Product_ID", null);
|
||||||
|
mTab.setValue("M_AttributeSetInstance_ID", null);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
mTab.setValue("M_Product_ID", new Integer(rl.getM_Product_ID()));
|
mTab.setValue("M_Product_ID", new Integer(rl.getM_Product_ID()));
|
||||||
mTab.setValue("M_AttributeSetInstance_ID", new Integer(rl.getM_AttributeSetInstance_ID()));
|
mTab.setValue("M_AttributeSetInstance_ID", new Integer(rl.getM_AttributeSetInstance_ID()));
|
||||||
|
mTab.setValue("C_Charge_ID", null);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
mTab.setValue("C_UOM_ID", new Integer(rl.getC_UOM_ID()));
|
mTab.setValue("C_UOM_ID", new Integer(rl.getC_UOM_ID()));
|
||||||
|
|
Loading…
Reference in New Issue