BF [2904257] - wrong validation sql for "M_InOutShipment/Receipt (RMA)"

https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2904257&group_id=176962
This commit is contained in:
Carlos Ruiz 2009-12-07 22:38:31 +00:00
parent ea745d9cfc
commit 66323a8f95
3 changed files with 21 additions and 14 deletions

View File

@ -382,9 +382,11 @@ public final class Env
if (WindowNo != WINDOW_FIND && WindowNo != WINDOW_MLOOKUP)
s_log.finest("Context("+WindowNo+","+TabNo+") " + context + "==" + value);
//
if (value == null || value.equals(""))
ctx.remove(WindowNo+"|"+TabNo+"|"+context);
if (value == null)
if (context.endsWith("_ID"))
value = new String("-1");
else
value = new String("");
ctx.setProperty(WindowNo+"|"+TabNo+"|"+context, value);
} // setContext
@ -1180,18 +1182,11 @@ public final class Env
if (ctxInfo.length() == 0 && (token.startsWith("#") || token.startsWith("$")) )
ctxInfo = getContext(ctx, token); // get global context
if (ctxInfo.length() == 0)
{
if (token.endsWith("_ID"))
{
outStr.append("0");
}
else
{
s_log.config("No Context Win=" + WindowNo + " for: " + token);
if (!ignoreUnparsable)
return ""; // token not found
}
}
else
outStr.append(ctxInfo); // replace context with Context

View File

@ -0,0 +1,6 @@
-- Nov 26, 2009 11:18:36 AM MYT
-- 2904257 - wrong dynamic validation sql for rma line
UPDATE AD_Val_Rule SET Code='M_InOutLine.M_InOut_ID=@InOut_ID@ AND NOT EXISTS (SELECT * FROM M_RMALine rl WHERE rl.M_InOutLine_ID=M_InOutLine.M_InOutLine_ID AND rl.M_RMA_ID=@M_RMA_ID@ AND rl.M_RMALine_ID != @1|M_RMALine_ID@)',Updated=TO_DATE('2009-12-07 17:27:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=52001
;
COMMIT;

View File

@ -0,0 +1,6 @@
-- Nov 26, 2009 11:18:36 AM MYT
-- 2904257 - wrong dynamic validation sql for rma line
UPDATE AD_Val_Rule SET Code='M_InOutLine.M_InOut_ID=@InOut_ID@ AND NOT EXISTS (SELECT * FROM M_RMALine rl WHERE rl.M_InOutLine_ID=M_InOutLine.M_InOutLine_ID AND rl.M_RMA_ID=@M_RMA_ID@ AND rl.M_RMALine_ID != @1|M_RMALine_ID@)',Updated=TO_TIMESTAMP('2009-12-07 17:27:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=52001
;
COMMIT;