租金到账凭证新增通过所属公司配置账套及主体

This commit is contained in:
XZW 2020-02-19 14:21:09 +08:00
parent 76f070ed9e
commit c4662a2d6d
2 changed files with 16 additions and 3 deletions

View File

@ -5,6 +5,8 @@ package com.tenwa.voucher.CreateVoucherProcess;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import jbo.com.tenwa.lease.comm.VI_CHARGEBACKVOUCHERTOTAL;
import jbo.voucher.LV_VOUCHER_CONFIG;
import jbo.voucher.TAX_CODE;
@ -27,6 +29,7 @@ public class CreateVoucherForCardSummarizing {
private String OWN_NUMBER; // 银行账号
private String ACC_TITLE; // 银行科目
/**
* 卡扣汇总核销
* @param tx
@ -42,6 +45,9 @@ public class CreateVoucherForCardSummarizing {
if(userid==null || "".equals(userid)) {
userid="admin";
}
Map<String, String> map = new HashMap<String, String>();
map.put("SPARE_BATCH_NO", SPARE_BATCH_NO);
BizObject vc = DataOperatorUtil.getSingleJBO(VI_CHARGEBACKVOUCHERTOTAL.CLASS_NAME, map, Sqlca);
Map<String, String> param = new HashMap<String, String>();
param.put("FACT_MONEY",ACHIEVED_MONEY);
param.put("INTERESTNOTAX",SEREVICE_CHARGE);
@ -57,10 +63,11 @@ public class CreateVoucherForCardSummarizing {
param.put("CUSTNAME","广州银联网络支付有限公司");
param.put("ACC_NUMBER",OWN_NUMBER);
param.put("EBANK_SUBJECTS",ACC_TITLE);
param.put("OWN_NAME",vc.getAttribute("OWN_NAME").getString());
param.put("VOUCHERNO",voucherNo);
param.put("CASHFLOW", "11113");// 现金流项目
Map<String, String> map = new HashMap<String, String>();
map.clear();
map.put("PROJ_TYPE", "02");
map.put("VOUCHER_NO", voucherNo);
CreateVoucherServiceImpl vs = new CreateVoucherServiceImpl();

View File

@ -160,8 +160,14 @@ public class CreateVoucherServiceImpl {
}
}
if(SUBJECTID==null || "".equals(SUBJECTID) || SUBJECTNAME==null || "".equals(SUBJECTNAME)) {
BizObject ZT = JBOFactory.createBizObjectQuery(CODE_LIBRARY.CLASS_NAME,"itemno=:itemno").setParameter("itemno", "aa740e4111c111eaaa0000163e0e11e6").getSingleResult(false);
SUBJECTID = "aa740e4111c111eaaa0000163e0e11e6";
BizObject ZT =null;
if("PZ2018080400000091".equals(VOUCHERNO)) {
String OWN_NAME = param.get("OWN_NAME");
ZT = JBOFactory.createBizObjectQuery(CODE_LIBRARY.CLASS_NAME,"codeno=:codeno and itemname=:itemname").setParameter("codeno", "ManySubject").setParameter("itemname", OWN_NAME).getSingleResult(false);
}else {
ZT = JBOFactory.createBizObjectQuery(CODE_LIBRARY.CLASS_NAME,"itemno=:itemno").setParameter("itemno", "aa740e4111c111eaaa0000163e0e11e6").getSingleResult(false);
}
SUBJECTID = ZT.getAttribute("itemno").getString();
SUBJECTNAME = ZT.getAttribute("itemname").getString();
BizObject BF = JBOFactory.createBizObjectQuery(OWN_INFO.CLASS_NAME,"OWN_NAME=:OWN_NAME").setParameter("OWN_NAME", SUBJECTNAME).getSingleResult(false);
OWN_NUMBER = BF.getAttribute("OWN_NUMBER").getString();