Commit 864b4af3 authored by agaikwad's avatar agaikwad

Added check null(Supp bill amt )


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103691 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 34ba461d
...@@ -62,7 +62,9 @@ public class MiscVoucherPostSave extends ValidatorEJB implements MiscVoucherPost ...@@ -62,7 +62,9 @@ public class MiscVoucherPostSave extends ValidatorEJB implements MiscVoucherPost
sundryType = checkNullAndTrim(genericUtility.getColumnValue("sundry_type", dom)); sundryType = checkNullAndTrim(genericUtility.getColumnValue("sundry_type", dom));
vouchType = checkNullAndTrim(genericUtility.getColumnValue("vouch_type", dom)); vouchType = checkNullAndTrim(genericUtility.getColumnValue("vouch_type", dom));
advAdjMthd = genericUtility.getColumnValue("adv_adj_mthd", dom); advAdjMthd = genericUtility.getColumnValue("adv_adj_mthd", dom);
totAmt = Double.parseDouble(genericUtility.getColumnValue("supp_bill_amt", dom)); //totAmt = Double.parseDouble(genericUtility.getColumnValue("supp_bill_amt", dom));
String tempAmt = checkNullAndTrim(genericUtility.getColumnValue("supp_bill_amt", dom));
totAmt = tempAmt.length() > 0 ? Double.parseDouble(tempAmt) : 0;
siteCode = checkNullAndTrim(genericUtility.getColumnValue("site_code", dom)); siteCode = checkNullAndTrim(genericUtility.getColumnValue("site_code", dom));
sundryCode = checkNullAndTrim(genericUtility.getColumnValue("sundry_code", dom)); sundryCode = checkNullAndTrim(genericUtility.getColumnValue("sundry_code", dom));
......
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