Counter day
counter_dayThe Counter (Kaunter) till's day for one date (default today, Malaysia time): receipt and voided counts, cash and DuitNow QR totals, the 5-sen cash-rounding total, status (open or closed), the receipt-number range with voided numbers, and sales billed on credit at the till. While status is 'open' nothing has posted: the takings are not yet in sales_summary, cash_position or income_statement, and stock and COGS have not moved. Once 'closed', saleId names the one consolidated cash sale the day posted as, and the figures reconcile to the books. creditSales (the till's "Invoice it" sales) post at once as ordinary credit invoices, so they are already in sales_summary, income_statement, open_invoices and ar_aging, and they are not part of cashTotal, qrTotal or the close: the drawer holds cash and QR only. cashTotal sums the rounded cash receipts; cashRefunds is cash paid out of the drawer for credit-note refunds, cashReceipts is cash invoice payments put into it and cashPayments is supplier bills paid from it, cashExpenses is expenses paid from it, and otherCashIn and otherCashOut are every other entry in the books that put money into or took money out of that Cash account that day (a journal, cash banked, a cash sale outside the till), so the drawer should hold cashReceipts.drawerExpected (= cashTotal − cashRefunds.total + cashReceipts.total − cashPayments.total − cashExpenses.total + otherCashIn.total − otherCashOut.total), the close screen's figure. otherCashIn and otherCashOut read 0 when the counter's cash account is a bank account in Banking. qrTotal is never rounded. Receipts of RM10,000 or more cannot join a consolidated e-invoice and post as their own sale: consolidatedCount/consolidatedTotal cover the rest, individualCount/individualTotal these, and awaitingBuyerCount counts those still without buyer particulars. Counter is an add-on; without it the status is 'not_available'.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "counter_day"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The business date, `YYYY-MM-DD`, Malaysia time. Omit for today. |