This commit is contained in:
58261 2018-09-27 11:39:22 +08:00
commit 5152094048
35 changed files with 2262 additions and 29 deletions

File diff suppressed because it is too large Load Diff

View File

@ -16,6 +16,7 @@
if(null!=ishistory&&ishistory.equals("true")){
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
}
doTemp.setDefaultValue("FLOWUNID", sFlowUnid);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
CurPage.getCurComp().setAttribute("RightType", null);
dwTemp.Style = "2";//

View File

@ -159,7 +159,7 @@
function upload(){
// deleteFile();
var sparam="FlowUnid=<%=flowunid%>"+",ProjId=<%=projid%>"+",DocType=001,OneClassify=001003,DocName=风控报告";
var sparam="FlowUnid=<%=flowunid%>"+",ProjId=<%=projid%>"+",DocType=001,OneClassify=001003,DocName=风控及法务报告";
var library_id=RunJavaMethodTrans("com.tenwa.officetempalte.action.CreateContractOfficeAction","NewCreditLibraryId",sparam);
var param="Library_id="+library_id+"&FlowUnid=<%=flowunid%>";

View File

@ -212,8 +212,11 @@ public class FundFundPlanExecutor {
BizObjectManager bomLFP = JBOFactory.getBizObjectManager(LC_FUND_PLAN.CLASS_NAME,tx);
BizObject boLFP = bomLFP.createQuery("select id from O where contract_id='"+tcb.getCb().getContractId()+"' and fee_type='"+item.getItemNo()+"'")
.getSingleResult(true);
ffcp.setId(boLFP.getAttribute("id").getString());
bomLFP.deleteObject(boLFP);
if(boLFP!=null){
ffcp.setId(boLFP.getAttribute("id").getString());
bomLFP.deleteObject(boLFP);
}
}
ffcp.setFeeType(item.getItemNo());//·ÑÓÃÀàÐÍ
ffcp.setPlanList("1");

View File

@ -0,0 +1,168 @@
package com.tenwa.voucher.CreateVoucherProcess;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import jbo.voucher.LV_VOUCHER_CONFIG;
import com.amarsoft.app.util.ProductParamUtil;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.awe.util.Transaction;
import com.amarsoft.dict.als.cache.CacheLoaderFactory;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
import com.tenwa.flow.baseBussion.BaseBussiness;
import com.tenwa.voucher.serviceImp.CreateVoucherServiceImpl;
/**
* 汽车传统实际付款后生成凭证
* @author xiezhiwen
*/
public class CreateVoucherActualPaymentCarTradition extends BaseBussiness{
public String CreateVoucher(String FlowUnid,String VOUCHERNO) throws Exception {
// 创建事物
Transaction Sqlca =null;
Sqlca = Transaction.createTransaction(CacheLoaderFactory.getDataSource());
Map<String,String> map=new HashMap<String, String>();
Map<String,String> param=new HashMap<String, String>();
// 定义全局对象
String EQUIP_AMT=null; // 设备款
String EQUIP_AMT_NOTAX=null; // 设备款(不含税)
String EQUIP_AMT_TAX=null; // 设备款(税金)
String FIRST_PAYMENT=null; // 首付款
String FIRST_PAYMENT_NOTAX=null; // 首付款(不含税)
String FIRST_PAYMENT_TAX=null; // 首付款(税金)
String INSURANCE_PREMIUM_ADD_OTHER=null;// 保险费+其他金额
String INSURANCE_PREMIUM_ADD_OTHER_NOTAX=null;// 保险费+其他金额(不含税)
String INSURANCE_PREMIUM_ADD_OTHER_TAX=null; // 保险费+其他金额(税金)
String EQUIP_INSURACE_PREMIUM_OTHER=null;// 设备款+保险费+其他
String OTHERSMONEY=null; // 车款+保险+其他-首付款
String ACCOUNT_DATE=null; // 会计日期
String FACT_DATE=null; // 实际付款日期
String CONTRACT_ID=null; // 合同id
String CONTRACT_NUMBER=null; // 合同编号
String PROJECT_NAME=null; // 项目名称
String LEAS_FORM=null; // 项目类别
String DISTRIBUTOR_ID=null; // 经销商编号
String DISTRIBUTOR_NAME=null; // 经销商名称
String CUSTOMERID=null; // 客户编号
String CUSTOMERNAME=null; // 客户名称
String CUSTOMERTYPE=null; // 客户类别
String BUSINESSTYPE=null; // 业务类型
String ACC_NUMBER=null; // 银行账号
String PRODUCT_ID=null; // 产品编号
String sql="";
sql="SELECT LCCT.EQUIP_AMT,ROUND(LCCT.EQUIP_AMT / getTax (LCI.LEAS_FORM,'本金',LCI.INPUTTIME),2) AS EQUIP_AMT_NOTAX,(LCCT.EQUIP_AMT - ROUND(LCCT.EQUIP_AMT / getTax (LCI.LEAS_FORM,'本金',LCI.INPUTTIME),2)) AS EQUIP_AMT_TAX,LCCT.FIRST_PAYMENT,ROUND(LCCT.FIRST_PAYMENT/getTax(LCI.LEAS_FORM,'本金',LCI.INPUTTIME),2) AS FIRST_PAYMENT_NOTAX,(LCCT.FIRST_PAYMENT - ROUND(LCCT.FIRST_PAYMENT/getTax(LCI.LEAS_FORM,'本金',LCI.INPUTTIME),2)) AS FIRST_PAYMENT_TAX,(LCCT.INSURANCE_PREMIUM+LCCT.OTHER_MONEY) AS INSURANCE_PREMIUM_ADD_OTHER,ROUND((LCCT.INSURANCE_PREMIUM+LCCT.OTHER_MONEY) / getTax (LCI.LEAS_FORM,'本金',LCI.INPUTTIME),2) AS INSURANCE_PREMIUM_ADD_OTHER_NOTAX,((LCCT.INSURANCE_PREMIUM+LCCT.OTHER_MONEY) - ROUND((LCCT.INSURANCE_PREMIUM+LCCT.OTHER_MONEY) / getTax (LCI.LEAS_FORM,'本金',LCI.INPUTTIME),2)) AS INSURANCE_PREMIUM_ADD_OTHER_TAX,(LCCT.EQUIP_AMT+LCCT.INSURANCE_PREMIUM+LCCT.OTHER_MONEY) AS EQUIP_INSURACE_PREMIUM_OTHER,(LCCT.EQUIP_AMT+LCCT.INSURANCE_PREMIUM+LCCT.OTHER_MONEY-LCCT.FIRST_PAYMENT) AS OTHERSMONEY,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS FACT_DATE,LCCT.CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING AS DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE,lfit.ACC_NUMBER,LPDI.PRODUCT_ID FROM LC_CALC_CONDITION LCCT INNER JOIN (SELECT contract_id,FLOWUNID,MIN(ACC_NUMBER) ACC_NUMBER FROM lc_fund_income_temp WHERE fee_type = 'feetype10' GROUP BY contract_id,FLOWUNID) lfit ON lfit.contract_id = lcct.contract_id LEFT JOIN LB_CONTRACT_INFO LCI ON LCI.ID = lfit.CONTRACT_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 LB_PRODUCT_INFO LPDI ON LPDI.PRODUCT_ID = LPI.PRODUCT_ID WHERE LCI.BUSINESSTYPE = '3' AND lfit.FLOWUNID = :FLOWUNID ";
param.clear();
map.put("FLOWUNID", FlowUnid);
// 查询sql, 将结果集封装到map中
List<Map<String,String>> dataList=DataOperatorUtil.getDataBySql(Sqlca, sql, map);
// 创建生成凭证的类对象
CreateVoucherServiceImpl vs=new CreateVoucherServiceImpl();
// 设置常用参数
String VOUCHER_TYPE="1"; // 凭证分类 金蝶
String userid ="admin";
for (int i=0;i<dataList.size();i++){
EQUIP_AMT=dataList.get(i).get("EQUIP_AMT").toString();// 设备款
EQUIP_AMT_NOTAX=dataList.get(i).get("EQUIP_AMT_NOTAX").toString();// 设备款(不含税)
EQUIP_AMT_TAX=dataList.get(i).get("EQUIP_AMT_TAX").toString();// 设备款(税金)
FIRST_PAYMENT=dataList.get(i).get("FIRST_PAYMENT").toString();// 首付款
FIRST_PAYMENT_NOTAX=dataList.get(i).get("FIRST_PAYMENT_NOTAX").toString();// 首付款(不含税)
FIRST_PAYMENT_TAX=dataList.get(i).get("FIRST_PAYMENT_TAX").toString();// 首付款(税金)
INSURANCE_PREMIUM_ADD_OTHER=dataList.get(i).get("INSURANCE_PREMIUM_ADD_OTHER").toString();// 保险+其他
INSURANCE_PREMIUM_ADD_OTHER_NOTAX=dataList.get(i).get("INSURANCE_PREMIUM_ADD_OTHER_NOTAX").toString();// 保险+其他(不含税)
INSURANCE_PREMIUM_ADD_OTHER_TAX=dataList.get(i).get("INSURANCE_PREMIUM_ADD_OTHER_TAX").toString();// 保险+其他(税金)
EQUIP_INSURACE_PREMIUM_OTHER=dataList.get(i).get("EQUIP_INSURACE_PREMIUM_OTHER").toString();// 其他金额(不含税)
OTHERSMONEY=dataList.get(i).get("OTHERSMONEY").toString();
ACCOUNT_DATE=dataList.get(i).get("ACCOUNT_DATE").toString();// 会计日期
FACT_DATE=dataList.get(i).get("FACT_DATE").toString();// 实际付款日期
CONTRACT_ID=dataList.get(i).get("CONTRACT_ID").toString();// 合同id
CONTRACT_NUMBER=dataList.get(i).get("CONTRACT_NUMBER").toString();// 合同编号
PROJECT_NAME=dataList.get(i).get("PROJECT_NAME").toString();// 项目名称
LEAS_FORM=dataList.get(i).get("LEAS_FORM").toString();// 项目类别
DISTRIBUTOR_ID=dataList.get(i).get("DISTRIBUTOR_ID").toString();// 经销商编号
DISTRIBUTOR_NAME=dataList.get(i).get("DISTRIBUTOR_NAME").toString();// 经销商名称
CUSTOMERID=dataList.get(i).get("CUSTOMERID").toString();// 客户编号
CUSTOMERNAME=dataList.get(i).get("CUSTOMERNAME").toString();// 客户名称
CUSTOMERTYPE=dataList.get(i).get("CUSTOMERTYPE").toString();// 客户类别
BUSINESSTYPE=dataList.get(i).get("BUSINESSTYPE").toString();// 业务类型
ACC_NUMBER=dataList.get(i).get("ACC_NUMBER").toString();// 银行账号
PRODUCT_ID=dataList.get(i).get("PRODUCT_ID").toString();// 产品编号
String YesOrNo= ProductParamUtil.getProductParameterValue(PRODUCT_ID, "PRD0315", "CAUTION_MONEY", "isBalance");
if("PZ2018092500000198".equals(VOUCHERNO) || "PZ2018092600000236".equals(VOUCHERNO)) {
if("yes".equals(YesOrNo)) {
EQUIP_AMT="0.00"; // 设备款
EQUIP_AMT_NOTAX="0.00"; // 设备款(不含税)
EQUIP_AMT_TAX="0.00"; // 设备款(税金)
FIRST_PAYMENT="0.00"; // 首付款
FIRST_PAYMENT_NOTAX="0.00"; // 首付款(不含税)
FIRST_PAYMENT_TAX="0.00"; // 首付款(税金)
INSURANCE_PREMIUM_ADD_OTHER="0.00"; // 保险费+其他金额
INSURANCE_PREMIUM_ADD_OTHER_NOTAX="0.00";// 保险费+其他金额(不含税)
INSURANCE_PREMIUM_ADD_OTHER_TAX="0.00"; // 保险费+其他金额(税金)
EQUIP_INSURACE_PREMIUM_OTHER="0.00";// 设备款+保险费+其他
OTHERSMONEY="0.00"; // 车款+保险+其他-首付款
}
}
// 将数据封装到定义好的map集合中
param.put("EQUIP_AMT",EQUIP_AMT);
param.put("EQUIP_AMT_NOTAX",EQUIP_AMT_NOTAX);
param.put("EQUIP_AMT_TAX",EQUIP_AMT_TAX);
param.put("FIRST_PAYMENT",FIRST_PAYMENT);
param.put("FIRST_PAYMENT_NOTAX",FIRST_PAYMENT_NOTAX);
param.put("FIRST_PAYMENT_TAX",FIRST_PAYMENT_TAX);
param.put("INSURANCE_PREMIUM_ADD_OTHER",INSURANCE_PREMIUM_ADD_OTHER);
param.put("INSURANCE_PREMIUM_ADD_OTHER_NOTAX",INSURANCE_PREMIUM_ADD_OTHER_NOTAX);
param.put("INSURANCE_PREMIUM_ADD_OTHER_TAX",INSURANCE_PREMIUM_ADD_OTHER_TAX);
param.put("EQUIP_INSURACE_PREMIUM_OTHER",EQUIP_INSURACE_PREMIUM_OTHER);
param.put("OTHERSMONEY",OTHERSMONEY);
param.put("ACCOUNT_DATE",ACCOUNT_DATE);
param.put("FACT_DATE",FACT_DATE);
param.put("CONTRACT_ID",CONTRACT_ID);
param.put("CONTRACT_NUMBER",CONTRACT_NUMBER);
param.put("PROJECT_NAME",PROJECT_NAME);
param.put("LEAS_FORM",LEAS_FORM);
param.put("DISTRIBUTOR_ID",DISTRIBUTOR_ID);
param.put("DISTRIBUTOR_NAME",DISTRIBUTOR_NAME);
param.put("CUSTID",CUSTOMERID);
param.put("CUSTNAME",CUSTOMERNAME);
param.put("CUSTOMERTYPE",CUSTOMERTYPE);
param.put("BUSINESSTYPE",BUSINESSTYPE);
param.put("ACC_NUMBER",ACC_NUMBER);
param.put("PRODUCT_ID",PRODUCT_ID);
param.put("VOUCHERNO",VOUCHERNO);
// 判断传统类型
if("3".equals(BUSINESSTYPE)){
// 融资租赁资产
param.put("LEASFORMASSET", "02/03/05/06");
// 业务一部
param.put("DEPT", "01");
// 传统融资租赁收入
param.put("LEASINCOMEFORM", "05");
}
param.put("BUSINESSTYPE", "06");
param.put("FlowUnid", FlowUnid);
map.clear();
map.put("PROJ_TYPE", LEAS_FORM);
map.put("VOUCHER_NO", VOUCHERNO);
BizObject vouch=DataOperatorUtil.getSingleJBO(LV_VOUCHER_CONFIG.CLASS_NAME, map, Sqlca);
if(vouch!=null){
vs.createVoucher(vouch.getAttribute("MODULAR_NUMBER").getString(), vouch.getAttribute("OWNED_COMPANY").getString(), LEAS_FORM, VOUCHER_TYPE, userid,param, Sqlca);
}
}
if(Sqlca!=null){
Sqlca.commit();
}
String sMessage="true";
return sMessage;
}
}

View File

@ -0,0 +1,168 @@
package com.tenwa.voucher.CreateVoucherProcess;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import jbo.voucher.LV_VOUCHER_CONFIG;
import com.amarsoft.app.util.ProductParamUtil;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.awe.util.Transaction;
import com.amarsoft.dict.als.cache.CacheLoaderFactory;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
import com.tenwa.flow.baseBussion.BaseBussiness;
import com.tenwa.voucher.serviceImp.CreateVoucherServiceImpl;
/**
* 传统实际付款后生成凭证
* @author xiezhiwen
*/
public class CreateVoucherActualPaymentTradition extends BaseBussiness{
public String CreateVoucher(String FlowUnid,String VOUCHERNO) throws Exception {
// 创建事物
Transaction Sqlca =null;
Sqlca = Transaction.createTransaction(CacheLoaderFactory.getDataSource());
Map<String,String> map=new HashMap<String, String>();
Map<String,String> param=new HashMap<String, String>();
// 定义全局对象
String EQUIP_AMT=null; // 设备款
String EQUIP_AMT_NOTAX=null; // 设备款(不含税)
String EQUIP_AMT_TAX=null; // 设备款(税金)
String FIRST_PAYMENT=null; // 首付款
String HANDLING_CHARGE_MONEY=null; // 手续费
String HANDLING_CHARGE_MONEY_NOTAX=null;// 不含税手续费
String HANDLING_CHARGE_MONEY_TAX=null; // 手续费税金
String CAUTION_MONEY=null; // 保证金
String OTHER_MONEY=null; // 其它金额
String OTHER_MONEY_NOTAX=null; // 其它金额(不含税)
String OTHER_MONEY_TAX=null; // 其它金额(税金)
String ACCOUNT_DATE=null; // 会计日期
String FACT_DATE=null; // 实际付款日期
String CONTRACT_ID=null; // 合同id
String CONTRACT_NUMBER=null; // 合同编号
String PROJECT_NAME=null; // 项目名称
String LEAS_FORM=null; // 项目类别
String DISTRIBUTOR_ID=null; // 经销商编号
String DISTRIBUTOR_NAME=null; // 经销商名称
String CUSTOMERID=null; // 客户编号
String CUSTOMERNAME=null; // 客户名称
String CUSTOMERTYPE=null; // 客户类别
String BUSINESSTYPE=null; // 业务类型
String ACC_NUMBER=null; // 银行账号
String PRODUCT_ID=null; // 产品编号
String sql="";
sql="SELECT LCCT.EQUIP_AMT,ROUND(LCCT.EQUIP_AMT/getTax(LCI.LEAS_FORM,'本金',LCI.INPUTTIME),2) AS EQUIP_AMT_NOTAX,(LCCT.EQUIP_AMT-ROUND(LCCT.EQUIP_AMT/getTax(LCI.LEAS_FORM,'本金',LCI.INPUTTIME),2)) AS EQUIP_AMT_TAX,LCCT.FIRST_PAYMENT,LCCT.HANDLING_CHARGE_MONEY,ROUND(LCCT.HANDLING_CHARGE_MONEY/ getTax(LCI.LEAS_FORM,'手续费',LCI.INPUTTIME),2) AS HANDLING_CHARGE_MONEY_NOTAX,(LCCT.HANDLING_CHARGE_MONEY - ROUND(LCCT.HANDLING_CHARGE_MONEY/ getTax(LCI.LEAS_FORM,'手续费',LCI.INPUTTIME),2)) AS HANDLING_CHARGE_MONEY_TAX,IFNULL(LCCT.CAUTION_MONEY, 0) AS CAUTION_MONEY,LCCT.OTHER_MONEY,ROUND(LCCT.OTHER_MONEY/getTax(LCI.LEAS_FORM,'本金',LCI.INPUTTIME),2) AS OTHER_MONEY_NOTAX,(LCCT.OTHER_MONEY - ROUND(LCCT.OTHER_MONEY/getTax(LCI.LEAS_FORM,'本金',LCI.INPUTTIME),2)) AS OTHER_MONEY_TAX,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS FACT_DATE,LCCT.CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING AS DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE,lfit.ACC_NUMBER,LPDI.PRODUCT_ID FROM LC_CALC_CONDITION LCCT INNER JOIN (SELECT contract_id,FLOWUNID,MIN(ACC_NUMBER) ACC_NUMBER FROM lc_fund_income_temp WHERE fee_type = 'feetype10' GROUP BY contract_id,FLOWUNID) lfit ON lfit.contract_id = lcct.contract_id LEFT JOIN LB_CONTRACT_INFO LCI ON LCI.ID = lfit.CONTRACT_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 LB_PRODUCT_INFO LPDI ON LPDI.PRODUCT_ID=LPI.PRODUCT_ID WHERE LCI.BUSINESSTYPE='2' AND lfit.FLOWUNID = :FLOWUNID ";
param.clear();
map.put("FLOWUNID", FlowUnid);
// 查询sql, 将结果集封装到map中
List<Map<String,String>> dataList=DataOperatorUtil.getDataBySql(Sqlca, sql, map);
// 创建生成凭证的类对象
CreateVoucherServiceImpl vs=new CreateVoucherServiceImpl();
// 设置常用参数
String VOUCHER_TYPE="1"; // 凭证分类 金蝶
String userid ="admin";
for (int i=0;i<dataList.size();i++){
EQUIP_AMT=dataList.get(i).get("EQUIP_AMT").toString();// 设备款
EQUIP_AMT_NOTAX=dataList.get(i).get("EQUIP_AMT_NOTAX").toString();// 设备款(不含税)
EQUIP_AMT_TAX=dataList.get(i).get("EQUIP_AMT_TAX").toString();// 设备款(税金)
FIRST_PAYMENT=dataList.get(i).get("FIRST_PAYMENT").toString();// 首付款
HANDLING_CHARGE_MONEY=dataList.get(i).get("HANDLING_CHARGE_MONEY").toString();// 手续费
HANDLING_CHARGE_MONEY_NOTAX=dataList.get(i).get("HANDLING_CHARGE_MONEY_NOTAX").toString();// 不含税手续费
HANDLING_CHARGE_MONEY_TAX=dataList.get(i).get("HANDLING_CHARGE_MONEY_TAX").toString();// 手续费税金
CAUTION_MONEY=dataList.get(i).get("CAUTION_MONEY").toString();// 保证金
OTHER_MONEY=dataList.get(i).get("OTHER_MONEY").toString();// 其他金额
OTHER_MONEY_NOTAX=dataList.get(i).get("OTHER_MONEY_NOTAX").toString();// 其他金额(不含税)
OTHER_MONEY_TAX=dataList.get(i).get("OTHER_MONEY_TAX").toString();// 其他金额(税金)
ACCOUNT_DATE=dataList.get(i).get("ACCOUNT_DATE").toString();// 会计日期
FACT_DATE=dataList.get(i).get("FACT_DATE").toString();// 实际付款日期
CONTRACT_ID=dataList.get(i).get("CONTRACT_ID").toString();// 合同id
CONTRACT_NUMBER=dataList.get(i).get("CONTRACT_NUMBER").toString();// 合同编号
PROJECT_NAME=dataList.get(i).get("PROJECT_NAME").toString();// 项目名称
LEAS_FORM=dataList.get(i).get("LEAS_FORM").toString();// 项目类别
DISTRIBUTOR_ID=dataList.get(i).get("DISTRIBUTOR_ID").toString();// 经销商编号
DISTRIBUTOR_NAME=dataList.get(i).get("DISTRIBUTOR_NAME").toString();// 经销商名称
CUSTOMERID=dataList.get(i).get("CUSTOMERID").toString();// 客户编号
CUSTOMERNAME=dataList.get(i).get("CUSTOMERNAME").toString();// 客户名称
CUSTOMERTYPE=dataList.get(i).get("CUSTOMERTYPE").toString();// 客户类别
BUSINESSTYPE=dataList.get(i).get("BUSINESSTYPE").toString();// 业务类型
ACC_NUMBER=dataList.get(i).get("ACC_NUMBER").toString();// 银行账号
PRODUCT_ID=dataList.get(i).get("PRODUCT_ID").toString();// 产品编号
String YesOrNo= ProductParamUtil.getProductParameterValue(PRODUCT_ID, "PRD0315", "CAUTION_MONEY", "isBalance");
if("PZ2018092500000161".equals(VOUCHERNO) || "PZ2018092600000225".equals(VOUCHERNO)) {
if("yes".equals(YesOrNo)) {
EQUIP_AMT="0.00"; // 设备款
EQUIP_AMT_NOTAX="0.00"; // 设备款(不含税)
EQUIP_AMT_TAX="0.00"; // 设备款(税金)
FIRST_PAYMENT="0.00"; // 首付款
HANDLING_CHARGE_MONEY="0.00"; // 手续费
HANDLING_CHARGE_MONEY_NOTAX="0.00"; // 不含税手续费
HANDLING_CHARGE_MONEY_TAX="0.00"; // 手续费税金
CAUTION_MONEY="0.00"; // 保证金
OTHER_MONEY="0.00"; // 其它金额
OTHER_MONEY_NOTAX="0.00"; // 其它金额(不含税)
OTHER_MONEY_TAX="0.00"; // 其它金额(税金)
}
}
// 将数据封装到定义好的map集合中
param.put("EQUIP_AMT",EQUIP_AMT);
param.put("EQUIP_AMT_NOTAX",EQUIP_AMT_NOTAX);
param.put("EQUIP_AMT_TAX",EQUIP_AMT_TAX);
param.put("FIRST_PAYMENT",FIRST_PAYMENT);
param.put("HANDLING_CHARGE_MONEY",HANDLING_CHARGE_MONEY);
param.put("HANDLING_CHARGE_MONEY_NOTAX",HANDLING_CHARGE_MONEY_NOTAX);
param.put("HANDLING_CHARGE_MONEY_TAX",HANDLING_CHARGE_MONEY_TAX);
param.put("CAUTION_MONEY",CAUTION_MONEY);
param.put("OTHER_MONEY",OTHER_MONEY);
param.put("OTHER_MONEY_NOTAX",OTHER_MONEY_NOTAX);
param.put("OTHER_MONEY_TAX",OTHER_MONEY_TAX);
param.put("ACCOUNT_DATE",ACCOUNT_DATE);
param.put("FACT_DATE",FACT_DATE);
param.put("CONTRACT_ID",CONTRACT_ID);
param.put("CONTRACT_NUMBER",CONTRACT_NUMBER);
param.put("PROJECT_NAME",PROJECT_NAME);
param.put("LEAS_FORM",LEAS_FORM);
param.put("DISTRIBUTOR_ID",DISTRIBUTOR_ID);
param.put("DISTRIBUTOR_NAME",DISTRIBUTOR_NAME);
param.put("CUSTID",CUSTOMERID);
param.put("CUSTNAME",CUSTOMERNAME);
param.put("CUSTOMERTYPE",CUSTOMERTYPE);
param.put("BUSINESSTYPE",BUSINESSTYPE);
param.put("ACC_NUMBER",ACC_NUMBER);
param.put("PRODUCT_ID",PRODUCT_ID);
param.put("VOUCHERNO",VOUCHERNO);
// 判断传统类型
if("2".equals(BUSINESSTYPE)){
// 融资租赁资产
param.put("LEASFORMASSET", "02/03/05/06");
// 业务一部
param.put("DEPT", "01");
// 传统融资租赁收入
param.put("LEASINCOMEFORM", "06");
}
param.put("BUSINESSTYPE", "06");
param.put("FlowUnid", FlowUnid);
map.clear();
map.put("PROJ_TYPE", LEAS_FORM);
map.put("VOUCHER_NO", VOUCHERNO);
BizObject vouch=DataOperatorUtil.getSingleJBO(LV_VOUCHER_CONFIG.CLASS_NAME, map, Sqlca);
if(vouch!=null){
vs.createVoucher(vouch.getAttribute("MODULAR_NUMBER").getString(), vouch.getAttribute("OWNED_COMPANY").getString(), LEAS_FORM, VOUCHER_TYPE, userid,param, Sqlca);
}
}
if(Sqlca!=null){
Sqlca.commit();
}
String sMessage="true";
return sMessage;
}
}

View File

@ -0,0 +1,39 @@
package com.tenwa.voucher.CreateVoucherProcess.CreateVoucherMethodSettle;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.flow.baseBussion.BaseBussiness;
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherActualPaymentCarTradition;
/**
* 实际付款流程生成凭证(汽车传统)
* @author xiezhiwen
*/
public class ContractActualPaymentCarTraditionVoucher extends BaseBussiness {
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
String FlowUnid=this.getAttribute("FlowUnid").toString();
CreateVoucherActualPaymentCarTradition cvap = new CreateVoucherActualPaymentCarTradition();
// 差额放款和非差额放款共有部分
cvap.CreateVoucher(FlowUnid, "PZ2018092500000196"); // 购置融资租赁资产-汽车--回租
cvap.CreateVoucher(FlowUnid, "PZ2018092600000234"); // 购置融资租赁资产-汽车--直租
cvap.CreateVoucher(FlowUnid, "PZ2018092500000197"); // 购置融资租赁资产-其他--回租
cvap.CreateVoucher(FlowUnid, "PZ2018092600000235"); // 购置融资租赁资产-其他--直租
// 非差额放款部分
cvap.CreateVoucher(FlowUnid, "PZ2018092500000198"); // 给经销商放款-非差额放款--回租
cvap.CreateVoucher(FlowUnid, "PZ2018092600000236"); // 给经销商放款-非差额放款--直租
// 差额放款部分
cvap.CreateVoucher(FlowUnid, "PZ2018092500000200"); // 经销商支付的预付款(首付)--回租
cvap.CreateVoucher(FlowUnid, "PZ2018092600000237"); // 经销商支付的预付款(首付)--直租
cvap.CreateVoucher(FlowUnid, "PZ2018092500000201"); // 给经销商放款-首付冲抵--回租
cvap.CreateVoucher(FlowUnid, "PZ2018092600000238"); // 给经销商放款-首付冲抵--直租
cvap.CreateVoucher(FlowUnid, "PZ2018092500000199"); // 给经销商放款-差额放款--回租
cvap.CreateVoucher(FlowUnid, "PZ2018092600000239"); // 给经销商放款-差额放款--直租
return "true";
}
}

View File

@ -0,0 +1,51 @@
package com.tenwa.voucher.CreateVoucherProcess.CreateVoucherMethodSettle;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.flow.baseBussion.BaseBussiness;
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherActualPaymentTradition;
/**
* 实际付款流程生成凭证(传统)
* @author xiezhiwen
*/
public class ContractActualPaymentTraditionVoucher extends BaseBussiness {
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
String FlowUnid=this.getAttribute("FlowUnid").toString();
CreateVoucherActualPaymentTradition cvap = new CreateVoucherActualPaymentTradition();
// 差额放款和非差额放款共有部分
cvap.CreateVoucher(FlowUnid, "PZ2018092500000159"); // 购置融资租赁资产-传统租赁资产--回租
cvap.CreateVoucher(FlowUnid, "PZ2018092600000223"); // 购置融资租赁资产-传统租赁资产--直租
cvap.CreateVoucher(FlowUnid, "PZ2018092500000160"); // 购置融资租赁资产-其他--回租
cvap.CreateVoucher(FlowUnid, "PZ2018092600000224"); // 购置融资租赁资产-其他--直租
// 非差额放款部分
cvap.CreateVoucher(FlowUnid, "PZ2018092500000161"); // 给经销商放款-非差额放款--回租
cvap.CreateVoucher(FlowUnid, "PZ2018092600000225"); // 给经销商放款-非差额放款--直租
// 差额放款部分
cvap.CreateVoucher(FlowUnid, "PZ2018092500000162"); // 经销商支付的预付款(首付)--回租
cvap.CreateVoucher(FlowUnid, "PZ2018092600000226"); // 经销商支付的预付款(首付)--直租
cvap.CreateVoucher(FlowUnid, "PZ2018092500000163"); // 给经销商放款-首付冲抵--回租
cvap.CreateVoucher(FlowUnid, "PZ2018092600000227"); // 给经销商放款-首付冲抵--直租
cvap.CreateVoucher(FlowUnid, "PZ2018092500000164"); // 客户记录保证金--回租
cvap.CreateVoucher(FlowUnid, "PZ2018092600000229"); // 客户记录保证金--直租
cvap.CreateVoucher(FlowUnid, "PZ2018092500000165"); // 给经销商放款-保证金冲抵--回租
cvap.CreateVoucher(FlowUnid, "PZ2018092600000230"); // 给经销商放款-保证金冲抵--直租
cvap.CreateVoucher(FlowUnid, "PZ2018092500000166"); // 收到客户手续费--回租
cvap.CreateVoucher(FlowUnid, "PZ2018092600000231"); // 收到客户手续费--直租
cvap.CreateVoucher(FlowUnid, "PZ2018092500000167"); // 给经销商放款-手续费冲抵--回租
cvap.CreateVoucher(FlowUnid, "PZ2018092600000232"); // 给经销商放款-手续费冲抵--直租
cvap.CreateVoucher(FlowUnid, "PZ2018092500000169"); // 给经销商放款-差额放款--回租
cvap.CreateVoucher(FlowUnid, "PZ2018092600000233"); // 给经销商放款-差额放款--直租
return "true";
}
}

View File

@ -12,16 +12,29 @@ public class ContractBeforeOnhireToVoucher extends BaseBussiness {
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
String FlowUnid=this.getAttribute("FlowUnid").toString();
CreateVoucherToBeforeOnhire cvbo=new CreateVoucherToBeforeOnhire();
CreateVoucherToBeforeOnhire cvbo = new CreateVoucherToBeforeOnhire();
// 传统
cvbo.CreateVoucher(FlowUnid, "PZ2018092500000156","feetype2"); // 收到客户保证金--回租
cvbo.CreateVoucher(FlowUnid, "PZ2018092600000244","feetype2"); // 收到客户保证金--直租
cvbo.CreateVoucher(FlowUnid, "PZ2018092500000157","feetype1"); // 收到客户手续费--回租
cvbo.CreateVoucher(FlowUnid, "PZ2018092600000245","feetype1"); // 收到客户手续费--直租
cvbo.CreateVoucher(FlowUnid, "PZ2018092500000158","feetype5"); // 收到客户预付款(首付)--回租
cvbo.CreateVoucher(FlowUnid, "PZ2018092600000246","feetype5"); // 收到客户预付款(首付)--直租
// 汽车类传统
cvbo.CreateVoucher(FlowUnid, "PZ2018092500000192","feetype2"); // 收到客户记录保证金--回租
cvbo.CreateVoucher(FlowUnid, "PZ2018092600000240","feetype2"); // 收到客户记录保证金--直租
cvbo.CreateVoucher(FlowUnid, "PZ2018092500000193","feetype1"); // 收到客户手续费--回租
cvbo.CreateVoucher(FlowUnid, "PZ2018092600000241","feetype1"); // 收到客户手续费--直租
cvbo.CreateVoucher(FlowUnid, "PZ2018092500000194","feetype5"); // 收到客户预付款(首付)--回租
cvbo.CreateVoucher(FlowUnid, "PZ2018092600000242","feetype5"); // 收到客户预付款(首付)--直租
cvbo.CreateVoucher(FlowUnid, "PZ2018092500000195","feetype24");// 记录GPS安装服务费不参融--回租
cvbo.CreateVoucher(FlowUnid, "PZ2018092600000243","feetype24");// 记录GPS安装服务费不参融--直租
return "true";
}
}

View File

@ -8,7 +8,7 @@ import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherLoanDistributor;
import com.tenwa.voucher.CreateVoucherProcess.CreateVoucherToCommission;
import com.tenwa.voucher.service.VoucherJavaParamService;
/**
* 起租相关凭证, 实际付款(汽车)流程借宿后生成
* 起租相关凭证, 实际付款(汽车)流程结束后生成
* @author xiezhiwen
*/
public class ContractOnhireVoucher extends BaseBussiness {

View File

@ -30,13 +30,11 @@ public class CreateVoucherToBeforeOnhire extends BaseBussiness {
String CONTRACT_ID = null;
String CONTRACT_NUMBER = null;
String PROJECT_NAME = null;
String leas_form = null;
String LEAS_FORM = null;
String DISTRIBUTOR_ID = null;
String DISTRIBUTOR_NAME = null;
String CARID = null;
String CARMODEL = null;
String CUSTID = null;
String CUSTNAME = null;
String CUSTOMERID = null;
String CUSTOMERNAME = null;
String CUSTOMERTYPE = null;
String BUSINESSTYPE = null;
String ACC_NUM = null;
@ -54,9 +52,9 @@ public class CreateVoucherToBeforeOnhire extends BaseBussiness {
}
// 传统
if("PZ2018092500000156".equals(VOUCHERNO) || "PZ2018092500000157".equals(VOUCHERNO) || "PZ2018092500000158".equals(VOUCHERNO)) {
sql = "SELECT LFIT.FACT_MONEY AS MONEY,ROUND(LFIT.FACT_MONEY / getTax (LCI.LEAS_FORM,'"+tax_type+"',LCI.INPUTTIME),2) AS MONEYNOTAX,(LFIT.FACT_MONEY - ROUND(LFIT.FACT_MONEY / getTax (LCI.LEAS_FORM,'±¾½ð',LCI.INPUTTIME),2)) AS MONEYTAX,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS FACT_DATE,LFIT.CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,LEC.ID AS CARID,LEC.MODEL,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE,LFIT.ACC_NUMBER FROM LC_FUND_INCOME_TEMP LFIT LEFT JOIN LB_CONTRACT_INFO LCI ON LFIT.CONTRACT_ID = LCI.ID LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO = LCI.DISTRIBUTOR_ID LEFT JOIN LB_EQUIPMENT_CAR LEC ON LEC.CONTRACT_ID = LCI.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 LFIT.FEE_TYPE = :FEE_TYPE AND LCI.BUSINESSTYPE='2' AND LFIT.FLOWUNID = :FLOWUNID ";
sql = "SELECT LFIT.FACT_MONEY AS MONEY,ROUND(LFIT.FACT_MONEY / getTax (LCI.LEAS_FORM,'"+tax_type+"',LCI.INPUTTIME),2) AS MONEYNOTAX,(LFIT.FACT_MONEY - ROUND(LFIT.FACT_MONEY / getTax (LCI.LEAS_FORM,'"+tax_type+"',LCI.INPUTTIME),2)) AS MONEYTAX,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS FACT_DATE,LFIT.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,LFIT.ACC_NUMBER FROM LC_FUND_INCOME_TEMP LFIT LEFT JOIN LB_CONTRACT_INFO LCI ON LFIT.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 LFIT.FEE_TYPE = :FEE_TYPE AND LCI.BUSINESSTYPE='2' AND LFIT.FLOWUNID = :FLOWUNID ";
}else {// 汽车类传统
sql = "SELECT LFIT.FACT_MONEY AS MONEY,ROUND(LFIT.FACT_MONEY / getTax (LCI.LEAS_FORM,'"+tax_type+"',LCI.INPUTTIME),2) AS MONEYNOTAX,(LFIT.FACT_MONEY - ROUND(LFIT.FACT_MONEY / getTax (LCI.LEAS_FORM,'±¾½ð',LCI.INPUTTIME),2)) AS MONEYTAX,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS FACT_DATE,LFIT.CONTRACT_ID,LCI.CONTRACT_NUMBER,LCI.PROJECT_NAME,LCI.LEAS_FORM,DI.DISTRIBUTOR_CODING DISTRIBUTOR_ID,DI.DISTRIBUTOR_NAME,LEC.ID AS CARID,LEC.MODEL,CIF.CUSTOMER_NUM AS CUSTOMERID,CIF.CUSTOMERNAME,CIF.CUSTOMERTYPE,LPI.BUSINESSTYPE,LFIT.ACC_NUMBER FROM LC_FUND_INCOME_TEMP LFIT LEFT JOIN LB_CONTRACT_INFO LCI ON LFIT.CONTRACT_ID = LCI.ID LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO = LCI.DISTRIBUTOR_ID LEFT JOIN LB_EQUIPMENT_CAR LEC ON LEC.CONTRACT_ID = LCI.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 LFIT.FEE_TYPE = :FEE_TYPE AND LCI.BUSINESSTYPE='3' AND LFIT.FLOWUNID = :FLOWUNID ";
sql = "SELECT LFIT.FACT_MONEY AS MONEY,ROUND(LFIT.FACT_MONEY / getTax (LCI.LEAS_FORM,'"+tax_type+"',LCI.INPUTTIME),2) AS MONEYNOTAX,(LFIT.FACT_MONEY - ROUND(LFIT.FACT_MONEY / getTax (LCI.LEAS_FORM,'"+tax_type+"',LCI.INPUTTIME),2)) AS MONEYTAX,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS ACCOUNT_DATE,DATE_FORMAT(SYSDATE(), '%Y/%m/%d') AS FACT_DATE,LFIT.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,LFIT.ACC_NUMBER FROM LC_FUND_INCOME_TEMP LFIT LEFT JOIN LB_CONTRACT_INFO LCI ON LFIT.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 LFIT.FEE_TYPE = :FEE_TYPE AND LCI.BUSINESSTYPE='3' AND LFIT.FLOWUNID = :FLOWUNID ";
}
if("feetype24".equals(fee_type)) {
@ -81,13 +79,11 @@ public class CreateVoucherToBeforeOnhire extends BaseBussiness {
CONTRACT_ID = dataList.get(i).get("CONTRACT_ID").toString();
CONTRACT_NUMBER = dataList.get(i).get("CONTRACT_NUMBER").toString();
PROJECT_NAME = dataList.get(i).get("PROJECT_NAME").toString();
leas_form = dataList.get(i).get("LEAS_FORM").toString();
LEAS_FORM = dataList.get(i).get("LEAS_FORM").toString();
DISTRIBUTOR_ID = dataList.get(i).get("DISTRIBUTOR_ID");
DISTRIBUTOR_NAME = dataList.get(i).get("DISTRIBUTOR_NAME");
CARID = dataList.get(i).get("CARID");
CARMODEL = dataList.get(i).get("MODEL");
CUSTID = dataList.get(i).get("CUSTOMERID");
CUSTNAME = dataList.get(i).get("CUSTOMERNAME");
CUSTOMERID = dataList.get(i).get("CUSTOMERID");
CUSTOMERNAME = dataList.get(i).get("CUSTOMERNAME");
CUSTOMERTYPE = dataList.get(i).get("CUSTOMERTYPE");
BUSINESSTYPE = dataList.get(i).get("BUSINESSTYPE");
ACC_NUM = dataList.get(i).get("ACC_NUMBER");
@ -100,13 +96,11 @@ public class CreateVoucherToBeforeOnhire extends BaseBussiness {
param.put("CONTRACT_ID", CONTRACT_ID);
param.put("CONTRACT_NUMBER", CONTRACT_NUMBER);
param.put("PROJECT_NAME", PROJECT_NAME);
param.put("LEAS_FORM", leas_form);
param.put("LEAS_FORM", LEAS_FORM);
param.put("DISTRIBUTOR_ID", DISTRIBUTOR_ID);
param.put("DISTRIBUTOR_NAME", DISTRIBUTOR_NAME);
param.put("CARID", CARID);
param.put("CARMODEL", CARMODEL);
param.put("CUSTID", CUSTID);
param.put("CUSTNAME", CUSTNAME);
param.put("CUSTID", CUSTOMERID);
param.put("CUSTNAME", CUSTOMERNAME);
param.put("CUSTOMERTYPE", CUSTOMERTYPE);
param.put("BUSINESSTYPE", BUSINESSTYPE);
param.put("ACC_NUMBER", ACC_NUM);
@ -116,14 +110,14 @@ public class CreateVoucherToBeforeOnhire extends BaseBussiness {
// 融资租赁资产
param.put("LEASFORMASSET", "02/03/05/06");
// 部门,业务二部
param.put("DEPT", "02");
param.put("DEPT", "01");
// 传统融资租赁收入
param.put("LEASINCOMEFORM", "06");
}else if("3".equals(BUSINESSTYPE)){
// 融资租赁资产
param.put("LEASFORMASSET", "04");
// 部门,业务二部
param.put("DEPT", "02");
param.put("DEPT", "01");
// 汽车类传统融资租赁收入
param.put("LEASINCOMEFORM", "05");
}
@ -132,14 +126,14 @@ public class CreateVoucherToBeforeOnhire extends BaseBussiness {
param.put("BUSINESSTYPE", "06");
param.put("FlowUnid", FlowUnid);
map.clear();
map.put("PROJ_TYPE", leas_form);
map.put("PROJ_TYPE", LEAS_FORM);
map.put("VOUCHER_NO", VOUCHERNO);
// 根据map中的参数, 查询LV_VOUCHER_CONFIG表数据
BizObject vouch = DataOperatorUtil.getSingleJBO(LV_VOUCHER_CONFIG.CLASS_NAME, map, Sqlca);
// 如果结果不为空,
if (vouch != null) {
//将创建凭证的参数传入在下一层
vs.createVoucher(vouch.getAttribute("MODULAR_NUMBER").getString(),vouch.getAttribute("OWNED_COMPANY").getString(), leas_form, VOUCHER_TYPE, userid, param,Sqlca);
vs.createVoucher(vouch.getAttribute("MODULAR_NUMBER").getString(),vouch.getAttribute("OWNED_COMPANY").getString(), LEAS_FORM, VOUCHER_TYPE, userid, param,Sqlca);
}
}
}

View File

@ -0,0 +1,22 @@
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;
/**
* »ñÈ¡±£Ö¤½ð
* @author xiezhiwen
*/
public class ContractGetMoneyToCautionMoney implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// »ñÈ¡±£Ö¤½ð
String CAUTION_MONEY=param.get("CAUTION_MONEY")==null?"0.00":param.get("CAUTION_MONEY");
returnValue.put("MONEY",CAUTION_MONEY);
return returnValue;
}
}

View File

@ -0,0 +1,22 @@
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;
/**
* »ñÈ¡É豸¿î
* @author xiezhiwen
*/
public class ContractGetMoneyToEquip implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// »ñÈ¡É豸¿î
String EQUIP_AMT=param.get("EQUIP_AMT")==null?"0.00":param.get("EQUIP_AMT");
returnValue.put("MONEY",EQUIP_AMT);
return returnValue;
}
}

View File

@ -0,0 +1,22 @@
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;
/**
* 设备+保险+其他
* @author xiezhiwen
*/
public class ContractGetMoneyToEquipAddInsuranceAddOther implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// 获取设备款
String EQUIP_INSURACE_PREMIUM_OTHER=param.get("EQUIP_INSURACE_PREMIUM_OTHER")==null?"0.00":param.get("EQUIP_INSURACE_PREMIUM_OTHER");
returnValue.put("MONEY",EQUIP_INSURACE_PREMIUM_OTHER);
return returnValue;
}
}

View File

@ -0,0 +1,22 @@
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;
/**
* <EFBFBD>+괏麴+페儉-看마운
* @author xiezhiwen
*/
public class ContractGetMoneyToEquipAddInsuranceAddOtherSubFirst implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// 삿혤<EFBFBD>구운
String OTHERSMONEY=param.get("OTHERSMONEY")==null?"0.00":param.get("OTHERSMONEY");
returnValue.put("MONEY",OTHERSMONEY);
return returnValue;
}
}

View File

@ -0,0 +1,28 @@
package com.tenwa.voucher.CreateVoucherProcess.VoucherGetMoneyForTradition;
import java.math.BigDecimal;
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;
/**
* 设备款+其他金额
* @author xiezhiwen
*/
public class ContractGetMoneyToEquipAddOthers implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// 获取设备款
String EQUIP_AMT=param.get("EQUIP_AMT")==null?"0.00":param.get("EQUIP_AMT");
// 获取其它金额
String OTHER_MONEY=param.get("OTHER_MONEY")==null?"0.00":param.get("OTHER_MONEY");
// 其他款项+设备款
BigDecimal FactMoney=new BigDecimal(EQUIP_AMT).add(new BigDecimal(OTHER_MONEY));
returnValue.put("MONEY",FactMoney.toString());
return returnValue;
}
}

View File

@ -0,0 +1,22 @@
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;
/**
* 获取设备款(不含税)
* @author xiezhiwen
*/
public class ContractGetMoneyToEquipNoTax implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// 获取设备款
String EQUIP_AMT_NOTAX=param.get("EQUIP_AMT_NOTAX")==null?"0.00":param.get("EQUIP_AMT_NOTAX");
returnValue.put("MONEY",EQUIP_AMT_NOTAX);
return returnValue;
}
}

View File

@ -0,0 +1,22 @@
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;
/**
* 获取设备款(税金)
* @author xiezhiwen
*/
public class ContractGetMoneyToEquipTax implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// 获取设备款
String EQUIP_AMT_TAX=param.get("EQUIP_AMT_TAX")==null?"0.00":param.get("EQUIP_AMT_TAX");
returnValue.put("MONEY",EQUIP_AMT_TAX);
return returnValue;
}
}

View File

@ -0,0 +1,22 @@
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;
/**
* »ñÈ¡Ê׸¿î
* @author xiezhiwen
*/
public class ContractGetMoneyToFirstPayment implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// »ñÈ¡Ê׸¿î
String FIRST_PAYMENT=param.get("FIRST_PAYMENT")==null?"0.00":param.get("FIRST_PAYMENT");
returnValue.put("MONEY",FIRST_PAYMENT);
return returnValue;
}
}

View File

@ -0,0 +1,22 @@
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;
/**
* 首付款(不含税)
* @author xiezhiwen
*/
public class ContractGetMoneyToFirstPaymentNoTax implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// 首付款(不含税)
String FIRST_PAYMENT_NOTAX=param.get("FIRST_PAYMENT_NOTAX")==null?"0.00":param.get("FIRST_PAYMENT_NOTAX");
returnValue.put("MONEY",FIRST_PAYMENT_NOTAX);
return returnValue;
}
}

View File

@ -0,0 +1,22 @@
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;
/**
* Ê׸¿î(˰½ð)
* @author xiezhiwen
*/
public class ContractGetMoneyToFirstPaymentTax implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// Ê׸¿î(˰½ð)
String FIRST_PAYMENT_TAX=param.get("FIRST_PAYMENT_TAX")==null?"0.00":param.get("FIRST_PAYMENT_TAX");
returnValue.put("MONEY",FIRST_PAYMENT_TAX);
return returnValue;
}
}

View File

@ -0,0 +1,22 @@
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;
/**
* »ñÈ¡ÊÖÐø·Ñ
* @author xiezhiwen
*/
public class ContractGetMoneyToHandlingCharge implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// »ñÈ¡ÊÖÐø·Ñ
String HANDLING_CHARGE_MONEY=param.get("HANDLING_CHARGE_MONEY")==null?"0.00":param.get("HANDLING_CHARGE_MONEY");
returnValue.put("MONEY",HANDLING_CHARGE_MONEY);
return returnValue;
}
}

View File

@ -0,0 +1,22 @@
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;
/**
* 获取手续费(不含税)
* @author xiezhiwen
*/
public class ContractGetMoneyToHandlingChargeNoTax implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// 获取手续费(不含税)
String HANDLING_CHARGE_MONEY_NOTAX=param.get("HANDLING_CHARGE_MONEY_NOTAX")==null?"0.00":param.get("HANDLING_CHARGE_MONEY_NOTAX");
returnValue.put("MONEY",HANDLING_CHARGE_MONEY_NOTAX);
return returnValue;
}
}

View File

@ -0,0 +1,22 @@
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;
/**
* 获取手续费(税金)
* @author xiezhiwen
*/
public class ContractGetMoneyToHandlingChargeTax implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// 获取手续费(税金)
String HANDLING_CHARGE_MONEY_TAX=param.get("HANDLING_CHARGE_MONEY_TAX")==null?"0.00":param.get("HANDLING_CHARGE_MONEY_TAX");
returnValue.put("MONEY",HANDLING_CHARGE_MONEY_TAX);
return returnValue;
}
}

View File

@ -0,0 +1,22 @@
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;
/**
* ±£ÏÕ+ÆäËû
* @author xiezhiwen
*/
public class ContractGetMoneyToInsuranceAddOther implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// »ñÈ¡É豸¿î
String INSURANCE_PREMIUM_ADD_OTHER=param.get("INSURANCE_PREMIUM_ADD_OTHER")==null?"0.00":param.get("INSURANCE_PREMIUM_ADD_OTHER");
returnValue.put("MONEY",INSURANCE_PREMIUM_ADD_OTHER);
return returnValue;
}
}

View File

@ -0,0 +1,22 @@
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;
/**
* 保险+其他(不含税)
* @author xiezhiwen
*/
public class ContractGetMoneyToInsuranceAddOtherNoTax implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// 获取设备款
String INSURANCE_PREMIUM_ADD_OTHER_NOTAX=param.get("INSURANCE_PREMIUM_ADD_OTHER_NOTAX")==null?"0.00":param.get("INSURANCE_PREMIUM_ADD_OTHER_NOTAX");
returnValue.put("MONEY",INSURANCE_PREMIUM_ADD_OTHER_NOTAX);
return returnValue;
}
}

View File

@ -0,0 +1,22 @@
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;
/**
* ±£ÏÕ+ÆäËû(˰½ð)
* @author xiezhiwen
*/
public class ContractGetMoneyToInsuranceAddOtherTax implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// ±£ÏÕ+ÆäËû(˰½ð)
String INSURANCE_PREMIUM_ADD_OTHER_TAX=param.get("INSURANCE_PREMIUM_ADD_OTHER_TAX")==null?"0.00":param.get("INSURANCE_PREMIUM_ADD_OTHER_TAX");
returnValue.put("MONEY",INSURANCE_PREMIUM_ADD_OTHER_TAX);
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 ContractGetMoneyToMoney implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx,Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
returnValue.put("MONEY",param.get("FACT_MONEY"));
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;
/**
* »ñÈ¡INTERESTNOTAX
* @author xiezhiwen
*/
public class ContractGetMoneyToMoneyNoTax implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx,Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
returnValue.put("MONEY",param.get("INTERESTNOTAX"));
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;
/**
* »ñÈ¡TAX
* @author xiezhiwen
*/
public class ContractGetMoneyToMoneyTax implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx,Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
returnValue.put("MONEY",param.get("TAX"));
return returnValue;
}
}

View File

@ -0,0 +1,23 @@
package com.tenwa.voucher.CreateVoucherProcess.VoucherGetMoneyForTradition;
import java.math.BigDecimal;
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;
/**
* »ñÈ¡ÆäËü½ðî
* @author xiezhiwen
*/
public class ContractGetMoneyToOther implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// »ñÈ¡ÆäËü½ðî
String OTHER_MONEY=param.get("OTHER_MONEY")==null?"0.00":param.get("OTHER_MONEY");
returnValue.put("MONEY",OTHER_MONEY);
return returnValue;
}
}

View File

@ -0,0 +1,22 @@
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;
/**
* 获取其它金额(不含税)
* @author xiezhiwen
*/
public class ContractGetMoneyToOtherNoTax implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// 获取其它金额
String OTHER_MONEY_NOTAX=param.get("OTHER_MONEY_NOTAX")==null?"0.00":param.get("OTHER_MONEY_NOTAX");
returnValue.put("MONEY",OTHER_MONEY_NOTAX);
return returnValue;
}
}

View File

@ -0,0 +1,22 @@
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;
/**
* 获取其它金额(不含税)
* @author xiezhiwen
*/
public class ContractGetMoneyToOtherTax implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// 获取其它金额
String OTHER_MONEY_TAX=param.get("OTHER_MONEY_TAX")==null?"0.00":param.get("OTHER_MONEY_TAX");
returnValue.put("MONEY",OTHER_MONEY_TAX);
return returnValue;
}
}

View File

@ -0,0 +1,34 @@
package com.tenwa.voucher.CreateVoucherProcess.VoucherGetMoneyForTradition;
import java.math.BigDecimal;
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;
/**
* 设备款+其他金额-首付款-手续费-保证金
* @author xiezhiwen
*/
public class ContractGetMoneyToOthersMath implements VoucherJavaParamService{
public Map<String, String> getJavaParam(JBOTransaction tx, Map<String, String> param) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
returnValue.putAll(param);
// 获取设备款
String EQUIP_AMT=param.get("EQUIP_AMT")==null?"0.00":param.get("EQUIP_AMT");
// 获取其它金额
String OTHER_MONEY=param.get("OTHER_MONEY")==null?"0.00":param.get("OTHER_MONEY");
// 获取首付款
String FIRST_PAYMENT=param.get("FIRST_PAYMENT")==null?"0.00":param.get("FIRST_PAYMENT");
// 获取保证金
String CAUTION_MONEY=param.get("CAUTION_MONEY")==null?"0.00":param.get("CAUTION_MONEY");
// 获取手续费
String HANDLING_CHARGE_MONEY=param.get("HANDLING_CHARGE_MONEY")==null?"0.00":param.get("HANDLING_CHARGE_MONEY");
// 其他款项+设备款
BigDecimal FactMoney=new BigDecimal(EQUIP_AMT).add(new BigDecimal(OTHER_MONEY)).subtract(new BigDecimal(FIRST_PAYMENT)).subtract(new BigDecimal(CAUTION_MONEY)).subtract(new BigDecimal(HANDLING_CHARGE_MONEY));
returnValue.put("MONEY",FactMoney.toString());
return returnValue;
}
}

View File

@ -311,13 +311,16 @@ public class CreateVoucherServiceImpl {
}else if("PZ2018082600000149".equals(VOUCHERNO) || "PZ2018082600000150".equals(VOUCHERNO) || "PZ2018070900000003".equals(VOUCHERNO) || "PZ2018080200000065".equals(VOUCHERNO)) {
subData.put("CUSTID",dataTemp.get("DISTRIBUTOR_ID"));//经销商id
subData.put("CUSTNAME",dataTemp.get("DISTRIBUTOR_NAME"));//经销商名称
}else if("PZ2018072100000037".equals(VOUCHERNO)||"PZ2018080400000091".equals(VOUCHERNO) || "PZ2018072100000038".equals(VOUCHERNO)||"PZ2018080400000092".equals(VOUCHERNO)){
}else if("PZ2018072100000037".equals(VOUCHERNO)||"PZ2018080400000091".equals(VOUCHERNO) || "PZ2018072100000038".equals(VOUCHERNO) || "PZ2018080400000092".equals(VOUCHERNO)){
subData.put("CUSTID","APZL00000000DC");//经销商id
subData.put("CUSTNAME","业务系统待查客户");//经销商名称
}else if("PZ2018092500000192".equals(VOUCHERNO)||"PZ2018092500000193".equals(VOUCHERNO) || "PZ2018092500000194".equals(VOUCHERNO)||"PZ2018092500000195".equals(VOUCHERNO)){
}else if("PZ2018092500000192".equals(VOUCHERNO)||"PZ2018092500000193".equals(VOUCHERNO) || "PZ2018092500000194".equals(VOUCHERNO) || "PZ2018092500000195".equals(VOUCHERNO) || "PZ2018092600000240".equals(VOUCHERNO)||"PZ2018092600000241".equals(VOUCHERNO) || "PZ2018092600000242".equals(VOUCHERNO) || "PZ2018092600000243".equals(VOUCHERNO)){
subData.put("CUSTID","APZL00000000DC");//经销商id
subData.put("CUSTNAME","业务系统待查客户");//经销商名称
}else if("PZ2018092500000156".equals(VOUCHERNO)||"PZ2018092500000157".equals(VOUCHERNO) || "PZ2018092500000158".equals(VOUCHERNO)){
}else if("PZ2018092500000164".equals(VOUCHERNO)||"PZ2018092600000229".equals(VOUCHERNO) || "PZ2018092500000166".equals(VOUCHERNO) || "PZ2018092600000231".equals(VOUCHERNO)){
subData.put("CUSTID","APZL00000000DC");//经销商id
subData.put("CUSTNAME","业务系统待查客户");//经销商名称
}else if("PZ2018092500000156".equals(VOUCHERNO)||"PZ2018092500000157".equals(VOUCHERNO) || "PZ2018092500000158".equals(VOUCHERNO) || "PZ2018092600000244".equals(VOUCHERNO)||"PZ2018092600000245".equals(VOUCHERNO) || "PZ2018092600000246".equals(VOUCHERNO)){
subData.put("CUSTID","APZL00000000DC");//经销商id
subData.put("CUSTNAME","业务系统待查客户");//经销商名称
}else {