Commit 355fd605 authored by msalla's avatar msalla

Issue : In receivables JV if advance amount taken more than receipt amount...

Issue : In receivables JV if advance amount taken more than receipt amount then system allow to do the same .we have checked Gltrace found Bank to credit of remaining amount .Automatically system credited to bank .


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@216587 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2cd9cf25
......@@ -2739,13 +2739,20 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
// System.out.println("net_amt AND net_amt__bc 1"+RcpHdrMap.get("net_amt")+""+RcpHdrMap.get("net_amt__bc"));
tranId = (String)RcpHdrMap.get("tran_id");
tranType = (String)RcpHdrMap.get("tran_type");
// if(tranType.equalsIgnoreCase("J"))
if("J".equalsIgnoreCase(tranType))
//if(tranType.equalsIgnoreCase("J"))
/*System.out.println(" RECECEIVABLE jv map ---> net_amt["+RcpHdrMap);
System.out.println(" RECECEIVABLE jv ---> net_amt["+RcpHdrMap.get("net_amt")+"] chq_amount ["+RcpHdrMap.get("chq_amt")+" ] adv amount ["+RcpHdrMap.get("adv_amt")+"] tran_type ["+tranType +" ]");
*/
if("J".equalsIgnoreCase(tranType.trim()))
{
if((double) Double.parseDouble( "" + RcpHdrMap.get("adv_amt")) != 0 && (double) Double.parseDouble( "" + RcpHdrMap.get("chq_amt")) != 0)
//System.out.println("inside tran_type["+tranType);
//if((double) Double.parseDouble( "" + RcpHdrMap.get("adv_amt")) != 0 && (double) Double.parseDouble( "" + RcpHdrMap.get("chq_amt")) != 0)//[START] commenetd by monika salla on 13 feb 2020 -condition set wrong.
//condition added to check net_amt!=0 or chq_amt!=0 or adv_amt!=0
if((double) Double.parseDouble( "" + RcpHdrMap.get("adv_amt")) != 0 || (double) Double.parseDouble( "" + RcpHdrMap.get("chq_amt")) != 0 || (double) Double.parseDouble( "" + RcpHdrMap.get("net_amt")) != 0)
{
// System.out.println("amount != zero["+tranType);
errString = itmDBAccessEJB.getErrorString("","VTRCPJVAMT","","",conn);
return errString;//added by monika 13 feb 2020 to return error//end
}
}
......@@ -3484,7 +3491,7 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
// System.out.println("no of times "+ctr);
//DetMap = new HashMap();
DetMap = (HashMap) DetList.get(ctr);
//
//
// System.out.println(" DetMap ctr [" + ctr + "] ["+DetMap + "]");
/* sundryType = (String)detListMap.get("sundry_type");
......
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