Qeasy Cloud
Get Started

旺店通与聚水潭集成金蝶ERP的实用场景与语法解析

Source: Qeasy Cloud44 views

处理场景

1. 旺店通采购入库与金蝶采购订单关联

在配置入库单关联关系时,需要原始订单的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}}

2. 聚水潭发货单与金蝶客户编码关联

在同步金蝶销售出库单时,需要传入金蝶客户编码。聚水潭的发货单接口只返回店铺名称,因此需要根据聚水潭店铺名称(shop_name)去关联金蝶客户编码。

_findCollection find number from 8e620793-bebb-3167-95a4-9030368e5262 where name={shop_name}

语法解析

  1. _findCollection 必须作为声明开头,并且使用一个空格分隔后续语句。
  2. find 是第一个关键字,声明要查询的字段,后面用空格分隔。
  3. FPOOrderEntry_FEntryId 表示需要查询的字段,表头一般是FID。
  4. from 是第二个关键字,声明需要从哪个同步集线器查询,这里使用集线器ID。
  5. where 后紧跟定位条件,可以有多个条件。
  6. FBillNo={outer_no} 每个定位条件中间不要有空格。
  7. FMaterialId_FNumber={{details_list.goods_no}} 可以书写多个查询条件,它们是AND关系,不需要额外增加and关键字,但需用空格分隔开。

⚠️ 注意:语法中每一段的分割必须是一个英文空格 ⚠️

Copyright Notice

The article "旺店通与聚水潭集成金蝶ERP的实用场景与语法解析" is original content owned by 广东轻亿云软件科技有限公司. Reposting, quoting, copying or mirroring is strictly prohibited without written authorization. Please contact us for authorization and credit the author and source (including the original link) prominently.