推送bip增加判断如果是测试环境,不推送;修改会计编号去掉点号
This commit is contained in:
parent
6c80808102
commit
4de5577200
|
@ -90,6 +90,11 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen
|
||||||
//反审核之前,调用bip接口,如果接口成功则更改标记后继续反审核业务
|
//反审核之前,调用bip接口,如果接口成功则更改标记后继续反审核业务
|
||||||
String eok = e.getOperationKey();
|
String eok = e.getOperationKey();
|
||||||
if("unaudit".equals(eok)){
|
if("unaudit".equals(eok)){
|
||||||
|
String contextUrl = System.getProperty("domain.contextUrl");
|
||||||
|
//如果是测试环境的路径就不触发推送bip
|
||||||
|
if(contextUrl != null && contextUrl.startsWith("http://isctest")){
|
||||||
|
return;
|
||||||
|
}
|
||||||
DynamicObject[] dos = e.getDataEntities();
|
DynamicObject[] dos = e.getDataEntities();
|
||||||
DynamicObject prinfo = null;
|
DynamicObject prinfo = null;
|
||||||
boolean isBipSuccess = false;
|
boolean isBipSuccess = false;
|
||||||
|
@ -133,6 +138,11 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen
|
||||||
//audit审核 syncbip手动同步 两种情况进入如下代码
|
//audit审核 syncbip手动同步 两种情况进入如下代码
|
||||||
String eok = e.getOperationKey();
|
String eok = e.getOperationKey();
|
||||||
if("audit".equals(eok) || "syncbip".equals(eok)){
|
if("audit".equals(eok) || "syncbip".equals(eok)){
|
||||||
|
String contextUrl = System.getProperty("domain.contextUrl");
|
||||||
|
//如果是测试环境的路径就不触发推送bip
|
||||||
|
if(contextUrl != null && contextUrl.startsWith("http://isctest")){
|
||||||
|
return;
|
||||||
|
}
|
||||||
DynamicObject[] dos = e.getDataEntities();
|
DynamicObject[] dos = e.getDataEntities();
|
||||||
DynamicObject prinfo = null;
|
DynamicObject prinfo = null;
|
||||||
boolean isBipSuccess = false;
|
boolean isBipSuccess = false;
|
||||||
|
@ -334,7 +344,8 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen
|
||||||
//集团内部关联公司:22020105\应付账款\往来单位\内部单位(关联方)
|
//集团内部关联公司:22020105\应付账款\往来单位\内部单位(关联方)
|
||||||
//如果费用登记中用户选择了会计科目,则使用该字段编号,否则还使用集团内外 yxl 20241116
|
//如果费用登记中用户选择了会计科目,则使用该字段编号,否则还使用集团内外 yxl 20241116
|
||||||
if(isnotext && payrequestinfo.getDynamicObject("qeug_accountview")!=null){
|
if(isnotext && payrequestinfo.getDynamicObject("qeug_accountview")!=null){
|
||||||
items.put("pk_subjcode",payrequestinfo.getDynamicObject("qeug_accountview").getString("number"));
|
String accountview = payrequestinfo.getDynamicObject("qeug_accountview").getString("number");
|
||||||
|
items.put("pk_subjcode",accountview.replace(".",""));
|
||||||
}else{
|
}else{
|
||||||
String suptype = getSupplierType(supplierid);
|
String suptype = getSupplierType(supplierid);
|
||||||
if("DB01".equals(suptype)){
|
if("DB01".equals(suptype)){
|
||||||
|
|
Loading…
Reference in New Issue