parent
f78ae8a4b5
commit
cc931e56ed
|
|
@ -19,6 +19,7 @@ public class MID_InventoryLineValidator {
|
|||
return "";
|
||||
}
|
||||
private static String beforeChange(MInventoryLine inv) {
|
||||
if(inv.getReversalLine_ID()>0) return "";
|
||||
int PS_PPOLine_ID = inv.get_ValueAsInt("ps_ppoline_ID");
|
||||
if(! inv.is_ValueChanged("QtyEntered")) return "";
|
||||
if(PS_PPOLine_ID>0 ) {
|
||||
|
|
@ -42,6 +43,7 @@ public class MID_InventoryLineValidator {
|
|||
}
|
||||
|
||||
private static String beforeSave(MInventoryLine inv){
|
||||
if(inv.getReversalLine_ID()>0) return "";
|
||||
int PS_PPOLine_ID = inv.get_ValueAsInt("ps_ppoline_ID");
|
||||
if(PS_PPOLine_ID>0) {
|
||||
MID_PPOLine line = new MID_PPOLine(inv.getCtx(), PS_PPOLine_ID,inv.get_TrxName());
|
||||
|
|
|
|||
Loading…
Reference in New Issue