Commit 2899cedb authored by msharma's avatar msharma

Parameterised for QC closing


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98155 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0d39dc01
...@@ -206,10 +206,25 @@ QCTransferConfLocal, QCTransferConfRemote ...@@ -206,10 +206,25 @@ QCTransferConfLocal, QCTransferConfRemote
String dimension=""; String dimension="";
boolean isFound=false; boolean isFound=false;
double noArtQCTransfer=0,netWeightQCTransfer=0; double noArtQCTransfer=0,netWeightQCTransfer=0;
String autoCloseQC="";
String subSQLCloseQC="";
try try
{ {
StockUpdate stockUpdate = new StockUpdate(); StockUpdate stockUpdate = new StockUpdate();
DistCommon dcommon=new DistCommon(); DistCommon dcommon=new DistCommon();
autoCloseQC = new MfgCommon().getEnvMfg("999999","CLOSE_QC_TRF", conn);
System.out.println("autoCloseQC>>>>["+autoCloseQC+"]");
if (autoCloseQC == null || "NULLFOUND".equalsIgnoreCase(autoCloseQC))
{
autoCloseQC = "N";
}
if((autoCloseQC.trim()).length()>0)
{
if("Y".equalsIgnoreCase(autoCloseQC))
{
subSQLCloseQC=",STATUS='C' ";
}
}
System.out.println("@@@@@@@@@@@@@@@ confirmQcTransfer method called next.............."); System.out.println("@@@@@@@@@@@@@@@ confirmQcTransfer method called next..............");
Calendar currentDate = Calendar.getInstance(); Calendar currentDate = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat()); SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
...@@ -842,7 +857,7 @@ QCTransferConfLocal, QCTransferConfRemote ...@@ -842,7 +857,7 @@ QCTransferConfLocal, QCTransferConfRemote
if ( qcQty > qty ) if ( qcQty > qty )
{ {
sql = " Update qc_order set quantity = (quantity - ? ) " + sql = " Update qc_order set quantity = (quantity - ? ) " + subSQLCloseQC+
" , net_weight = ( net_weight - ? ) , no_art = ( no_art - ? ) " + // modify by cpatil on 09/04/14 " , net_weight = ( net_weight - ? ) , no_art = ( no_art - ? ) " + // modify by cpatil on 09/04/14
" where qorder_no = ? "; " where qorder_no = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -856,7 +871,7 @@ QCTransferConfLocal, QCTransferConfRemote ...@@ -856,7 +871,7 @@ QCTransferConfLocal, QCTransferConfRemote
} }
else else
{ {
sql = " Update qc_order set quantity = (quantity - ? ) " + // remove update status = 'C' on 05/12/14 sql = " Update qc_order set quantity = (quantity - ? ) "+subSQLCloseQC + // remove update status = 'C' on 05/12/14
" , net_weight = ( net_weight - ? ) , no_art = ( no_art - ? ) " + // modify by cpatil on 09/04/14 " , net_weight = ( net_weight - ? ) , no_art = ( no_art - ? ) " + // modify by cpatil on 09/04/14
" where qorder_no = ? " ; " where qorder_no = ? " ;
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
......
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