Commit eb73ec6a authored by SABURI PATEKAR's avatar SABURI PATEKAR

Added transporter validation and RFQ rate calculation using FINPARAM-based...

Added transporter validation and RFQ rate calculation using FINPARAM-based pricelist configuration(remove dublicate code)
parent 2d9e4c27
......@@ -2517,54 +2517,6 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch
}//end if //Ignore stock check for no stockable items
}
else if (childNodeName.equalsIgnoreCase("tran_code"))
{
String distRoute = checkNull(genericUtility.getColumnValue("dist_route", dom));
tranCode = checkNull(genericUtility.getColumnValue("tran_code", dom));
BaseLogger.log("3", getUserInfo(), null,
"@@@ distRoute :: " + distRoute + " tranCode :: " + tranCode);
if (distRoute != null && distRoute.trim().length() > 0
&& tranCode != null && tranCode.trim().length() > 0)
{
sql = "SELECT COUNT(*) CNT FROM DISTROUTEDET WHERE DIST_ROUTE = ? AND TRAN_CODE = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, distRoute);
pstmt.setString(2, tranCode);
rs = pstmt.executeQuery();
int cnt1 = 0;
if (rs.next())
{
cnt1 = rs.getInt("CNT");
}
BaseLogger.log("3", getUserInfo(), null,"@@@ Transporter Validation Count :: " + cnt1);
if (cnt1 == 0)
{
errCode = "VTDISTRT01"; // Invalid Transporter
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
}
else if (childNodeName.equalsIgnoreCase("lot_sl"))
{
msaleord = checkNull(genericUtility.getColumnValue("sord_no", dom));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment