2013-04-29 20:20:05 +00:00
|
|
|
; -*- ledger -*-
|
|
|
|
; -*- coding: utf-8 -*-
|
|
|
|
;
|
|
|
|
; config-accounts.ledger: The Ledger CLI accounts declarations for NPO use-case.
|
|
|
|
;
|
|
|
|
; Copyright © 2013, Bradley M. Kuhn.
|
|
|
|
;
|
|
|
|
; The copyright holders wish that this document could be placed into the
|
|
|
|
; public domain. However, should such a public domain dedication not be
|
|
|
|
; possible, the copyright holders grant a waiver and/or license under the
|
|
|
|
; terms of CC0-1.0, as published by Creative Commons, Inc. A copy of CC0-1.0
|
|
|
|
; can be found in the same repository as this README.md file under the
|
|
|
|
; filename CC0-1.0.txt. If this document has been separated from the
|
|
|
|
; repository, a [copy of CC0-1.0 can be found on Creative Commons' website at
|
|
|
|
; http://creativecommons.org/publicdomain/zero/1.0/legalcode
|
|
|
|
|
|
|
|
; ############################## GENERAL/SHARED ACCOUNTS #######################
|
|
|
|
|
|
|
|
; Shared Asset Accounts
|
|
|
|
|
2013-05-10 20:54:44 +00:00
|
|
|
define assetChecker(amt) = (amt > -10.00 or (tag("TaxImplication") !~ /^\s*$/ and tag("Entity") !~ /^\s*$/))
|
|
|
|
|
2013-04-29 20:20:05 +00:00
|
|
|
account Asset:Checking
|
2013-05-10 20:54:44 +00:00
|
|
|
assert assetChecker(amount)
|
2013-04-29 20:20:05 +00:00
|
|
|
note Checking account for entire organization
|
|
|
|
assert commodity == "$"
|
|
|
|
|
|
|
|
; Shared Liabilities Accounts
|
|
|
|
|
|
|
|
account Liabilities:Credit Card:Visa
|
|
|
|
note Visa Credit Card account for entire organization
|
2013-04-29 21:55:14 +00:00
|
|
|
assert commodity == "$"
|
2013-04-29 20:20:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
; Organizational accrual accounts
|
|
|
|
|
2013-04-29 21:55:14 +00:00
|
|
|
account Accrued:Accounts Receivable:Main Org
|
|
|
|
note Accrued receivables for Main Org
|
|
|
|
assert commodity == "$"
|
2013-04-29 20:20:05 +00:00
|
|
|
|
2013-04-29 21:55:14 +00:00
|
|
|
; Organizational Expense Accounts
|
2013-04-29 20:20:05 +00:00
|
|
|
|
|
|
|
; NOTE: the payee =~ test is *not* included herein and must be cut-and-pasted
|
|
|
|
; to the assert in ever Expense account because of the following bug:
|
|
|
|
; http://bugs.ledger-cli.org/show_bug.cgi?id=953
|
|
|
|
|
2013-04-29 23:55:07 +00:00
|
|
|
define expenseChecker() = (tag("Receipt") !~ /^\s*$/ or tag("Invoice") !~ /^\s*$/ or tag("Statement") !~ /^\s*$/) and tag("Program") !~ /^\s*$/
|
2013-04-29 20:20:05 +00:00
|
|
|
; or payee =~ /NEVER CHARGED/
|
|
|
|
|
|
|
|
account Expense:Main Org:Office Supplies
|
|
|
|
assert expenseChecker() or payee =~ /NEVER CHARGED/
|
|
|
|
note Main Organization's Office Supplies and Sundries
|
|
|
|
|
|
|
|
account Expense:Main Org:Payroll:Salary
|
|
|
|
assert expenseChecker() or payee =~ /NEVER CHARGED/
|
|
|
|
note Main Organization's Staff Salaries
|
|
|
|
|
|
|
|
account Expense:Main Org:Payroll:Benefits
|
|
|
|
assert expenseChecker() or payee =~ /NEVER CHARGED/
|
|
|
|
note Main Organization's Staff Benefits
|
|
|
|
|
|
|
|
account Expense:Main Org:Phones
|
|
|
|
assert expenseChecker() or payee =~ /NEVER CHARGED/
|
|
|
|
note Main Organization's Phone Expenses
|
|
|
|
|
|
|
|
account Expense:Main Org:Hosting
|
|
|
|
assert expenseChecker() or payee =~ /NEVER CHARGED/
|
|
|
|
note Main Organization's Network Hosting Provider services
|
|
|
|
|
|
|
|
account Expense:Main Org:Occupancy
|
|
|
|
assert expenseChecker() or payee =~ /NEVER CHARGED/
|
|
|
|
note Main Organization's Occupancy for Office Space and the like
|
2013-04-29 21:54:43 +00:00
|
|
|
|
|
|
|
; Organizational Income Accounts
|
|
|
|
|
|
|
|
account Income:Main Org:Donations
|
|
|
|
assert tag("IncomeType") =~ /^Donations$/
|
|
|
|
note Donation income to the Main Org.
|