mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-12-06 20:38:50 +00:00
paisa: promote from _dev; add config, demo, template, docs; remove maybe_dev
- Rename paisa_dev to paisa (production-ready) - config/: blank-slate paisa.yaml and main.ledger - demo/: Demolition Company Ltd. sample books (Dec 2025 to Feb 2026) with a tax-estimates sheet - template/: starter books for a new small BC corporation - docs/: demo guide, ledger cheatsheet, Paisa for accountants - Remove maybe_dev stack Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
// Tax estimates for Demolition Company Ltd. (demo)
|
||||
// Ledger signs: credits (income, tax collected) are negative, so
|
||||
// negate them to read as positive numbers.
|
||||
|
||||
// Rates (simplified; confirm current rates with an accountant)
|
||||
small_business_rate = 11%
|
||||
gst_rate = 5%
|
||||
|
||||
// Exclude the 2025 closing entry so the real figures show
|
||||
not_closing = {NOT payee =~ /Close 2025/}
|
||||
pre_tax = {account =~ /^(Income|Expenses):/ AND NOT account = Expenses:IncomeTax} AND not_closing
|
||||
|
||||
// ---- Fiscal 2025 (December 2025) ----
|
||||
fy2025 = {date >= [2025-01-01] AND date < [2026-01-01]}
|
||||
profit_2025 = -cost(pre_tax AND fy2025) ; 3,890.00
|
||||
tax_2025 = profit_2025 * small_business_rate ; 427.90, accrued Dec 31
|
||||
|
||||
gst_collected_2025 = -cost({account = Liabilities:GST:Collected} AND fy2025) ; 772.50
|
||||
gst_itc_2025 = cost({account = Assets:GST:InputTaxCredits} AND fy2025) ; 12,565.00
|
||||
gst_net_2025 = gst_collected_2025 - gst_itc_2025 ; -11,792.50 = refund due
|
||||
|
||||
// ---- 2026 year to date ----
|
||||
ytd = {date >= [2026-01-01] AND date < [2027-01-01]}
|
||||
profit_ytd = -cost(pre_tax AND ytd) ; 12,820.00
|
||||
tax_ytd = profit_ytd * small_business_rate ; 1,410.20 to set aside
|
||||
|
||||
gst_collected_ytd = -cost({account = Liabilities:GST:Collected} AND ytd) ; 3,640.00
|
||||
gst_itc_ytd = cost({account = Assets:GST:InputTaxCredits} AND ytd) ; 404.50
|
||||
gst_net_ytd = gst_collected_ytd - gst_itc_ytd ; 3,235.50 owing to CRA
|
||||
pst_ytd = -cost({account = Liabilities:PST:Collected} AND ytd) ; 4,900.00 owing to BC
|
||||
|
||||
// Cash to hold back for tax this year
|
||||
set_aside = tax_ytd + gst_net_ytd + pst_ytd ; 9,545.70
|
||||
|
||||
// Function: GST included in a tax-inclusive receipt total
|
||||
gst_in(total) = total * gst_rate / (1 + gst_rate)
|
||||
gst_in(1,050) ; 50.00
|
||||
Reference in New Issue
Block a user