ttpos-stats
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesettpos-stats
ttpos-stats
先读 。
ttpos-sharedFirst read .
ttpos-shared能回答的问题
Questions that can be answered
| 问题 | 命令 |
|---|---|
| 今天营业额、实收、订单数、客单价 | |
| 昨天、本周、本月的营业额 | |
| 指定日期范围的营业额 | |
| 名下各门店营业额对比、哪家店卖得最好 | |
| 卖得最好的菜 | |
| 各支付方式收了多少 | |
| 员工业绩、提成 | |
| Question | Command |
|---|---|
| Today's revenue, amount received, order count, and average order value | |
| Yesterday's, this week's, or this month's revenue | |
| Revenue for a specified date range | |
| Revenue comparison across the account's stores and the best-performing store | |
| Best-selling dishes | |
| Amount collected through each payment method | |
| Staff performance and commissions | |
时间
Time
- 不传时间就是今天;统计不能查全部历史。
- 取 today、yesterday、this-week、last-week、this-month、last-month;或用
--date,最长 31 天,超过 exit 2,请分段查询后自己相加。--from/--to YYYY-MM-DD - 按门店的营业日算:跨 0 点营业的店,凌晨的单算前一天,所以和按自然日数订单的结果可能不同。
- If no time is specified, it means today; statistics cannot query the entire history.
- accepts today, yesterday, this-week, last-week, this-month, and last-month; alternatively, use
--datefor a maximum period of 31 days. Longer periods exit with code 2, so split the query into segments and add the results yourself.--from/--to YYYY-MM-DD - Statistics are calculated by each store's business day. For stores operating past midnight, orders placed after midnight are counted toward the previous day, so the results may differ from order counts based on the calendar day.
读结果
Reading the results
- 的字段:
stats business营业额,total_sales实收,total_received_price订单数,total_order_num平均每单金额,avg_order_price用餐人数,total_people_num退款,total_refund_money取消单数,total_cancel_order_num优惠,total_discount_money各支付方式收入。payment_method_incomes - 只算已完成的单。用户问"一共有多少笔订单"(含待付款、已取消)时用
total_order_num的ttpos order list;两个数不一样时都说清楚口径。count - "客单价"在门店报表里有时指人均。用户问客单价时说明这里是"平均每单金额";人均需要 ,为 0 表示没有登记人数,不要自己用订单数代替。
total_people_num - 逐店查询账号能访问的全部门店,门店多时要等一会儿。某家店失败时
stats shops有原因,其他店照常返回;汇报时把失败的店单独说明,不要当成 0。error - 只返回前 10;
stats products账号没有提成权限时只返回自己。stats commission
退出码见 。
ttpos help exit-codes- fields:
stats businessis revenue,total_salesis the amount received,total_received_priceis the order count,total_order_numis the average amount per order,avg_order_priceis the number of diners,total_people_numis refunds,total_refund_moneyis the number of cancelled orders,total_cancel_order_numis discounts, andtotal_discount_moneycontains income by payment method.payment_method_incomes - only includes completed orders. When the user asks for the total number of orders, including pending-payment and cancelled orders, use the
total_order_numfromcount. If the two values differ, clearly explain the counting basis for each.ttpos order list - In store reports, "average order value" sometimes refers to per-person spending. When the user asks about average order value, explain that this is the "average amount per order." Per-person spending requires ; a value of 0 means no diner count was recorded, so do not substitute the order count.
total_people_num - queries every store accessible to the account one by one, which may take a while when there are many stores. If a store fails, the reason is provided in
stats shops, while the other stores are still returned. Report failed stores separately and do not treat them as 0.error - only returns the top 10 results. If the account does not have permission to view commissions,
stats productsonly returns the user's own data.stats commission
See for exit codes.
ttpos help exit-codes