parent
6018df204f
commit
03e4d4aebd
|
|
@ -29,10 +29,7 @@ public class MID_InventoryLineValidator {
|
|||
else if (!line.isEndProduct())
|
||||
inv.setQtyInternalUse(inv.getQtyInternalUse().abs());
|
||||
}
|
||||
else if (inv.getM_Product().getM_Product_Category().getValue().contains("SCRAP")) {
|
||||
if(inv.getQtyInternalUse().signum()>0)
|
||||
inv.setQtyInternalUse(inv.getQtyInternalUse().negate());
|
||||
}else {
|
||||
else {
|
||||
MDocType dt = (MDocType) inv.getM_Inventory().getC_DocType();
|
||||
if(dt.get_ValueAsBoolean("IsReceipt") && inv.getQtyInternalUse().signum()>0) {
|
||||
inv.setQtyInternalUse(inv.getQtyInternalUse().negate());
|
||||
|
|
@ -51,9 +48,6 @@ public class MID_InventoryLineValidator {
|
|||
inv.setQtyInternalUse(inv.getQtyInternalUse().negate());
|
||||
else if (!line.isEndProduct())
|
||||
inv.setQtyInternalUse(inv.getQtyInternalUse().abs());
|
||||
}else if (inv.getM_Product().getM_Product_Category().getValue().contains("SCRAP")) {
|
||||
if(inv.getQtyInternalUse().signum()>0)
|
||||
inv.setQtyInternalUse(inv.getQtyInternalUse().negate());
|
||||
}else {
|
||||
MDocType dt = (MDocType) inv.getM_Inventory().getC_DocType();
|
||||
if(dt.get_ValueAsBoolean("IsReceipt") && inv.getQtyInternalUse().signum()>0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue