在应对以下场景时,我们需要在旺店通的采购入库传入金蝶时与之前的采购订单关联。
在配置入库单关联关系时必须要原始订单的 FID 与 分录ID ,但是旺店通内的采购入库单我们只能够获取到外部订单号(outer_no) 与 物料编码。此时我们可以从 采购订单同步方案 中去定位金蝶系统的原始 ID。
_findCollection find FPOOrderEntry_FEntryId from 8e620793-bebb-3167-95a4-9030368e5262 where FBillNo={{outer_no}} FMaterialId_FNumber={{details_list.goods_no}}
务必留意语法中每一段的分割都必须是一个英文空格
_function _findCollection 两个语句可以组合起来使用。
例如需求: 当查询到物料没启用保质期管理,则生产日期为空。
_function
case
_findCollection find FIsKFPeriod
from 66da8241-98f4-39f9-8fee-cac02e30e532
where FNumber={{details.details_item_code}}
_endFind
when true then '{{details.details_detail_batch_validTime}}'
else '' end
在case语句后面嵌套使用到了 _findCollection 语句,此时需要额外的 _endFind 对联查语句声明结束。
!!注意!!
以上示例代码为了方便演示,使用了换行符、TAB缩进。正常使用时不能出现这些符号。
_function case _findCollection find FIsKFPeriod from 66da8241-98f4-39f9-8fee-cac02e30e532 where FNumber={{details.details_item_code}} _endFind when true then '{{details.details_detail_batch_validTime}}' else '' end
2022-02-13 22:08:30 | |
2022-04-10 20:05:29 | |
2022-06-28 09:59:51 | |
2021-07-27 09:20:21 | |
2022-03-17 13:12:59 | |
2021-04-29 18:32:50 | |
2023-04-11 18:26:52 | |
2021-03-12 21:25:31 | |
2023-03-12 02:55:23 | |
2022-02-21 19:39:48 | |
2022-10-04 12:41:32 | |
2022-05-04 14:39:53 | |
2022-05-29 01:20:18 | |
2023-03-19 03:31:08 | |
2021-12-28 17:36:10 | |
2023-01-11 00:45:33 | |
2021-12-22 09:17:31 | |
2021-01-12 21:54:38 | |
2022-05-05 05:35:22 | |
2022-09-14 03:33:30 | |
2023-01-26 10:11:27 | |
2023-01-26 10:11:26 | |
2023-01-26 10:11:25 | |
2023-01-26 10:11:24 | |
2023-01-26 10:11:23 |
何海波 18175716035
数据集成顾问 轻易云的技术专家,拥有丰富的数据集成规划经验。他能够为客户提供专业、全面的数据集成规划方案,熟练掌握多种集成技术和工具,帮助企业在数据集成领域得到长远发展。
卢剑航 13760755942
数据集成专家 拥有十多年丰富的经验,擅长ERP、MES、数据中台、营销云中台等集成。他能够根据客户需求,为其提供一站式集成解决方案,帮助企业快速实现各类系统数据集成服务。
黄宏棵 13286997615
数据集成顾问 资深系统集成顾问,专长于ERP、电商OMS、钉钉及CRM系统。他能提供高效的集成方案,优化企业运营流程,提升业务效率和决策智能化。