Commit 99f5661a authored by msalla's avatar msalla

We need warning message in bank receipt in the case of

If header amount is greater than detail amount system has to check and warn user with appropriate message.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@207278 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5ee4f752
......@@ -332,7 +332,11 @@ public class ReceiptAdvPostSave extends ValidatorEJB implements ReceiptAdvPostSa
//Pavan R 26Jul19 commented below error msg and uncommented exception throw logic
//errorString=itmDBAccessEJB.getErrorString("","VTNEGADV","","",conn);
//System.out.println("errorString :"+errorString);
throw new Exception("Advance amount calculated is becoming negative [" + newAdvAmt + "]" );
// throw new Exception("Advance amount calculated is becoming negative [" + newAdvAmt + "]" );
// added by monika s -on 3 sept 2019-- TO CHECK HEADER AMOUNT WITH DETAIL AMOUNT
errorString=itmDBAccessEJB.getErrorString("","VTINADJAMT","","",conn); //end
System.out.println("errorString message:"+errorString);
}
// end 29/05/14 manoharan
......@@ -342,7 +346,7 @@ public class ReceiptAdvPostSave extends ValidatorEJB implements ReceiptAdvPostSa
//Changes and Commented-monika-26-july-2019
//sql="UPDATE receipt SET adv_amt = chq_amt - ((case when bill_amt is null then 0 else bill_amt end)+ (case when advadj_amt is null then 0 else advadj_amt end) - ? + (case when oth_amt is null then 0 else oth_amt end) + (case when fin_chg is null then 0 else fin_chg end)+ tax_amt) WHERE tran_id= ? " ;
//changes done-monika-26-july-2019-as tax_amt is already added
//changes done-monika s-26-july-2019-as tax_amt is already added
sql="UPDATE receipt SET adv_amt = chq_amt - ((case when bill_amt is null then 0 else bill_amt end)+ (case when advadj_amt is null then 0 else advadj_amt end) - ? + (case when oth_amt is null then 0 else oth_amt end) + (case when fin_chg is null then 0 else fin_chg end)) WHERE tran_id= ? " ;
//end
//sql="UPDATE receipt SET adv_amt = chq_amt - ((case when bill_amt is null then 0 else bill_amt end) +(case when advadj_amt is null then 0 else advadj_amt end) + (case when oth_amt is null then 0 else oth_amt end) + (case when fin_chg is null then 0 else fin_chg end) + tax_amt) WHERE tran_id = ? " ;//Added advadjamtount in formulla by manoj dtd 27/06/2016
......
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