Check Line If Reversal

--HG--
branch : EDII
This commit is contained in:
hodianto 2019-08-28 15:01:09 +07:00
parent f78ae8a4b5
commit cc931e56ed
1 changed files with 2 additions and 0 deletions

View File

@ -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());