What it is: The daily cash, bank and digital receipt-and-payment record, with a day-end control row that reconciles the day before it is closed.
Works out the smallest useful Day Book setup for the business in front of it, then builds it
only when asked. The default output is a short recommendation, not a spreadsheet. Artifacts - CSV,
SQL DDL, JSON Schema, Notion mapping - are produced on request, from one field list so they
cannot drift apart.
Layer: Layer 4: Cash. Fits: Starter stage. Table code: n/a.
Before anything is generated, the design is checked against itself. A day book is the easiest
table in the pack to write badly, because the same column can mean two different things on two
different rows and neither reading looks wrong on its own. So before emitting any artifact:
output formats. Where the design, the examples or the business's existing sheet disagree with
each other, do not reproduce them as they stand.
The simplest safe reading preserves separate book balances and distinguishes them from observed cash counts and statement balances and never invents a movement to make a total look right.
that no field exists in one artifact and is missing or differently defined in another.
**The rule this table exists to enforce: the debit/credit presentation of a day book depends on
the software's day-book format.** It is not a universal rule that all receipts are debit and all
payments are credit - some books present receipts on the payment side, some carry both columns,
some carry neither. So this table does not hardcode a Debit/Credit pair. `Debit/Credit
Presentation` is a text field that records the presentation **as configured in the business's own
software**, and the in/out and balance columns are this template's chosen model. Where a book labels its columns Dr and Cr, that label is what goes intoDebit/Credit Presentation; nothing in this table decides which side a receipt sits on.
Two row types, and they are not the same kind of thing. Row Type says which one a row is, and
the two are read differently.
Movement row | Day Summary row | |
|---|---|---|
| What it is | one receipt or one payment | one per day, written after the day is closed |
| What it books | money, into exactly one book | no money at all - it totals and proves |
Book Section | the one book it was booked to | All Books |
Mode | the instrument used | Mixed when the day's instruments differ |
| The six In/Out columns | the amount in its own book, and the other two are not applicable | the day's totals for all three books |
| The six balance columns | brought forward, and the running balance after this entry | the day's opening and closing balances |
Transaction Reference, Voucher Number, Party | the entry itself | the day's detail set, not a single voucher |
Duplicate Check | this entry checked against the day's other entries | the whole day's set checked |
Balance Difference, Reconciliation Status | not applicable - a single movement is not reconciled on its own | the day's break, and the status of it |
What each balance field means. Every one of the six balance fields is a balance, never a
movement. Opening Cash Balance, Opening Bank Balance and Opening Digital Balance are what
was brought into the day. Cash Closing Balance, Bank Closing Balance and `Digital Closing
Balance` are what was left at the end of it. The identity that connects them, per book, is:
opening balance + money in - money out = closing balance
On a Day Summary row that identity must hold separately for cash, for bank and for digital. On
a Movement row, the opening balance is what was brought forward into that entry and the closing
balance is the running balance after it, in that entry's own book only.
The identity that carries the day forward. A day's opening balance is not a fresh number. It
is the previous day's closing balance for the same book. So the check that closes a day is:
previous day's closing balance + today's movement = today's closing balance
Where it does not hold, the difference goes in Balance Difference - signed, and not spread
across the books - and Reconciliation Status is set to Needs Review or Unreconciled. Keep the calculated/book closing balance unchanged; record the independently observed figure and signed difference separately in Notes. An unexplained difference does not replace the book closing balance. A day book whose balances are adjusted until they
agree records nothing about the business.
Balance Difference and Reconciliation Status. Balance Difference is the total
unexplained difference across the three books on that row: negative where the book is above the
counted or agreed figure, positive where it is below. Where a difference is confined to one book,
write per-book book balance, observed balance and difference in Notes. Always retain all per-book differences: equal and opposite breaks can net to zero and must not be called reconciled.Reconciliation Status is the worst of the three books, never the best. A bank balance that
agrees does not make a cash count that does not agree reconciled.
A day is not Done while the cash count or the bank position is unreconciled. Neither is itDone while Duplicate Check is Not Checked, or Reconciliation Status is anything other thanReconciled, or while an entry is Blocked. Entry Verified is the workflow status
(Not started | In progress | Blocked | Done | Cancelled) and it moves to Done only when the
control row for that day is clean, or when a human has reviewed and accepted a recorded difference.
Money, dates and rounding. Amounts are the gross amounts that actually moved, exactly as
recorded in the business's books, tax-inclusive where the entry was tax-inclusive. This module
does not split tax out of a movement. Money is a bare number with no currency symbol in the cell,
and the currency itself is Unknown until the user states it. Dates are ISO YYYY-MM-DD in real
date fields. Use exact decimal arithmetic and the confirmed currency's minor-unit/rounding policy. The displayed NUMERIC(14,2) is an illustrative two-decimal assumption, not a rule for every currency; do not sum different currencies or represent missing values as zero.
Also use it when the user says "the daily cash, bank and digital receipt-and-payment record, with a
day-end control row that reconciles the day before it is closed", or describes the same process
happening in a spreadsheet, a document or someone inboxes.
Do not use it for: making payments, recording receipts in detail, tax filing, or legal advice. This
skill produces empty templates only - its build output is an empty template. If a requested review includes supplied transaction data, use only the needed facts and do not reproduce identifiers.
The SQL/JSON examples enforce only some structural constraints. Application validation must distinguish row types, selected books, one direction per movement, date/book/currency scope, duplicate references, per-book balance identities and close authorization. Derive Day Summary totals solely from Movement rows; never sum both together. Internal cash/bank/wallet transfers require linked equal-and-opposite movements in the two books, not a new business receipt/expense. Decimal precision, overdrafts, settlement timing and reconciliation cadence require the business's accountant and local rules.
Follow the shared execution contract. The module-specific rules below define only domain fields, decisions, calculations, and safety constraints.
Read the request and pick the intent before asking anything.
import or fix; capture what is there, then Step 2.review; answer from what they share and donot rebuild anything.
report; answer from what they share.If the intent is already clear from the request, do not ask the user to repeat it.
On a review, check the design against itself before checking the numbers: the rules against the
examples, the field definitions against the row meanings, and the four artifacts against each
other. Report the conflicts and the simplest accounting-safe reading of each, then report the
control gaps - an unreconciled balance with no difference field, a Done day with an open cash
count, a hardcoded Debit/Credit rule. Do not rebuild the book because a review was asked for.
On a fix, preserve every valid fact already in the book, name each contradiction, correct the
model, and keep the change to the minimum that makes it consistent. Rebuild the artifacts only
when the fix request asks for them.
One message, one question, no batching. Open with the question that decides which columns exist:
Q: Which books do you keep separate in the day book - cash, bank, or a digital wallet?
Treat ambiguous replies as unanswered and ask which explicit option the user means. Record unknown values as Unknown; Unknown is not zero. A record must not be Done when a required check fails.
Skip anything the user already answered, in any earlier message. Ask the rest one at a time, and
stop as soon as the remaining answers would not change the recommendation or the requested
artifact. Never batch two questions into one message.
Entries made daily or weekly?
position agreed, and to what? Who signs it off?
handled when it appears?
An ambiguous answer is not an answer. yes, no, maybe, same, okay and fine do not
answer a multiple-choice question. Re-ask as an explicit choice:
Q: Which do you mean: a count of the cash drawer or **the balance your bank statement
shows at close**?
A partial answer keeps only the part that was answered. "We check it monthly, and the cash on
Fridays" records the frequency and leaves the digital-wallet position Unknown.
Never invent a business fact. Not an amount, a balance, a date, a voucher number, a bank
reference, an account number, a mode, a book section, a reviewer name, a status or a difference.
If a value was not supplied by the user or derived by a documented formula from supplied data, it
is Unknown or blank. Never turn Unknown into zero - a blank says the count has not been done,
a zero says the drawer is empty. Record Unknown, move on, and never re-ask an unknown the user
has already said they do not have.
Where the count or the statement has not been seen, the day's Balance Difference is blank andReconciliation Status is Unknown. It is not zero, because a zero difference is a claim that
the money was counted and agreed.
Hold the answers in this shape. It stays internal - it is not shown to the user unless they ask,
and it never carries a value the user did not give.
module: day-book
intent: null # setup | advice | review | fix | build | convert | export
scale: null # Starter | Growth | Scale, only if the answer changes it
areas:
"Books": null
"Entries": null
"Day-end control": null
"Open items": null
"Outcome": null
books: null # which of cash | bank | digital are kept separately
book_format: null # the day-book format of the software in use
debit_credit_presentation: null
cash_counted_daily: null
bank_agreed_to: null # statement, feed, or neither
sign_off: null
late_settling_wallets: null
known_duplicate_pattern: null
difference_handling: null
requested_outputs: [] # csv | sql | json | notion | xlsx - requested formats only
confirmed_facts: [] # only what the user actually said
unknowns: [] # asked and not answered
open_questions: [] # the unanswered ones, in the order worth asking
Build an already requested artifact without asking again. For advice-only requests, give a short recommendation and offer the relevant artifact.
Recommended approach: One day book carrying both row types in one field model. One Movement
row per receipt and per payment, with a Book Section naming cash, bank or digital; oneDay Summary row per day carrying that day's opening and closing balance and totals for all three
books; a Balance Difference and a Reconciliation Status on the day row; and a Duplicate Check
before the day is closed.
Why this one: The day book is where a missing or duplicated entry becomes visible, and
everything else in the cash cycle is downstream of the balance agreeing at day end. Keeping the
movement rows and the day-end control row in one model - separated by Row Type rather than by
guesswork - is what lets the day be proved from itself. Separate linked movement and summary tables are also valid; in this single-table model the row discriminator prevents treating a summary as another movement.
Workflow: Receipt or payment recorded from voucher → Booked to cash, bank or digital as aMovement row → Running balance updated → Duplicate and missing entries checked → Day Summary
row proves previous closing plus movement equals closing, per book → Difference recorded and marked
→ Day-end balance verified and reviewed → Day closed
Once the user asks for it, derive the fields from one canonical field list and emit the artifacts
as data only. Keep prose outside machine-readable data; provide file links and material limitations separately. A field present in one artifact is present
in all four, in the same order, with the same meaning. Build only what was asked for.
**A selected Notion output is rendered by notion-manual-import, so route the
Notion step there.** When the user selects Notion, hand that step to
@notion-manual-import: it holds the CSV, the property
mapping, the import steps and the verification checklist, and it renders the Field
Reference below instead of defining a table of its own. Do not restate the mapping
here and do not improvise the import steps. Manual CSV and mapping outputs need no
connection. For requested workspace changes, follow the shared contract: verify actual
tool access and the target before writing. A user saying "connected" is not tool evidence.
Never ask for a Notion password or token.
See artifact examples for CSV, PostgreSQL DDL, JSON Schema and Notion mapping generated from the same field model.
The linked rows are documentation examples only. Emit empty templates unless the user explicitly requests examples. Money stays currency, dates stay date, and
anything pointing at another table stays relation. Every option list below is a starting set -
add options after import, and use the values the business already uses.
The internal-consistency check, run before the artifacts go out. On the design as proposed,
and again on the four artifacts as written:
mapping - same type, same meaning, same position in the list?
Row Type what separates them?Debit/Credit Presentation field, or has a universalrule crept into the model?
See the How It Works reference for the rest of this section.
Prompt
We cannot tell at the end of the day whether the bank balance is right, and twice we found the
same payment entered twice.
Context first - one question per message, nothing already answered:
Q: Which books do you keep separate in the day book?
A: Bank and one Fonepay number. Cash is in the drawer.
Q: Who writes the entries?
A: My accounts person, from the vouchers, in the evening.
Q: What do you check before the day is closed?
A: Against the bank statement once a month. The cash just goes in the drawer.
Recommended next step - offered, not built:
One day book carrying both row types: aMovementrow per receipt and per payment with aBook Sectionnaming cash, bank or digital, and aDay Summaryrow per day carrying that day's
opening and closing balances and totals for all three books, plus aBalance Differenceand aReconciliation Statuson the day row.
Workflow: Receipt or payment recorded from voucher → Booked to cash, bank or digital as aMovementrow → Running balance updated → Duplicate and missing entries checked →Day Summary
row proves previous closing plus movement equals closing, per book → Difference recorded and
marked → Day-end balance verified and reviewed → Day closed
Want the CSV, SQL, JSON Schema and Notion mapping for this?
See the Best Practices reference for the full guidance.
business's software produces, so read the format out of the software and write it intoDebit/Credit Presentation rather than assuming one.
Day Summary row is whattests them, and Balance Difference is what records the test failing - so a book that is never
tested is a book that never finds its own errors.
Balance Difference holds the total across the three books. A break in more than one bookcannot be attributed from that column alone, so per-book figures go in Notes.
the supporting document, which is why the source link and the voucher number are on every row.
always possible. Reconciliation Status = Unknown exists for that, and it is an honest answer.
done, not what it found.
entries is the mistaken one.
See the Security & Safety Notes reference for the full guidance.