ttpos-bom
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesettpos-bom
ttpos-bom
先读 。本版不提供 BOM 导出和导入模板下载,被问到直接说没有。
ttpos-sharedFirst read . This version does not provide BOM export or import template downloads; if asked, say they are unavailable.
ttpos-shared能回答的问题
Questions This Can Answer
| 问题 | 命令 |
|---|---|
| 某道菜的配方 | |
| 哪些商品配了 BOM | |
| 一张成本卡 | |
| Question | Command |
|---|---|
| Recipe for a dish | |
| Which products have a BOM | |
| A cost card | |
选哪条命令
Which Command to Use
| 想查 | 命令 |
|---|---|
| 配方模块列表(全量,无分页) | |
| 配方模块详情 | |
| 单品是否配了 BOM | |
| 套餐、加料是否配了 BOM | |
| 单品、加料、套餐组项的行级 BOM | |
| 套餐 BOM 汇总 | |
| 订单 BOM(整个商户一份) | |
| 规格商品成本卡 | |
查询上限: 每页最多 100 条。
bom product list| What You Want to Look Up | Command |
|---|---|
| Recipe module list (complete, no pagination) | |
| Recipe module details | |
| Whether an individual product has a BOM | |
| Whether a combo or add-on has a BOM | |
| Line-level BOM for an individual product, add-on, or combo group item | |
| Combo BOM summary | |
| Order BOM (one per merchant) | |
| Spec-product cost card | |
Query limit: returns at most 100 records per page.
bom product list参数陷阱
Parameter Pitfalls
- 不传
bom product list只返回单品。 查套餐、加料时不传不会报错,只会得到无关结果。--tab - 没有
bom module list/--page。--size - 的
bom product get(--owner-type规格,2加料,3套餐组项)和4都必填,缺了 exit 2。取值不合法时由服务端报错,是 exit 1。--owner-uuid - 五个 只输出 JSON。
get
- only returns individual products when
bom product listis omitted. When looking up combos or add-ons, omitting this option does not produce an error; it only returns unrelated results.--tab - does not support
bom module list/--page.--size - Both (
--owner-typespecification,2add-on,3combo group item) and4are required for--owner-uuid; omitting either results in exit 2. Invalid values are reported by the server and result in exit 1.bom product get - The five commands only output JSON.
get
读输出
Reading the Output
- 本域的布尔字段都是原生 :
true/falsehas_nestedis_editableheadquarterconfigured。这只适用于本域。all_configured - 的名称读
bom module list,locale_name是未解析的原文。表格「主行数」=name+material_count,不含module_count(备选行)和alternative_count(被多少上层引用)。ref_count - 的记录 id 是
bom product list,是否配置看owner_uuid。configured - :
bom order get、owner_type恒为 0,没有业务含义,不要使用。 有效数据在owner_uuidshared_linesdine_in_linestakeaway_lines。leaf_preview - :
bom combo get每项同时有items[]和product_uuid,含义不同,不要混用。owner_uuid - :
bom card get里 material、unit、unit_list 的 uuid 都是 number,不要转 double。materials[]
退出码见 。
ttpos help exit-codes- Boolean fields in this domain use native :
true/falsehas_nestedis_editableheadquarterconfigured. This applies only to this domain.all_configured - For , read the name from
bom module list;locale_namecontains unresolved source text. The table's "Main row count" equalsname+material_countand excludesmodule_count(alternative rows) andalternative_count(the number of parent references).ref_count - The record ID in is
bom product list; useowner_uuidto determine whether it is configured.configured - :
bom order getandowner_typeare always 0 and have no business meaning, so do not use them. Valid data is inowner_uuidshared_linesdine_in_linestakeaway_lines.leaf_preview - : each item in
bom combo gethas bothitems[]andproduct_uuid. They have different meanings and must not be used interchangeably.owner_uuid - : the UUIDs for material, unit, and unit_list in
bom card getare numbers; do not convert them to double.materials[]
See for exit codes.
ttpos help exit-codes