| resubmitCheckKey | 保证请求的幂等性 | string | {{src_order_no}} |
| salesOrgId | 销售组织 | string | findCollection find mapping_sale_org from 4769a428-14c4-33b8-91fd-e8da3b39d5cb where shop_no={{shop_no}} |
| transactionTypeId | 交易类型 | string | SO021 |
| bizFlow | bizFlow | string | 4420f835-f5e0-11ec-9896-6c92bf477043 |
| bizFlow_version | bizFlow_version | string | V1.0 |
| vouchdate | 单据日期 | string | {{consign_time_new}} |
| code | 单据编码 | string | {{src_order_no}} |
| invoiceTitle | 发票抬头 | string | 1 |
| taxNum | 纳税人识别号 | string | 1 |
| invoiceTelephone | 营业电话 | string | 1 |
| bankName | 开户银行 | string | 银行 |
| subBankName | 银行支行 | string | 银行支行 |
| bankAccount | 银行账号 | string | 1 |
| invoiceAddress | 营业地址 | string | 地址 |
| agentId | 客户 | string | _findCollection find mapping_customer from 4769a428-14c4-33b8-91fd-e8da3b39d5cb where shop_no={{shop_no}} |
| settlementOrgId | 开票组织 | string | findCollection find mapping_sale_org from 4769a428-14c4-33b8-91fd-e8da3b39d5cb where shop_no={{shop_no}} |
| source | 单据来源 | string | 4 |
| orderPrices!currency | 币种 | string | CNY |
| orderPrices!exchRate | 汇率 | string | 1 |
| orderPrices!exchangeRateType | 汇率类型 | string | 01 |
| orderPrices!natCurrency | 本币 | string | CNY |
| orderPrices!taxInclusive | 单价含税 | string | true |
| invoiceAgentId | 开票客户 | string | _findCollection find mapping_customer from 4769a428-14c4-33b8-91fd-e8da3b39d5cb where shop_no={{shop_no}} |
| invoiceUpcType | 发票类型 | string | 1 |
| payMoney | 合计含税金额 | string | {{batch_details.paid}} |
| orderDetails | 销售订单子表 | array | details_list |
| orderDetails.stockId | 仓库 | string | {{details_list.warehouse_no}} |
| orderDetails.isExpiryDateManage | 是否有效期管理 | string | true |
| orderDetails.orderDetailPrices!natSum | 本币含税金额 | string | function round({{details_list.total_amount}},2) |
| orderDetails.orderDetailPrices!natMoney | 本币无税金额 | string | _function round({{details_list.total_amount}}/(1+{{details_list.tax_rate}}),2) |
| orderDetails.productId | 商品 | string | {{details_list.spec_no}} |
| orderDetails.masterUnitId | 主计量单位 | string | findCollection find code from f9eedcc9-f1ff-31c0-9081-6aee9cf21740 where name={{details_list.unit_name}} |
| orderDetails.invExchRate | 销售换算率 | string | 1 |
| orderDetails.unitExchangeTypePrice | 浮动(销售) | string | |
| orderDetails.orderDetailPrices!oriTax | 税额 | string | _function abs(round({{details_list.total_amount}}/(1+{{details_list.tax_rate}}),2)-{{details_list.total_amount}}) |
| orderDetails.iProductAuxUnitId | 销售单位 | string | findCollection find code from f9eedcc9-f1ff-31c0-9081-6aee9cf21740 where name={{details_list.unit_name}} |
| orderDetails.orderDetailPrices!natUnitPrice | 本币无税单价 | string | _function round(({{details_list.total_amount}}/{{details_list.goods_count}})/(1+{{details_list.tax_rate}}),2) |
| orderDetails.invPriceExchRate | 计价换算率 | string | 1 |
| orderDetails.isBatchManage | 是否批次管理 | string | true |
| orderDetails.oriSum | 含税金额 | string | function round({{details_list.total_amount}},2) |
| orderDetails.orderDetailPrices!oriMoney | 无税金额 | string | _function round({{details_list.total_amount}}/(1+{{details_list.tax_rate}}),2) |
| orderDetails.priceQty | 计价数量 | string | {{details_list.goods_count}} |
| orderDetails.stockOrgId | 库存组织 | string | findCollection find org_code from 4f73f755-1c4f-33e6-b5a1-7e3b8d894800 where code={{warehouse_no}} |
| orderDetails.iProductUnitId | 计价单位 | string | _findCollection find code from f9eedcc9-f1ff-31c0-9081-6aee9cf21740 where name={{details_list.unit_name}} |
| orderDetails.orderDetailPrices!natTaxUnitPrice | 本币含税单价 | string | function round(({{details_list.total_amount}}/{{details_list.goods_count}}),2) |
| orderDetails.orderProductType | 商品售卖类型 | string | SALE |
| orderDetails.subQty | 销售数量 | string | {{details_list.goods_count}} |
| orderDetails.consignTime | 计划发货日期 | string | {{consign_time_new}} |
| orderDetails.skuId | 商品SKUid或SKUcode | string | {{details_list.spec_no}} |
| orderDetails.taxId | 税目税率 | string | {{details_list.tax_rate}} |
| orderDetails.qty | 数量 | string | {{details_list.goods_count}} |
| orderDetails.settlementOrgId | 开票组织 | string | _findCollection find mapping_sale_org from 4769a428-14c4-33b8-91fd-e8da3b39d5cb where shop_no={{shop_no}} |
| orderDetails.oriTaxUnitPrice | 含税成交价 | string | function round({{details_list.total_amount}}/{{details_list.goods_count}},2) |
| orderDetails.orderDetailPrices!natTax | 本币税额 | string | _function round(({{details_list.total_amount}}*{{details_list.tax_rate}})/(1+{{details_list.tax_rate}}),2) |
| orderDetails.unitExchangeType | 浮动(计价) | string | |
| orderDetails.orderDetailPrices!oriUnitPrice | 无税成交价 | string | function round(({{details_list.total_amount}}/{{details_list.goods_count}})/(1+{{details_list.tax_rate}}),2) |
| orderDetails.salesOrgId | 销售组织 | string | _findCollection find mapping_sale_org from 4769a428-14c4-33b8-91fd-e8da3b39d5cb where shop_no={{shop_no}} |
| orderDetails.bodyFreeItem!define1 | 子订单号 | string | {{details_list.src_oid}} |
| orderDetails.bodyFreeItem!define2 | 原始订单号 | string | {{details_list.src_tid}} |
| orderDetails.status | 操作标识 | string | Insert |
| orderDetails.memo | 备注 | string | {{details_list.remark}} |
| orderDetails._status | 操作标识 | string | Insert |
| orderDetails.memo | 备注 | string | {{cs_remark}} |
| orderDetails.headFreeItem!define1 | 销售类型 | string | {{trade_type}} |
| orderDetails.wdt_xsckd | 旺店通销售出库单 | string | {{stockout_no}} |
| orderDetails.headFreeItem!define2 | 原始单号 | string | {{details_list.src_tid}} |