在应对以下场景时,我们需要在旺店通的采购入库传入金蝶时与之前的采购订单关联。
在配置入库单关联关系时必须要原始订单的 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 两个语句可以组合起来使用。
例如需求: 当查询到物料没启用保质期管理,则生产日期为空。
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-05-11 20:58:42 | |
| 2025-01-12 11:28:23 | |
| 2025-07-12 08:57:25 | |
| 2024-10-28 10:33:41 | |
| 2024-11-06 04:59:39 | |
| 2024-08-04 03:09:17 | |
| 2024-11-30 20:47:44 | |
| 2025-09-19 22:35:40 | |
| 2025-06-25 04:51:06 | |
| 2025-07-25 07:13:20 | |
| 2025-05-07 11:25:31 | |
| 2024-12-23 11:13:31 | |
| 2024-12-21 01:06:55 | |
| 2025-02-25 11:30:52 | |
| 2022-06-28 23:46:03 | |
| 2024-09-28 01:58:32 | |
| 2025-06-06 20:49:17 | |
| 2021-03-18 22:40:20 | |
| 2024-11-23 11:25:54 | |
| 2024-12-14 11:28:53 | |
| 2023-01-26 10:15:12 | |
| 2023-01-26 10:15:11 | |
| 2023-01-26 10:15:10 | |
| 2023-01-26 10:15:09 | |
| 2023-01-26 10:15:08 |
胡秀丛 15813570600
数据集成顾问 项目总监 她以卓越的数据集成专长,精通ERP、MES系统,以及数据中台的构建与优化。通过创新的一站式解决方案,她助力企业实现数据的无缝对接,提升业务流程效率,确保信息流通无障碍,为企业的数字化转型提供强有力的支持。
何海波 18175716035
数据集成顾问 轻易云的技术专家,拥有丰富的数据集成规划经验。他能够为客户提供专业、全面的数据集成规划方案,熟练掌握多种集成技术和工具,帮助企业在数据集成领域得到长远发展。
卢剑航 13760755942
数据集成专家 拥有十多年丰富的经验,擅长ERP、MES、数据中台、营销云中台等集成。他能够根据客户需求,为其提供一站式集成解决方案,帮助企业快速实现各类系统数据集成服务。