api/consignment/add{
"operation": {
"method": "none"
}
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | code | string | 1 | 可选 | 单据号 |
| 2 | unit_code | unit_code | string | 1 | 可选 | 辅计量单位 |
| 3 | num | num | string | 1 | 可选 | 件数 |
| 4 | date | date | string | 1 | 可选 | 单据日期 |
| 5 | unitrate | unitrate | string | 1 | 可选 | 换算率 |
| 6 | operation_type | operation_type | string | 1 | 必填 | 业务类型 |
| 7 | saletype | saletype | string | 1 | 必填 | 销售类型编码 |
| 8 | saletypename | saletypename | string | 1 | 可选 | 销售类型 |
| 9 | state | state | string | 1 | 可选 | 订单状态 |
| 10 | custcode | custcode | string | 1 | 必填 | 客户编码 |
| 11 | cusname | cusname | string | 1 | 可选 | 客户 |
| 12 | cusabbname | cusabbname | string | 1 | 可选 | 客户简称 |
| 13 | deptcode | deptcode | string | 1 | 必填 | 部门编码 |
| 14 | deptname | deptname | string | 1 | 可选 | 部门名称 |
| 15 | personcode | personcode | string | 1 | 可选 | 人员编码 |
| 16 | personname | personname | string | 1 | 可选 | 人员 |
| 17 | cdeliverunit | cdeliverunit | string | 1 | 可选 | 收货单位 |
| 18 | ccontactname | ccontactname | string | 1 | 可选 | 收货联系人 |
| 19 | cofficephone | cofficephone | string | 1 | 可选 | 收货联系电话 |
| 20 | cmobilephone | cmobilephone | string | 1 | 可选 | 收货联系人手机 |
| 21 | cdeliveradd | cdeliveradd | string | 1 | 可选 | 收货地址 |
| 22 | rowno | rowno | string | 1 | 必填 | 行号 |
| 23 | remark | remark | string | 1 | 可选 | 备注 |
| 24 | maker | maker | string | 1 | 可选 | 制单人 |
| 25 | verifier | verifier | string | 1 | 可选 | 审核人 |
| 26 | closer | closer | string | 1 | 可选 | 关闭人 |
| 27 | entry | entry | array | 1 | 可选 | 分录 |
| 28 | inventory_code | inventory_code | string | 1 | 必填 | 存货编码 |
| 29 | inventory_name | inventory_name | string | 1 | 可选 | 存货名称 |
| 30 | warehouse_code | warehouse_code | string | 1 | 必填 | 仓库编码 |
| 31 | warehouse_name | warehouse_name | string | 1 | 可选 | 仓库名称 |
| 32 | invstd | invstd | string | 1 | 可选 | 存货规格 |
| 33 | ccomunitcode | ccomunitcode | string | 1 | 可选 | 主计量单位编码 |
| 34 | cinvm_unit | cinvm_unit | string | 1 | 可选 | 主计量单位 |
| 35 | quantity | quantity | string | 1 | 必填 | 数量 |
| 36 | price | price | string | 1 | 可选 | 单价,传入会自动重新计算相关价格及金额。如果传入了含税单价,以含税单价为准自动计算。 |
| 37 | quotedprice | quotedprice | string | 1 | 可选 | 报价 |
| 38 | taxprice | taxprice | string | 1 | 可选 | 含税单价,传入会自动重新计算相关价格及金额。 |
| 39 | money | money | string | 1 | 可选 | 无税金额 |
| 40 | sum | sum | string | 1 | 可选 | 价税合计 |
| 41 | taxrate | taxrate | string | 1 | 可选 | 税率 |
| 42 | tax | tax | string | 1 | 可选 | 税额 |
| 43 | natprice | natprice | string | 1 | 可选 | 本币单价 |
| 44 | natmoney | natmoney | string | 1 | 可选 | 本币金额 |
| 45 | nattax | nattax | string | 1 | 可选 | 本币税额 |
| 46 | natsum | natsum | string | 1 | 可选 | 本币价税合计 |
| 47 | discount | discount | string | 1 | 可选 | 折扣额 |
| 48 | natdiscount | natdiscount | string | 1 | 可选 | 本币折扣额 |
| 49 | discount1 | discount1 | string | 1 | 可选 | 扣率(%) |
| 50 | discount2 | discount2 | string | 1 | 可选 | 扣率2(%) |
| 51 | socode | socode | string | 1 | 可选 | 销售订单号 |
| 52 | batch | batch | string | 1 | 可选 | 批号 |
| 53 | ExpirationDate | ExpirationDate | string | 1 | 可选 | 有效期至 |
| 54 | cmassunit | cmassunit | string | 1 | 可选 | 保质期单位 |
| 55 | ExpirationItem | ExpirationItem | string | 1 | 可选 | 有效期计算项 |
| 56 | dmdate | dmdate | string | 1 | 可选 | 生产日期 |
| 57 | overdate | overdate | string | 1 | 可选 | 失效日期 |
| 58 | ExpiratDateCalcu | ExpiratDateCalcu | string | 1 | 可选 | 有效期推算方式 |
| 59 | imassdate | imassdate | string | 1 | 可选 | 保质期 |
| 60 | item_code | item_code | string | 1 | 可选 | 项目编码 |
| 61 | tradeid | tradeid | string | 1 | 必填 | 交易唯一识别码,tradeid与biz_id只能传入一个 |
| 62 | ds_sequence | ds_sequence | string | 1 | 可选 | 111 |
| 63 | biz_id | biz_id | string | 1 | 必填 | 上游id,需要保证biz_id与ERP主键唯一对应关系,tradeid与biz_id只能传入一个 |
| 64 | sync | sync | string | 1 | 可选 | 0=异步新增(默认);1=同步新增; |
暂无参数说明
用友U8的接口:新增一张发货单_v1(api/consignment/add),由轻易云数据集成平台 API 资产管理模块整理收纳,并随用友U8版本更新同步更新。