|
悬赏20金币未解决
问题描述:公司U8的采购订单使用了U8的工作流,目前有个需求,希望通过U8API生成的采购订单数据可以跳过U8的审批工作流(已在其他系统做了审批流程),求大佬指导如何解决。
目前情况:
参照U8API资源管理器写了新增采购订单的接口。有这么几个情况
1、采购订单未发布工作流时,通过接口可以创建采购订单成功,也可以直接创建已审核的采购订单
2、采购订单发布工作流后,通过接口可以创建采购订单成功,但是是未提交的状态(给接口传递的数据在下面)。
给接口传递的数据
{
"actionType":"add",
"sBusType":"普通采购",
"cAuditTime":"2021-09-22 10:50:14",
"bPositive":true,
"voucherType":1,
"poMain":{
"cvencode":"V001",
"cbustype":"普通采购",
"ufts":"",
"cPTCode":"01",
"dpodate":"2021-09-22",
"nflat":"1.00",
"pO_Podetails":[
{
"cSource":"app",
"inatsum":"1560.00",
"inattax":"179.47",
"editprop":"A",
"inatunitprice":"230.09",
"cupsocode":"0000000002",
"iordertype":"0",
"ipertaxrate":"13.00",
"bgsp":"0",
"iquantity":"6.000000",
"poid":"",
"isum":"1560.00",
"itax":"179.47",
"iAppIds":"1000000002",
"imoney":"1380.53",
"soType":"0",
"darrivedate":"2021-09-29",
"iunitprice":"260.00",
"ivouchrowno":"1",
"inatmoney":"1380.53",
"cbmemo":"",
"cinvcode":"003"
}
],
"cpoid":"0000000001",
"cmaker":"王超",
"cvenabbname":"测试注册企业",
"cexch_name":"人民币",
"idiscounttaxtype":"0"
},
"cVerifier":"系统管理员",
"cAuditDate":"2021-09-22",
"cappcode":"0000000002",
"iverifystateex":2,
"IsWfControlled":0,
"cState":1,
"sBillType":"",
"login": {
"sSubId": "AS",
"sAccID": "001",
"sUserID": "002",
"sPassword": "1",
"sYear": "2021",
"sDate": "2021-09-16",
"sServer": "192.168.2.199"
}
}
在U8上生成的数据
|
|