This commit is contained in:
armenrz 2007-03-26 01:37:10 +00:00
parent c9fa537268
commit c3d13b7d49
1 changed files with 11 additions and 6 deletions

View File

@ -196,12 +196,17 @@ public class CalloutInOut extends CalloutEngine
else
mTab.setValue("AD_User_ID", ii);
// CreditAvailable
double CreditAvailable = rs.getDouble("CreditAvailable");
if (!rs.wasNull() && CreditAvailable < 0)
mTab.fireDataStatusEEvent("CreditLimitOver",
DisplayType.getNumberFormat(DisplayType.Amount).format(CreditAvailable),
false);
//Bugs item #1679818: checking for SOTrx only
boolean IsSOTrx = Env.getContext(ctx, WindowNo, "IsSOTrx").equals("Y");
if (IsSOTrx)
{
// CreditAvailable
double CreditAvailable = rs.getDouble("CreditAvailable");
if (!rs.wasNull() && CreditAvailable < 0)
mTab.fireDataStatusEEvent("CreditLimitOver",
DisplayType.getNumberFormat(DisplayType.Amount).format(CreditAvailable),
false);
}//
}
rs.close();
pstmt.close();