算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
bookkeeping-double-entry【设计与创意】Use when posting transactions, designing a chart of accounts, reconciling a bank account, clearing suspense and control accounts, running a month-end close, or producing a trial balance, profit and loss account and balance sheet from underlying records. Covers double-entry mechanics, accruals and prepayments, control-account proofs, and the reconcili…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
The engine underneath every return and every set of accounts. Get this wrong and everything computed from it is wrong in a way no downstream check will catch.
Every transaction has equal debits and credits, and the accounting equation always holds:
Assets = Liabilities + Equity
| Debit increases | Credit increases | |
|---|---|---|
| Assets (bank, debtors, stock, equipment) | ✓ | |
| Expenses (purchases, wages, rent) | ✓ | |
| Liabilities (creditors, VAT owed, loans) | ✓ | |
| Income (sales) | ✓ | |
| Equity (share capital, retained profit) | ✓ |
Mnemonic that survives pressure: DEAD CLIC — Debit Expenses Assets Drawings, Credit Liabilities Income Capital.
If a trial balance does not balance, you have made an error — you have not found a rounding quirk. Do not plug it.
Keep it small. A chart nobody can hold in their head gets mis-posted.
| Range | Type | Typical accounts |
|---|---|---|
| 1000–1999 | Assets | Bank current, bank savings, trade debtors, stock, equipment, accumulated depreciation |
| 2000–2999 | Liabilities | Trade creditors, VAT control, PAYE/NIC control, wages control, director's loan, corporation tax payable |
| 3000–3999 | Equity | Share capital, retained earnings |
| 4000–4999 | Income | Sales (split by stream if VAT treatment differs), other income |
| 5000–5999 | Cost of sales | Purchases, carriage, direct labour |
| 6000–7999 | Overheads | Rent, utilities, software, professional fees, insurance, motor, depreciation |
| 9999 | Suspense | Temporary only — see §5 |
Split sales by VAT treatment, not by curiosity. Standard, zero-rated, exempt and outside-scope income must be separable or the VAT return cannot be built without re-analysing everything.
A control account is a running total whose balance must equal an independently-derived figure. When they agree, a whole class of error is excluded. Prove each one every period.
| Control | Must equal |
|---|---|
| Bank | The bank statement balance, after listing unpresented items |
| VAT control | The VAT due per the return for the period, plus/minus anything unpaid from prior periods |
| Trade debtors | Sum of unpaid sales invoices in the aged list |
| Trade creditors | Sum of unpaid purchase invoices in the aged list |
| Wages control | Net pay + PAYE + NI + pension per the payroll run — should clear to nil |
| Director's loan | The director's own record; it is a real debt in both directions |
A control account that does not prove is a finding, not a rounding issue. When one will not
prove, ledger-error-diagnosis reads the difference itself to narrow the class before you start
hunting — a difference divisible by 9 is a transposition, twice a real amount is a wrong-side
posting.
Balance per bank statement
− unpresented payments (written, not yet cleared)
+ outstanding lodgements (banked, not yet credited)
= balance per cash book
Procedure that actually works:
ledger-error-diagnosis
rather than absorbing the remainder.Reconcile before every VAT return and before year end. A return drawn from unreconciled books is a guess with a number on it.
Rules that keep them honest:
references/transaction-patterns.md: net-vs-gross
splits, the three processor-fee patterns (including the monthly aggregate deducted from a single
settlement), supplier debit balances and paying in credit, refunds and chargebacks, and
part-payments. Each with its detection signature and the failure it causes.Accounts are prepared on the accruals basis: recognise income and expense in the period they
relate to, not when cash moved. (VAT may be on a cash basis if the company is on cash accounting —
these are different questions; see uk-vat.)
| Adjustment | Meaning | Entry |
|---|---|---|
| Accrual | Cost incurred, not yet invoiced | Dr Expense / Cr Accruals |
| Prepayment | Paid in advance of the period | Dr Prepayments / Cr Expense |
| Deferred income | Invoiced in advance of delivery | Dr Income / Cr Deferred income |
| Depreciation | Spreading an asset's cost | Dr Depreciation / Cr Accumulated depreciation |
Reverse accruals and prepayments in the following period or they double-count. A permanent accrual that nobody reverses is one of the most common small-company errors.
financial-document-ingestion)Step 9 is not optional. A close that reports only what tidied up hides the part that matters.
Profit & loss — performance over a period:
Turnover − Cost of sales = Gross profit
Gross profit − Overheads = Operating profit
Operating profit − Interest ± Other = Profit before tax
Profit before tax − Corporation tax = Profit after tax
Balance sheet — position at one instant:
Fixed assets + (Current assets − Current liabilities) − Long-term liabilities
= Net assets
= Capital and reserves
Sanity checks worth running every time: net assets equals capital and reserves · retained earnings moved by exactly this period's profit after tax (plus any dividend) · debtors and creditors are plausible against turnover · no negative stock, and no bank balance that contradicts the statement.