Commit f26babae authored by msingh's avatar msingh

D15CKAT01, Changed for MS SQL Server


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98677 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d5b9d9fd
......@@ -638,9 +638,16 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
{
//changed by manish on 02/09/15 for Ms sql server databse.(remove TRIM() and added RTRIM(LTRIM ())
System.out.println("ordtypeGetData::::::::"+saleOrdertype);
if("mssql".equalsIgnoreCase(DB))
{
getDataSql = getDataSql + " AND RTRIM(LTRIM ( SORDER.ORDER_TYPE )) = ? ORDER BY SORDER.CUST_CODE,SORDER.SALE_ORDER,SORDITEM.ITEM_CODE__ORD ";
}
else
{
getDataSql = getDataSql + " AND TRIM ( SORDER.ORDER_TYPE ) = ? ORDER BY SORDER.CUST_CODE,SORDER.SALE_ORDER,SORDITEM.ITEM_CODE__ORD ";
}
}
else
{
System.out.println("no sale order type");
getDataSql = getDataSql + " ORDER BY SORDER.CUST_CODE,SORDER.SALE_ORDER,SORDITEM.ITEM_CODE__ORD ";
......
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