聚水潭·奇门与金蝶云星空发货单对接销售出库-V

系统接口数据集成
源数据平台 聚水潭·奇门数据对接
调用请求API 订单查询
请求定时 4-59/31 6-23 * * *
将企业的所有应用及数据链接起来
目标平台 金蝶云星空写入数据接口
调用执行API 销售出库新增
执行定时 32-59/41 6-23 * * *

接口数据对接字段明细

序号 聚水潭·奇门字段 聚水潭·奇门字段名 金蝶云星空字段 金蝶云星空字段名 描述
1 XSCKD01_SYS 固定值 FBillTypeID 单据类型
2 io_id 出库单号 FBillNo 单据编号
3 io_date 出库日期 FDate 日期
4 _findCollection find F_PSEH_OrgId from 255f7565-c782-3985-9020-59aa6a647e61 where FName=shop_name 关联查询函数 FSaleOrgId 销售组织
5 _mongoQuery 255f7565-c782-3985-9020-59aa6a647e61 findField=content.FNumber where={"content.FName":{"$eq":"shop_name" 固定值 FCustomerID 客户 _mongoQuery 255f7565-c782-3985-9020-59aa6a647e61 findField=content.FNumber where={"content.FName":{"$eq":"{{shop_name}}"}}
6 order_staff_name 固定值 FSalesManID 销售员
7 固定值 FSaleDeptID 销售部门
8 105 固定值 FStockOrgId 发货组织
9 remark 固定值 FNote 备注
10 true 固定值 F_PSEH_ISAPI 接口生成
11 items items FEntity 明细信息
12 items.sku_id 固定值 FEntity.FMaterialID 物料编码
13 items.qty 固定值 FEntity.FRealQty 实发数量
14 BD_OwnerOrg 固定值 FEntity.FOwnerTypeId 货主类型
15 105 固定值 FEntity.FOwnerId 货主
16 _findCollection find name from e63fcb86-2968-3715-a33f-d36010737265 where wms_co_id=wms_co_id 关联查询函数 FEntity.FStockID 仓库
17 _function case _findCollection find FIsBatchManage from d36b5c74-bdf8-3bcb-a345-22dac34d52aa where FNumber=items.sku_id _endFind when true then 'DY20230421' else '' end 关联查询函数 FEntity.FLot 批号
18 _function case _findCollection find FIsKFPeriod from d36b5c74-bdf8-3bcb-a345-22dac34d52aa where FNumber=items.sku_id _endFind when true then '2023-01-01' else '' end 关联查询函数 FEntity.FProduceDate 生产日期
19 _function case _findCollection find FIsKFPeriod from d36b5c74-bdf8-3bcb-a345-22dac34d52aa where FNumber=items.sku_id _endFind when true then '2025-12-31' else '' end 关联查询函数 FEntity.FExpiryDate 有效期至
20 items.sale_price 固定值 FEntity.FTaxPrice 含税单价
21 _function case when 'items.sale_price' = '0' or 'items.sale_price' = '0.0' then true else false end 计算函数 FEntity.FIsFree 是否赠品
22 so_id 线上订单号 FEntity.F_PSEH_TEXT 网上订单号
23 固定值 SubHeadEntity 财务信息
24 _findCollection find F_PSEH_OrgId from 255f7565-c782-3985-9020-59aa6a647e61 where FName=shop_name 关联查询函数 SubHeadEntity.FSettleOrgID 结算组织 _findCollection find F_PSEH_OrgId from 255f7565-c782-3985-9020-59aa6a647e61 where FName={{shop_name}}
25 PRE001 固定值 SubHeadEntity.FSETTLECURRID 结算币别
26 _function case 'free_amount' when '-0.01' then '0' else 'free_amount' end 计算函数 SubHeadEntity.FAllDisCount 整单折扣额 function case '{{free_amount}}' when '-0.01' then '0.01' else '{{free_amount}}' end

源平台配置元数据

目标平台配置元数据