parent
6b009f3797
commit
43ed17df70
|
|
@ -145,16 +145,21 @@ public class SappzFormPlugin extends AbstractFormPlugin {
|
|||
Date date = StrToDate(ZFBDT);
|
||||
this.getModel().setValue("shjh_basedate", date, i);//基准日期,用于到期日计算的基准日期
|
||||
}
|
||||
// this.getModel().setValue("shjh_payee", "供应商", i);//todo:往来类型
|
||||
// this.getModel().setValue("shjh_payeebanknum", it_list.getString("ZWLZH"), i);//todo:往来户名称
|
||||
this.getModel().setValue("shjh_payee", "供应商", i);//往来类型
|
||||
this.getModel().setValue("shjh_payeebanknum", "上海家化销售有限公司", i);//往来户名称
|
||||
String kunnr = it_list.getString("KUNNR");//客户(员工)
|
||||
String lifnr = it_list.getString("LIFNR");//供应商
|
||||
if (StringUtils.isNotEmpty(kunnr)) {
|
||||
this.getModel().setValue("shjh_payee", "客户", i);//往来类型
|
||||
this.getModel().setValue("shjh_payeebanknum", kunnr, i);//往来户名称
|
||||
}else {
|
||||
this.getModel().setValue("shjh_payee", "供应商", i);
|
||||
this.getModel().setValue("shjh_payeebanknum", lifnr, i);//往来户名称
|
||||
}
|
||||
this.getModel().setValue("shjh_description", it_list.getString("BVTYP"), i);//合作银行类型.合作银行类型
|
||||
this.getModel().setValue("shjh_reasoncode", "014", i);//todo:原因码
|
||||
this.getModel().setValue("shjh_classificationoffund", payablevouchernumber, i);//todo:资金计划分类
|
||||
this.getModel().setValue("shjh_secondarydept", it_list.getString("ZREQ_DEPT"), i);//二级部门,需求部门
|
||||
this.getModel().setValue("shjh_procurementeam", it_list.getString("EKGRP"), i);//采购组
|
||||
this.getModel().setValue("shjh_isselfprocurment", it_list.getString("ZZXCG_FLAG"), i);//todo:是否自行采购
|
||||
this.getModel().setValue("shjh_isselfprocurment", it_list.getString("ZZXCG_FLAG"), i);//是否自行采购
|
||||
this.getModel().setValue("shjh_paymentcurrency", it_list.getString("WAERS"), i);//付款币别编号CNY,货币码
|
||||
this.getModel().setValue("shjh_settlementcurrency", it_list.getString("WAERS"), i);//结算币别编号,货币码
|
||||
|
||||
|
|
@ -232,7 +237,7 @@ public class SappzFormPlugin extends AbstractFormPlugin {
|
|||
this.getView().showMessage("同步失败,凭证号:" + fkBillNum + "的往来户为空");
|
||||
return;
|
||||
}
|
||||
QFilter Q3 = new QFilter("name", QCP.equals, asstact);
|
||||
QFilter Q3 = new QFilter("number", QCP.equals, asstact);
|
||||
DynamicObject party = "供应商".equals(asstacttype)
|
||||
? BusinessDataServiceHelper.loadSingle(BD_SUPPLIER, new QFilter[]{Q3})
|
||||
: BusinessDataServiceHelper.loadSingle(BD_CUSTOMER, new QFilter[]{Q3});
|
||||
|
|
|
|||
|
|
@ -412,15 +412,24 @@ public class ApplyAdjustBillControler {
|
|||
if (StringUtils.isNotEmpty(ZFBDT)) {
|
||||
basedate = StrToDate(ZFBDT);//基准日期,用于到期日计算的基准日期
|
||||
}
|
||||
String asstacttype = "供应商";//todo:往来类型
|
||||
String asstact = "上海接口有限公司";//todo:往来户名称
|
||||
String asstacttype = "";//往来类型
|
||||
String asstact = "";//往来户名称
|
||||
String kunnr = it_list.getString("KUNNR");//客户(员工)
|
||||
String lifnr = it_list.getString("LIFNR");//供应商
|
||||
if (StringUtils.isNotEmpty(kunnr)) {
|
||||
asstacttype = "客户";
|
||||
asstact = kunnr;
|
||||
}else {
|
||||
asstacttype = "供应商";
|
||||
asstact = lifnr;
|
||||
}
|
||||
// String assacct = it_list.getString("BVTYP");//合作银行类型.合作银行类型 A
|
||||
String assacct = "A";//合作银行类型.合作银行类型 A
|
||||
String reasoncode = "014";//todo:原因码 014
|
||||
String shjh_classificationoffund = "资金计划分类";//todo:资金计划分类
|
||||
String shjh_secondarydept = it_list.getString("ZREQ_DEPT");//二级部门,需求部门
|
||||
String procurementeam = it_list.getString("EKGRP");//采购组
|
||||
Boolean isselfprocurment = Boolean.valueOf(it_list.getString("ZZXCG_FLAG"));//todo:是否自行采购
|
||||
Boolean isselfprocurment = Boolean.valueOf(it_list.getString("ZZXCG_FLAG"));//是否自行采购
|
||||
String WAERS = it_list.getString("WAERS");
|
||||
if ("RMB".equals(WAERS)) {
|
||||
WAERS = "CNY";
|
||||
|
|
|
|||
Loading…
Reference in New Issue