Commit 8d3deb62 authored by sankara.rao's avatar sankara.rao

changed by sankara on 19/11/13 in stocktranferic for stock transfer not...

changed by sankara on 19/11/13 in stocktranferic for stock transfer not allowed if replenishment is pending.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93889 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f5fc0ad9
...@@ -842,6 +842,34 @@ public class StockTransferIC extends ValidatorEJB implements StockTransferICRemo ...@@ -842,6 +842,34 @@ public class StockTransferIC extends ValidatorEJB implements StockTransferICRemo
/*if ("L".equalsIgnoreCase(phyHanBasis) && () ) /*if ("L".equalsIgnoreCase(phyHanBasis) && () )
{ {
}*/ }*/
//changed by sankara on 19/11/13 not allowed stock transfer if replenishment is pending start.
sql = " SELECT COUNT(1) AS COUNT FROM REPL_ORD_DET D, WAVE_TASK W, WAVE_TASK_DET K " +
" WHERE D.REPL_ORDER = K.REF_ID AND W.WAVE_ID = K.WAVE_ID AND W.CANCEL <>'Y' AND K.STATUS <>'Y' " +
" AND D.CANCEL_MODE IS NULL AND D.QUANTITY > 0 AND D.SITE_CODE = ? AND D.ITEM_CODE = ? AND D.LOC_CODE = ? " +
" AND D.LOT_NO = ? AND D.LOT_SL = ? ";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, siteCode );
pstmt.setString( 2, itemCode );
pstmt.setString( 3, locCode );
pstmt.setString( 4, lotNo );
pstmt.setString( 5, lpnNo );
rs = pstmt.executeQuery();
if( rs.next() )
{
count = rs.getInt("COUNT");
System.out.println("count:"+count);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if( count > 0 )
{
errList.add( "VTREPLPEND" );
errFields.add( childNodeName.toLowerCase() );
}
//changed by sankara on 19/11/13 not allowed stock transfer if replenishment is pending end.
} }
}//End of inner for loop }//End of inner for loop
......
...@@ -44782,4 +44782,34 @@ INSERT INTO messages ( ...@@ -44782,4 +44782,34 @@ INSERT INTO messages (
'Base ', 'Base ',
NULL, NULL,
NULL); NULL);
commit; commit;
\ No newline at end of file --changed by sankara on 19/11/13 for pending replenishment.
INSERT INTO messages (
msg_no ,
msg_str ,
msg_descr ,
msg_type ,
msg_opt ,
msg_time ,
alarm ,
err_source ,
chg_date ,
chg_user ,
chg_term ,
override_input ,
mail_option )
VALUES (
'VTREPLPEND',
'Replenishment pending',
'Replenishment Task Pending',
'E',
'Y',
NULL,
NULL,
NULL,
fn_sysdate(),
'Base ',
'Base ',
NULL,
NULL);
commit;
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