Commit 41da60da authored by msalla's avatar msalla

If purchase voucher is created against GRN and Return then in Purchase...

If purchase voucher is created against GRN and Return then in Purchase voucher, return line is inserted with positive amount. purchase voucher is generating from voucher generation process 

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@204989 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c7d07054
......@@ -1109,6 +1109,7 @@ public class CreatePoRcpVoucher
rcpQtyStd = -1 * rcpQtyStd;
// 07-06-04 sign of amount to be changed
rcpAmount = -1 * rcpAmount;
rcpQuantity=-1*rcpQuantity;//added by monika 0n-09 august 2019 -to check return qty in voucher
// end 07-06-04
}
......@@ -1550,6 +1551,21 @@ public class CreatePoRcpVoucher
ctr++;
//added by monika on 9 august 2019-to show po return in vouch cteation
// System.out.println(" before voucher quantity11::"+vouchQuantity+" ][ transer 11::"+tranSer+" ] [ voucher amount 123:: "+vouchAmount);
rcpDiscAmt = -1 * rcpDiscAmt ;
rcpTaxAmount = -1 * rcpTaxAmount;
rcpNetAmount = -1 * rcpNetAmount;
vouchQuantity = -1 * vouchQuantity;
vouchAmount = -1 * vouchAmount;
taxMultiplier = -1;
rcpQtyStd = -1 * rcpQtyStd;
rcpAmount = -1 * rcpAmount;
rcpQuantity=-1*rcpQuantity;//ADDED BY MONIKA ON 9 AUGUST 2019
//System.out.println("after voucher quantity12:: "+vouchQuantity+ "transer 12::"+tranSer+" [ voucher amount 123::"+vouchAmount);
//end
// Changed by Sneha on 28-10-2016, for domID [Start]
//xmlBuff.append("<Detail3 dbID='' domID=\"1\" objName=\"voucher\" objContext=\"2\">");
xmlBuff.append("<Detail3 dbID='' domID='"+ctr+"' objName=\"voucher\" objContext=\"2\">");
......
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