聚水潭·奇门与金蝶云星空销售退货对接测试方案111

系统接口数据集成
源数据平台 聚水潭·奇门数据对接
调用请求API 订单查询
请求定时 */2 2 2 2 2
将企业的所有应用及数据链接起来
目标平台 金蝶云星空写入数据接口
调用执行API [聚水潭][销售退货单标准新增]-v1
执行定时 */2 * * * *

接口数据对接字段明细

序号 聚水潭·奇门字段 聚水潭·奇门字段名 金蝶云星空字段 金蝶云星空字段名 描述
1 XSTHD01_SYS 固定值 FBillTypeID 单据类型 单据类型
2 as_id as_id FBillNo 单据编号 单据编号
3 101 固定值 FSaleOrgId 销售组织 销售组织
4 modified modified FDate 日期 日期
5 100 固定值 FStockOrgId 库存组织 库存组织
6 _findCollection find shop_name from 936fe7e0-c4ef-36f6-b441-fa7827de7efb where shop_id=shop_id 关联查询函数 FRetcustId 退货客户 退货客户
7 PRE001 固定值 FSettleCurrId 结算币别 结算币别
8 as_id as_id FHeadNote 备注 备注
9 batchs 固定值 FEntity 明细信息 明细信息
10 batchs.sku_id 固定值 FEntity.FMaterialId 物料编码 物料编码
11 batchs.qty 固定值 FEntity.FRealQty 实退数量 实退数量
12 batchs.price 固定值 FEntity.FPrice 单价 单价
13 batchs.price 固定值 FEntity.FTaxPrice 含税单价 含税单价
14 固定值 FEntity.FIsFree 是否赠品 是否赠品
15 固定值 FEntity.FEntryTaxRate 税率% 税率%
16 THLX01_SYS 固定值 FEntity.FReturnType 退货类型 退货类型
17 BD_OwnerOrg 固定值 FEntity.FOwnerTypeId 货主类型 货主类型
18 101 固定值 FEntity.FOwnerId 货主 货主
19 warehouse 固定值 FEntity.FStockId 仓库  仓库 
20 固定值 FEntity.FNote 备注  备注 
21 so_id so_id FEntity.F_PSEH_TEXT 网上订单号
22 固定值 FEntity.F_PSEH_AMOUNT2 管易不含税金额
23 固定值 FEntity.F_PSEH_AMOUNT 管易税额
24 固定值 FEntity.F_PSEH_AMOUNT1 管易价税合计
25 固定值 FEntity.FDISCOUNT 折扣额
26 _function case _findCollection find FIsBatchManage from d36b5c74-bdf8-3bcb-a345-22dac34d52aa where FNumber=batchs.sku_id _endFind when true then 'batchs.product_date' else '' end 关联查询函数 FEntity.FProduceDate 生产日期
27 _function case _findCollection find FIsBatchManage from d36b5c74-bdf8-3bcb-a345-22dac34d52aa where FNumber=batchs.sku_id _endFind when true then 'batchs.batch_no' else '' end 关联查询函数 FEntity.FLot 批次号
28 _function case _findCollection find FIsBatchManage from d36b5c74-bdf8-3bcb-a345-22dac34d52aa where FNumber=batchs.sku_id _endFind when true then 'batchs.expiration_date' else '' end 关联查询函数 FEntity.FExpiryDate 有效期至
29 固定值 FEntity.FEntity_Link 关联关系表
30 固定值 SubHeadEntity 财务信息 财务信息
31 100 固定值 SubHeadEntity.FSettleOrgId 结算组织 结算组织
32 固定值 SubHeadEntity.FAllDisCount FAllDisCount

源平台配置元数据

目标平台配置元数据