Add a golden for general_ledger over [2026-01-01, 2026-01-31] on the shared extended January fixture, with running balances, each posting's split, per-account totals, and entry ids. The close is a posting like any other here; the Feb 5 entry is after the period end and is out. Hand recomputation (plan/golden-worksheets/general-ledger.md): cash has five postings (begin 0, debits 11,500, credits 4,300, ending 7,200); receivables 4,000 - 1,500 = 2,500; equipment 2,500 + 1,500 = 4,000; payable 500; owner's equity 10,000; retained earnings 3,200; service revenue 4,000 credit then the close's 4,000 debit, ending 0; rent 800 debit then the close's 800 credit, ending 0. Entry 6's equipment debit has two accounts on the credit side (cash and payable), so its split is "-Split-"; the same for entry 7's revenue debit (rent and retained earnings) and for the close's two other lines the split is the single account 4000 Service Revenue. Every ending balance ties to the as-of trial balance. Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
238 lines
5.8 KiB
JSON
238 lines
5.8 KiB
JSON
{
|
|
"start": "2026-01-01",
|
|
"end": "2026-01-31",
|
|
"accounts": [
|
|
{
|
|
"code": "1000",
|
|
"name": "Cash",
|
|
"account_type": "Asset",
|
|
"beginning_balance": "0",
|
|
"postings": [
|
|
{
|
|
"date": "2026-01-02",
|
|
"entry_id": 1,
|
|
"description": "Owner investment",
|
|
"split": "3000 Owner's Equity",
|
|
"debit": "10000",
|
|
"credit": "0",
|
|
"balance": "10000"
|
|
},
|
|
{
|
|
"date": "2026-01-05",
|
|
"entry_id": 2,
|
|
"description": "Buy equipment",
|
|
"split": "1500 Equipment",
|
|
"debit": "0",
|
|
"credit": "2500",
|
|
"balance": "7500"
|
|
},
|
|
{
|
|
"date": "2026-01-15",
|
|
"entry_id": 4,
|
|
"description": "January rent",
|
|
"split": "6000 Rent Expense",
|
|
"debit": "0",
|
|
"credit": "800",
|
|
"balance": "6700"
|
|
},
|
|
{
|
|
"date": "2026-01-20",
|
|
"entry_id": 5,
|
|
"description": "Client payment",
|
|
"split": "1200 Accounts Receivable",
|
|
"debit": "1500",
|
|
"credit": "0",
|
|
"balance": "8200"
|
|
},
|
|
{
|
|
"date": "2026-01-25",
|
|
"entry_id": 6,
|
|
"description": "Buy more equipment",
|
|
"split": "1500 Equipment",
|
|
"debit": "0",
|
|
"credit": "1000",
|
|
"balance": "7200"
|
|
}
|
|
],
|
|
"total_debits": "11500",
|
|
"total_credits": "4300",
|
|
"ending_balance": "7200"
|
|
},
|
|
{
|
|
"code": "1200",
|
|
"name": "Accounts Receivable",
|
|
"account_type": "Asset",
|
|
"beginning_balance": "0",
|
|
"postings": [
|
|
{
|
|
"date": "2026-01-10",
|
|
"entry_id": 3,
|
|
"description": "Invoice client",
|
|
"split": "4000 Service Revenue",
|
|
"debit": "4000",
|
|
"credit": "0",
|
|
"balance": "4000"
|
|
},
|
|
{
|
|
"date": "2026-01-20",
|
|
"entry_id": 5,
|
|
"description": "Client payment",
|
|
"split": "1000 Cash",
|
|
"debit": "0",
|
|
"credit": "1500",
|
|
"balance": "2500"
|
|
}
|
|
],
|
|
"total_debits": "4000",
|
|
"total_credits": "1500",
|
|
"ending_balance": "2500"
|
|
},
|
|
{
|
|
"code": "1500",
|
|
"name": "Equipment",
|
|
"account_type": "Asset",
|
|
"beginning_balance": "0",
|
|
"postings": [
|
|
{
|
|
"date": "2026-01-05",
|
|
"entry_id": 2,
|
|
"description": "Buy equipment",
|
|
"split": "1000 Cash",
|
|
"debit": "2500",
|
|
"credit": "0",
|
|
"balance": "2500"
|
|
},
|
|
{
|
|
"date": "2026-01-25",
|
|
"entry_id": 6,
|
|
"description": "Buy more equipment",
|
|
"split": "-Split-",
|
|
"debit": "1500",
|
|
"credit": "0",
|
|
"balance": "4000"
|
|
}
|
|
],
|
|
"total_debits": "4000",
|
|
"total_credits": "0",
|
|
"ending_balance": "4000"
|
|
},
|
|
{
|
|
"code": "2000",
|
|
"name": "Accounts Payable",
|
|
"account_type": "Liability",
|
|
"beginning_balance": "0",
|
|
"postings": [
|
|
{
|
|
"date": "2026-01-25",
|
|
"entry_id": 6,
|
|
"description": "Buy more equipment",
|
|
"split": "1500 Equipment",
|
|
"debit": "0",
|
|
"credit": "500",
|
|
"balance": "500"
|
|
}
|
|
],
|
|
"total_debits": "0",
|
|
"total_credits": "500",
|
|
"ending_balance": "500"
|
|
},
|
|
{
|
|
"code": "3000",
|
|
"name": "Owner's Equity",
|
|
"account_type": "Equity",
|
|
"beginning_balance": "0",
|
|
"postings": [
|
|
{
|
|
"date": "2026-01-02",
|
|
"entry_id": 1,
|
|
"description": "Owner investment",
|
|
"split": "1000 Cash",
|
|
"debit": "0",
|
|
"credit": "10000",
|
|
"balance": "10000"
|
|
}
|
|
],
|
|
"total_debits": "0",
|
|
"total_credits": "10000",
|
|
"ending_balance": "10000"
|
|
},
|
|
{
|
|
"code": "3999",
|
|
"name": "Retained Earnings",
|
|
"account_type": "Equity",
|
|
"beginning_balance": "0",
|
|
"postings": [
|
|
{
|
|
"date": "2026-01-31",
|
|
"entry_id": 7,
|
|
"description": "Close period 2026-01",
|
|
"split": "4000 Service Revenue",
|
|
"debit": "0",
|
|
"credit": "3200",
|
|
"balance": "3200"
|
|
}
|
|
],
|
|
"total_debits": "0",
|
|
"total_credits": "3200",
|
|
"ending_balance": "3200"
|
|
},
|
|
{
|
|
"code": "4000",
|
|
"name": "Service Revenue",
|
|
"account_type": "Revenue",
|
|
"beginning_balance": "0",
|
|
"postings": [
|
|
{
|
|
"date": "2026-01-10",
|
|
"entry_id": 3,
|
|
"description": "Invoice client",
|
|
"split": "1200 Accounts Receivable",
|
|
"debit": "0",
|
|
"credit": "4000",
|
|
"balance": "4000"
|
|
},
|
|
{
|
|
"date": "2026-01-31",
|
|
"entry_id": 7,
|
|
"description": "Close period 2026-01",
|
|
"split": "-Split-",
|
|
"debit": "4000",
|
|
"credit": "0",
|
|
"balance": "0"
|
|
}
|
|
],
|
|
"total_debits": "4000",
|
|
"total_credits": "4000",
|
|
"ending_balance": "0"
|
|
},
|
|
{
|
|
"code": "6000",
|
|
"name": "Rent Expense",
|
|
"account_type": "Expense",
|
|
"beginning_balance": "0",
|
|
"postings": [
|
|
{
|
|
"date": "2026-01-15",
|
|
"entry_id": 4,
|
|
"description": "January rent",
|
|
"split": "1000 Cash",
|
|
"debit": "800",
|
|
"credit": "0",
|
|
"balance": "800"
|
|
},
|
|
{
|
|
"date": "2026-01-31",
|
|
"entry_id": 7,
|
|
"description": "Close period 2026-01",
|
|
"split": "4000 Service Revenue",
|
|
"debit": "0",
|
|
"credit": "800",
|
|
"balance": "0"
|
|
}
|
|
],
|
|
"total_debits": "800",
|
|
"total_credits": "800",
|
|
"ending_balance": "0"
|
|
}
|
|
]
|
|
} |