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 |