65.2、WebApi,保存接口,IsAutoSubmitAndAudit,自动提交与审核原创
9人赞赏了该文章
9,927次浏览
编辑于2021年02月20日 17:36:10
IsAutoSubmitAndAudit已经不再推荐使用
https://vip.kingdee.com/article/150907382099723520
续
业务场景:用WebApi,新增采购订单,并自动提交审核
1、修改上一节Json,加上 "IsAutoSubmitAndAudit":true,
{ "Creator": "", "NeedReturnFields": [ "FID", "FBillNo", "FPOOrderEntry.FENTRYID", "FPOOrderEntry.FMaterialID", "FQty" ], "IsAutoSubmitAndAudit":true, "Model": { "FBillTypeID": { "FNUMBER": "CGDD01_SYS" }, "FDate": "2020-07-18", "FSupplierId": { "FNumber": "001" }, "FPurchaseOrgId": { "FNumber": "100" }, "FPOOrderFinance": { "FSettleCurrId": { "FNumber": "PRE001" }, "FEXCHANGETYPEID": { "FNumber": "HLTX01_SYS" }, "FEXCHANGERATE": 1 }, "FPOOrderEntry": [ { "FMaterialId": { "FNumber": "001" }, "FPriceUnitId": { "FNumber": "Pcs" }, "FQty": 300, "FTaxPrice": 10, "FEntryTaxRate": 17 } ] } }
2、返回结果如下图
IsAutoSubmitAndAudit是否自动提交与审核,布尔类型,默认false(非必录)
注(启用此参数,保存,提交和审核是在一个事务中)
3、采购订单,生成后审核状态;
总目录链接
赞 9
9人点赞
还没有人点赞,快来当第一个点赞的人吧!
打赏
0人打赏
还没有人打赏,快来当第一个打赏的人吧!
推荐阅读