|
本帖最后由 YonJiao 于 2024-1-18 20:38 编辑
该场景使用接口【采购订单单个保存】
入参示例:
- {
- "data": {
- "resubmitCheckKey": "34345",
- "bustype_code": "A20003",//交易类型采购退货
- "currency_code": "CNY",
- "exchRate": 1,
- "exchRateType": "rybentc5",
- "invoiceVendor_code": "0001000016",
- "natCurrency_code": "CNY",
- "org_code": "11",
- "srcBill":1910171157606170630,
- "srcBillNO": "000029",
- "source": "st_purchaseorder",//上游单据采购订单
- "purchaseOrders": [
- {
- "inInvoiceOrg_code": "11",
- "inOrg_code": "11",
- "invExchRate": 1,
- "source": "st_purchaseorder",
- "makeRuleCode": "purchaseOrderToReturnOrder",
- "upcode": "000029",
- "sourceautoid":1910171157606170631,
- "sourceid":1910171157606170630,
- "firstsourceid":1910171157606170630,
- "firstsourceautoid":1910171157606170631,
- "firstsource": "st_purchaseorder",
- "firstupcode": "000029",
- "natMoney": -44.25,
- "natSum": -50,//金额相关为负数
- "natTax": -5.75,
- "natTaxUnitPrice": 10,
- "natUnitPrice": 8.85,
- "oriMoney": -44.25,
- "oriSum": -50,
- "oriTax": -5.75,
- "oriTaxUnitPrice": 10,
- "oriUnitPrice": 8.85,
- "taxitems_code": "VATR1",
- "priceQty": -1,
- "product_cCode": "0000000011",
- "priceUOM_Code": "001003",
- "purUOM_Code": "001003",
- "qty": -1,//数量为负数
- "subQty": -1,
- "unitExchangeTypePrice": 0,
- "unitExchangeType": 0,
- "invPriceExchRate": 1,
- "unit_code": "001003",
- "isGiftProduct": true,
- "_status": "Insert"
- }
- ],
- "_status": "Insert",
- "vendor_code": "0001000016",
- "vouchdate": "2024-01-18 00:00:00"
- }
- }
复制代码
|
本帖子中包含更多资源,您需要 登录 才可以下载或查看,没有帐号?立即注册
X
|