65.2、WebApi,保存接口,IsAutoSubmitAndAudit,自动提交与审核原创
金蝶云社区-林荫大道cc身份
林荫大道cc
8人赞赏了该文章 7817次浏览 未经作者许可,禁止转载编辑于2021年02月20日 17:36:10
封面

IsAutoSubmitAndAudit已经不再推荐使用

https://vip.kingdee.com/article/150907382099723520




65.1


业务场景:用WebApi,新增采购订单,并自动提交审核


1、修改上一节Json,加上  "IsAutoSubmitAndAudit":true,


image.png


{
    "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、返回结果如下图


image.png


image.png



 IsAutoSubmitAndAudit是否自动提交与审核,布尔类型,默认false(非必录) 


 注(启用此参数,保存,提交和审核是在一个事务中)



3、采购订单,生成后审核状态;


image.png


总目录链接

https://vip.kingdee.com/article/649938720145912

赞 8