Commit b0ecc108 authored by ngadkari's avatar ngadkari

added trim to invoice id

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@207471 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ac80492c
...@@ -916,7 +916,7 @@ public class SalesReturnAct extends ActionHandlerEJB implements SalesReturnActLo ...@@ -916,7 +916,7 @@ public class SalesReturnAct extends ActionHandlerEJB implements SalesReturnActLo
if(qty >0) if(qty >0)
{ {
invoiceId = checkNull(rs.getString("INVOICE_ID")); invoiceId = checkNullandTrim(rs.getString("INVOICE_ID"));
invoiceQty =rs.getDouble("QUANTITY"); invoiceQty =rs.getDouble("QUANTITY");
adjQty = rs.getDouble("QTY_ADJ"); adjQty = rs.getDouble("QTY_ADJ");
docKey = checkNull(rs.getString("DOC_KEY")); docKey = checkNull(rs.getString("DOC_KEY"));
...@@ -1242,7 +1242,7 @@ public class SalesReturnAct extends ActionHandlerEJB implements SalesReturnActLo ...@@ -1242,7 +1242,7 @@ public class SalesReturnAct extends ActionHandlerEJB implements SalesReturnActLo
{ {
invoiceId = checkNull(rs.getString("INVOICE_ID")); invoiceId = checkNullandTrim(rs.getString("INVOICE_ID"));
invoiceQty =rs.getDouble("QUANTITY"); invoiceQty =rs.getDouble("QUANTITY");
adjQty = rs.getDouble("QTY_ADJ"); adjQty = rs.getDouble("QTY_ADJ");
docKey = checkNull(rs.getString("DOC_KEY")); docKey = checkNull(rs.getString("DOC_KEY"));
...@@ -1563,4 +1563,15 @@ public class SalesReturnAct extends ActionHandlerEJB implements SalesReturnActLo ...@@ -1563,4 +1563,15 @@ public class SalesReturnAct extends ActionHandlerEJB implements SalesReturnActLo
} }
return retString; return retString;
} }
private String checkNullandTrim(String input) {
if (input == null)
{
input = "";
}
else
{
input=input.trim();
}
return input;
}
} }
\ No newline at end of file
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