Commit ec3a4a22 authored by caluka's avatar caluka

net_weight, no_art is empty for qc_order then get from stock table on quantity item change


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97166 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9f0c9200
......@@ -1184,6 +1184,11 @@ QCTransferICRemote {
itemCode = checkNull(genericUtility.getColumnValue("item_code", dom));
unit = setDescription("unit", "item", "item_code", itemCode, conn);
quantity = quantityStr==null?0:Double.parseDouble(quantityStr);
siteCode = checkNull(genericUtility.getColumnValue("site_code", dom));
locCode = checkNull(genericUtility.getColumnValue("loc_code", dom));
lotSl = genericUtility.getColumnValue("lot_sl", dom);
lotNo = genericUtility.getColumnValue("lot_no", dom);
/*sql = " Select item_code from qc_order"
+ " where qorder_no = ? ";
pstmt = conn.prepareStatement(sql);
......@@ -1238,7 +1243,29 @@ QCTransferICRemote {
pstmt = null;
System.out.println("@@@@ qc order Qty[qcQty]["+qcQty+"]qc transfer qty[qty]["+quantity+"]netWeight["+netWeight+"]noArt["+noArt+"]");
//Start added by chandrashekar on 27-Jan-2015
if( netWeight == 0 && noArt == 0)
{
sql = " Select no_art,net_weight from Stock" +
" Where item_code = ? and site_code = ? and loc_code = ? and lot_no = ? and lot_Sl = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
pstmt.setString(2, siteCode);
pstmt.setString(3, locCode);
pstmt.setString(4, lotNo);
pstmt.setString(5, lotSl);
rs = pstmt.executeQuery();
if (rs.next())
{
noArt = Double.parseDouble(rs.getString("no_art") == null ? "0" : rs.getString("no_art"));
netWeight = Double.parseDouble(rs.getString("net_weight") == null ? "0" : rs.getString("net_weight"));
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
//End added by chandrashekar on 27-Jan-2015
/*convertedQty = quantity * qcQty / netWeight ;
//convertedNetWeight = netWeight ;
......
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