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