statSale
Retrieve sales aggregates for a specified date: daily, trailing 7 days, and monthly totals. Use to monitor daily performance, weekly trends, or monthly progress. Specify a date for historical analysis or omit for current data.
Instructions
基準日を起点に 3 つの売上集計 — 当日 / 基準日を含む直近 7 日間 / 基準日の属する月全体 — をまとめて返します。make_date(YYYY-MM-DD、省略時は現在時刻)で基準日を指定するため、過去の任意の日付やその月の集計も取得できます。任意の日数範囲や商品別内訳の集計には対応していないため、それらが必要な場合は getSales で受注一覧を取得して集計してください。今月の進捗確認、昨日の実績、特定月の売上把握などに使います。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| make_date | No | 集計の基準日。この日を起点に、以下の期間の売上金額と件数を返す。 - `amount_today` / `count_today`: 基準日当日の売上 - `amount_last_7days` / `count_last_7days`: 基準日の7日前の日から基準日の終わりまでの売上 - `amount_this_month` / `count_this_month`: 基準日が属する月の売上 形式は"2017-04-12"、"2017/04/12"など。指定しない場合は今日の日付が使われる。 |