凭证相关

This commit is contained in:
xiezhiwen 2019-02-27 12:05:50 +08:00
parent 0ad29052eb
commit e6209ed3e1
5 changed files with 50 additions and 13 deletions

View File

@ -88,12 +88,9 @@ public class CreateVoucherContractChangeForTradition {
param.put("BUSINESSTYPE",BUSINESSTYPE);
if("2".equals(BUSINESSTYPE)){
param.put("LEASFORMASSET", ""); // ÈÚ×Ê×âÁÞ×ʲú
param.put("DEPT", "01"); // ²¿ÃÅ
param.put("LEASINCOMEFORM", "");
param.put("CASHFLOW", "");// 现金流项目
param.put("BUSINESSTYPE", "");// 主营类型
}
param.put("FUNDTYPE", "01"); // Ö÷ÓªÀàÐÍ
param.put("BUSINESSTYPE", "06");
param.put("FlowUnid", FlowUnid);
map.clear();

View File

@ -47,11 +47,11 @@ public class CreateVoucherDepositDeductionForTradition extends BaseBussiness {
if("PZ2018092500000217".equals(VOUCHERNO) || "PZ2018101000000336".equals(VOUCHERNO)) {// ±£Ö¤½ðµÖ¿Û×â½ð(Æû³µÀഫͳ)
feeType="LRIT.RENT"; taxType="×â½ð"; businessType=" LPI.BUSINESSTYPE='3' AND ";
}else if("PZ2018092500000185".equals(VOUCHERNO) || "PZ2018101000000338".equals(VOUCHERNO)) {// ±£Ö¤½ðµÖ¿Û×â½ð(´«Í³)
}else if("PZ2018092500000185".equals(VOUCHERNO)) {// ±£Ö¤½ðµÖ¿Û×â½ð(´«Í³)
feeType="LRIT.RENT"; taxType="×â½ð"; businessType=" LPI.BUSINESSTYPE='2' AND ";
}else if("PZ2018092500000219".equals(VOUCHERNO) || "PZ2018101000000337".equals(VOUCHERNO)) {// ±£Ö¤½ðµÖ¿Û·£½ð(Æû³µÀഫͳ)
feeType="LRIT.PENALTY"; taxType="Î¥Ô¼½ð"; businessType=" LPI.BUSINESSTYPE='3' AND ";
}else if("PZ2018092500000187".equals(VOUCHERNO) || "PZ2018101000000339".equals(VOUCHERNO)) {// ±£Ö¤½ðµÖ¿Û·£½ð(´«Í³)
}else if("PZ2018092500000187".equals(VOUCHERNO)) {// ±£Ö¤½ðµÖ¿Û·£½ð(´«Í³)
feeType="LRIT.PENALTY"; taxType="Î¥Ô¼½ð"; businessType=" LPI.BUSINESSTYPE='2' AND ";
}
sql = "SELECT "+feeType+" AS MONEY,ROUND("+feeType+" / getTax(LCI.LEAS_FORM,'"+taxType+"',LCCT.START_DATE),2) AS MONEYNOTAX,("+feeType+" - ROUND("+feeType+" / getTax(LCI.LEAS_FORM,'"+taxType+"',LCCT.START_DATE),2)) AS MONEYTAX,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS FACT_DATE,LRIT.CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE,LRIT.OWN_NUMBER FROM LC_RENT_INCOME_TEMP LRIT LEFT JOIN LB_CONTRACT_INFO LCI ON LRIT.CONTRACT_ID = LCI.ID LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO = LCI.DISTRIBUTOR_ID LEFT JOIN lb_union_lessee lul ON lul.contract_id = lci.id LEFT JOIN customer_info cif ON cif.customerid = lul.customer_id LEFT JOIN LB_PROJECT_INFO LPI ON LPI.ID = LUL.PROJECT_ID LEFT JOIN LC_CALC_CONDITION LCCT ON LCCT.CONTRACT_ID = LCI.ID WHERE "+businessType+" LRIT.SETTLE_METHOD = 'settlemethod7' AND LRIT.FLOWUNID = :FLOWUNID ";

View File

@ -18,27 +18,27 @@ public class VoucherDepositDeductionForTradition extends BaseBussiness {
CreateVoucherDepositDeductionForTradition cvdd=new CreateVoucherDepositDeductionForTradition();
// 汽车类传统
cvdd.CreateVoucher(FlowUnid, "PZ2018092500000217");//±£Ö¤½ðµÖ¿Û×â½ð --»Ø×â
cvdd.CreateVoucher(FlowUnid, "PZ2018101000000336");//±£Ö¤½ðµÖ¿Û×â½ð--Ö±×â
//cvdd.CreateVoucher(FlowUnid, "PZ2018092500000217");//±£Ö¤½ðµÖ¿Û×â½ð --»Ø×â
//cvdd.CreateVoucher(FlowUnid, "PZ2018101000000336");//±£Ö¤½ðµÖ¿Û×â½ð--Ö±×â
//cvdd.CreateVoucher(FlowUnid, "PZ2018092500000218");//保证金抵扣违约金 --回租
//cvdd.CreateVoucher(FlowUnid, "");//保证金抵扣违约金 --直租
cvdd.CreateVoucher(FlowUnid, "PZ2018092500000219");//±£Ö¤½ðµÖ¿Û·£½ð --»Ø×â
cvdd.CreateVoucher(FlowUnid, "PZ2018101000000337");//±£Ö¤½ðµÖ¿Û·£½ð --Ö±×â
//cvdd.CreateVoucher(FlowUnid, "PZ2018092500000219");//±£Ö¤½ðµÖ¿Û·£½ð --»Ø×â
//cvdd.CreateVoucher(FlowUnid, "PZ2018101000000337");//±£Ö¤½ðµÖ¿Û·£½ð --Ö±×â
//cvdd.CreateVoucher(FlowUnid, "PZ2018092500000220");//保证金抵扣名义货价 --回租
//cvdd.CreateVoucher(FlowUnid, "");//保证金抵扣名义货价--直租
// 传统
cvdd.CreateVoucher(FlowUnid, "PZ2018092500000185");//保证金抵扣租金 --回租
cvdd.CreateVoucher(FlowUnid, "PZ2018101000000338");//±£Ö¤½ðµÖ¿Û×â½ð--Ö±×â
//cvdd.CreateVoucher(FlowUnid, "PZ2018101000000338");//±£Ö¤½ðµÖ¿Û×â½ð--Ö±×â
//cvdd.CreateVoucher(FlowUnid, "PZ2018092500000186");//保证金抵扣违约金 --回租
//cvdd.CreateVoucher(FlowUnid, "");//保证金抵扣违约金 --直租
cvdd.CreateVoucher(FlowUnid, "PZ2018092500000187");//保证金抵扣罚金 --回租
cvdd.CreateVoucher(FlowUnid, "PZ2018101000000339");//±£Ö¤½ðµÖ¿Û·£½ð--Ö±×â
//cvdd.CreateVoucher(FlowUnid, "PZ2018101000000339");//±£Ö¤½ðµÖ¿Û·£½ð--Ö±×â
//cvdd.CreateVoucher(FlowUnid, "PZ2018092500000188");//保证金抵扣名义货价 --回租
//cvdd.CreateVoucher(FlowUnid, "");//保证金抵扣名义货价--直租

View File

@ -0,0 +1,20 @@
package com.tenwa.voucher.CreateVoucherProcess.VoucherGetMoneyForTradition;
import java.util.HashMap;
import java.util.Map;
import com.amarsoft.are.jbo.JBOTransaction;
import com.tenwa.comm.exception.BusinessException;
import com.tenwa.voucher.service.VoucherJavaParamService;
/**
* »ñÈ¡FACT_MONEY
* @author xiezhiwen
*/
public class ContractGetMoneyToCORPUS implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx,Map<String, String> param,Map<String, String> subData) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
returnValue.put("MONEY",param.get("CORPUS"));
return returnValue;
}
}

View File

@ -0,0 +1,20 @@
package com.tenwa.voucher.CreateVoucherProcess.VoucherGetMoneyForTradition;
import java.util.HashMap;
import java.util.Map;
import com.amarsoft.are.jbo.JBOTransaction;
import com.tenwa.comm.exception.BusinessException;
import com.tenwa.voucher.service.VoucherJavaParamService;
/**
* »ñÈ¡FACT_MONEY
* @author xiezhiwen
*/
public class ContractGetMoneyToRENT implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx,Map<String, String> param,Map<String, String> subData) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
returnValue.put("MONEY",param.get("RENT"));
return returnValue;
}
}