Преминете към основното съдържание

10 публикации маркиран с/със "Double-Entry"

Вижте всички етикети

Разбиране на журналните записи в Beancount

· 8 минути четене
Mike Thrift
Mike Thrift
Marketing Manager

Журналните записи са гръбнакът на двойното записно счетоводство и в Beancount всяка транзакция, маркирана с *, е журнален запис. Това ръководство обяснява основните понятия — дебити и кредити, коригиращи записи и обратни записи — и показва как те се отразяват чисто в текстовия синтаксис на Beancount. Ще научите как да водите точни книги с минимална формалност.


2025-09-02-journal-entries-in-beancount

Бърз преглед: Какво е журнален запис?

Журналният запис е официалният, датиран запис на финансова транзакция. Той се изразява чрез дебити и кредити, които поддържат фундаменталното счетоводно уравнение в баланс:

Assets=Liabilities+EquityAssets = Liabilities + Equity

В двойно записната система всяка транзакция засяга поне две сметки и общата сума на дебитите трябва да е равна на общата сума на кредитите. Това простото правило прави последващите финансови отчети като отчета за печалбата и загубата и баланса надеждни и точни.


Дебити и кредити за една минута

Концепциите за дебити и кредити могат да бъдат объркващи в началото, но те се свеждат до няколко прости правила. Помислете по следния начин: „от къде дойде стойността?“ (кредит) и „къде отиде стойността?“ (дебит).

Ето кратка таблица за това как се увеличават петте основни типа сметки:

Тип сметкаУвеличава се с
Assets (Активи)Дебит
Expenses (Разходи)Дебит
Liabilities (Задължения)Кредит
Equity (Капитал)Кредит
Income (Приходи)Кредит

Как изглежда журнален запис в Beancount

Beancount използва прости, четими за хора директиви, за да записва транзакции. Всяка транзакция трябва да се балансира до нула за всяка стока (например USD, EUR, акции AAPL). Ако не се балансира, Beancount ще генерира грешка.

2025-09-10 * "Coffee Bar" "Team coffee"
Expenses:Food:Coffee 18.00 USD
Assets:Bank:Checking -18.00 USD

Обърнете внимание как двете постинги (редове със сметки) се сумират до нула: $18.00 + (-$18.00) = 0.

Можете да добавяте мощен контекст директно в описанието, като използвате етикети (например #clientX) за филтриране и връзки (например ^INV-2025-001) за свързване на свързани записи.

Например, ето как можете да свържете фактура с нейното плащане:

; Първо, запишете фактурата, изпратена на клиента
2025-09-15 * "Acme Corp" "Invoice 2025-001 #clientX ^INV-2025-001"
Assets:AccountsReceivable 1000.00 USD
Income:Consulting -1000.00 USD

; По-късно, запишете плащането и го свържете обратно към оригиналната фактура
2025-09-28 * "Acme Corp" "Payment on ^INV-2025-001"
Assets:Bank:Checking 1000.00 USD
Assets:AccountsReceivable -1000.00 USD

Етикетът #clientX ви позволява лесно да филтрирате всички транзакции за този клиент, а връзката ^INV-2025-001 създава връзка между двата записа, която можете да проследявате в отчетите.


Чести журнални записи (готови за копиране)

Тук са няколко често срещани бизнес транзакции, форматирани за Beancount.

Собственик внася кеш

Собственик внася лични средства за стартиране на бизнеса.

2025-01-01 * "Owner" "Initial capital contribution"
Assets:Bank:Checking 10000.00 USD
Equity:Owner-Capital -10000.00 USD

Продажба в брой с данък върху продажбите

Клиент плаща в брой за продукт, включително 8 % данък, който по-късно трябва да бъде внесен към държавата.

2025-01-05 * "Walk-in Customer" "Cash sale with 8% tax"
Assets:Cash 108.00 USD
Income:Sales -100.00 USD
Liabilities:Tax:Sales -8.00 USD

Продажба на кредит (фактура) и събиране

Предоставяте услуга и фактурирате клиента, след което получавате плащане по-късно.

2025-01-10 * "Acme Corp" "Consulting invoice ^INV-2025-002"
Assets:AccountsReceivable 2500.00 USD
Income:Consulting -2500.00 USD

2025-01-30 * "Acme Corp" "Payment on ^INV-2025-002"
Assets:Bank:Checking 2500.00 USD
Assets:AccountsReceivable -2500.00 USD

Разход с кредитна карта

Закупувате офис консумативи с фирмена кредитна карта.

2025-01-12 * "OfficeMax" "Supplies on credit card"
Expenses:Office:Supplies 75.00 USD
Liabilities:CreditCard -75.00 USD

Заплата (опростен модел)

Извършвате заплати, записвайки брутната заплата, удръжките за данъци и нетното плащане от банковата сметка.

2025-01-31 * "Payroll" "January wages and withholdings"
Expenses:Payroll:Wages 2000.00 USD
Liabilities:Taxes:Withheld -400.00 USD
Assets:Bank:Checking -1600.00 USD

Месечна амортизация

Записвате месечната амортизационна разход за актив, например лаптоп.

2025-01-31 * "Depreciation" "Laptop, straight-line"
Expenses:Depreciation 100.00 USD
Assets:Equipment:AccumDepr -100.00 USD

Предплатен разход и месечно отписване

Плащате за цялогодишна застраховка предварително, след което признавате един месец от разхода.

; 1. Плащане за годишната полица
2025-01-01 * "InsureCo" "Annual insurance premium"
Assets:Prepaid:Insurance 1200.00 USD
Assets:Bank:Checking -1200.00 USD

; 2. Признаване на един месец разход в края на януари
2025-01-31 * "InsureCo" "Amortize 1/12 of insurance"
Expenses:Insurance 100.00 USD
Assets:Prepaid:Insurance -100.00 USD

Неприсъединени приходи и месечно признаване

Клиент предплаща за 3‑месечен абонамент. Записвате парите и след това признавате един месец приход.

; 1. Клиентът предплаща за услугата
2025-02-01 * "Subscriber" "3-month plan prepaid"
Assets:Bank:Checking 300.00 USD
Liabilities:Unearned:Subs -300.00 USD

; 2. Признаване на един месец приход след предоставяне на услугата
2025-02-28 * "Recognition" "Recognize month 1 of 3"
Liabilities:Unearned:Subs 100.00 USD
Income:Subscriptions -100.00 USD

Резерв за лоши дългове и отписване

Създавате резерв за потенциално неплатени фактури и по-късно отписвате конкретна лоша фактура.

; 1. Създаване на резерв от 2 % от вземанията
2025-03-31 * "Provision" "2% of A/R for doubtful accounts"
Expenses:BadDebt 200.00 USD
Assets:AllowanceForDoubtful -200.00 USD

; 2. Отписване на конкретна фактура, която няма да бъде платена
2025-04-15 * "Write-off" "Customer XYZ invoice"
Assets:AllowanceForDoubtful 150.00 USD
Assets:AccountsReceivable -150.00 USD

Периодичен инвентар и корекция на COGS

В края на периода изчислявате себестойността на продадените стоки (COGS), като коригирате инвентарната сметка.

2025-03-31 * "COGS adjustment" "Periodic inventory method"
Expenses:COGS 4500.00 USD
Assets:Inventory -4500.00 USD

Коригиращи записи vs. Обратни записи

Коригиращите записи се въвеждат в края на счетоводен период (месец или тримесечие), за да се съгласуват приходите и разходите с периода, в който са действително спечелени или понесени. Това включва начисления, отлагания и оценки като амортизация.

Обратните записи са незадължителни записи, направени в първия ден от новия период, които точно обръщат конкретен коригиращ запис от предишния период. Целта им е да опростят счетоводството. Като обърнете начисление, можете да запишете последващата кеш транзакция по стандартен начин, без да се налага да я разпределяте срещу сметка за задължения.

Пример: Начисляване и обратен запис на комунални услуги

Да кажем, че трябва да запишете разхода за комунални услуги за януари, но фактурата ще пристигне през февруари.

; 1. Начисляване на оценения разход в края на януари
2025-01-31 * "Accrual" "Estimate January utilities expense"
Expenses:Utilities 500.00 USD
Liabilities:Accrued:Utilities -500.00 USD

; 2. (По избор) Обратен запис на начисленото в първия ден на следващия период
2025-02-01 * "Reversal" "Undo January utilities accrual"
Liabilities:Accrued:Utilities 500.00 USD
Expenses:Utilities -500.00 USD

; 3. Записване на действителното плащане, когато фактурата пристигне през февруари
; Фактурираното е 520 USD. Поради обратния запис можете
; да запишете пълната сума в разходната сметка без проблем.
; Нетният разход за февруари ще бъде 520 - 500 = 20 USD.
2025-02-10 * "City Utilities" "Payment for January bill"
Expenses:Utilities 520.00 USD
Assets:Bank:Checking -520.00 USD

Бележка: Примерът в плана показва разделяне на окончателното плащане. Методът с обратен запис е алтернатива, която опростява окончателния запис.


Контролен списък за всеки журнален запис в Beancount

Следвайте тези стъпки, за да гарантирате чисти и правилни записи:

  1. Започнете с датата (ГГГГ-ММ-ДД) и флага за транзакция (*).
  2. Добавете получател и описателен текст. Използвайте #етикети и ^връзки за по‑лесно търсене.
  3. Включете поне два постинга (редове със сметки), които се балансират до нула.
  4. Уверете се, че всички комодити (например USD, EUR) са балансирани.
  5. Прегледайте коментари и етикети за допълнителен контекст.
  6. Проверете дали общата сума на дебитите е равна на общата сума на кредитите.
  7. Потвърдете, че смятате правилната сметка за дебит или кредит.
  8. При нужда, използвайте коригиращи или обратни записи.
  9. Прегледайте за грешки и коригирайте преди да финализирате.
  10. Запишете транзакцията в съответния файл.

Чести проблеми (и как Beancount помага)

  • Неизправен баланс – Ако сумата на дебитите не съвпада с сумата на кредитите, Beancount ще спре обработката и ще покаже къде е грешката.
  • Грешно използване на етикети – Етикетите се прилагат към целия запис, а не към отделни постинги; използвайте ги за групиране, а не за корекция на суми.
  • Пренебрегване на коригиращи записи – Без тях финансовите отчети могат да бъдат подвеждащи; Beancount изисква балансирани записи, което ви принуждава да ги включите.
  • Пренаписване на коментари – Коментарите в кода са полезни за разбиране, но не влияят на валидността; Beancount ги игнорира, така че можете спокойно да ги оставяте или превеждате.

Къде да продължите

  • Прегледайте документацията – Официалната документация на Beancount съдържа подробни описания на всички функции.
  • Изучете отчети – Научете как да генерирате отчети за печалба/загуба, баланс и паричен поток.
  • Автоматизирайте – Използвайте скриптове за автоматично генериране на записи от вашите системи.
  • Общувайте с общността – Форумите и чат групите на Beancount са отличен източник за съвети и решения.

Приложение: Счетоводен жаргон → Beancount карта

Счетоводна инструкцияBeancount действие
Дебитиране на разходПоложителна сума към сметка Expenses:
Кредитиране на разходОтрицателна сума към сметка Expenses:
Дебитиране на приходПоложителна сума към сметка Income:
Кредитиране на приходОтрицателна сума към сметка Income:
Дебитиране на активПоложителна сума към сметка Assets:
Кредитиране на активОтрицателна сума към сметка Assets:
Дебитиране на задължениеПоложителна сума към сметка Liabilities:
Кредитиране на задължениеОтрицателна сума към сметка Liabilities:
Дебитиране на капиталПоложителна сума към сметка Equity:
Кредитиране на капиталОтрицателна сума към сметка Equity:

Записване на данъци в Beancount (Практичният начин)

· 8 минути четене
Mike Thrift
Mike Thrift
Marketing Manager

Данъците могат да се чувстват като специално, сложно същество в света на личните финанси. Но какво ако не са? Какво ако можете да ги третирате точно като всеки друг паричен поток във вашия регистър? Добри новини: можете. Като третирате данъците като прости движения на стойност, вашият Beancount регистър ще остане чист, лесен за заявки и – най-важното – разбираем.

По-долу е практичен, без излишни усложнения, модел, който можете да вмъкнете в личен или малък бизнес Beancount файл. Това е проста система за обработка на заплати, данъчни плащания и дори онези досадни възстановявания, които преминават в новата година. Ще разгледаме необходимите сметки, ще преминем през реални примери и ще ви покажем точните заявки, които да изпълните, за да получите нужната информация.

2025-08-25-recording-taxes-in-beancount


Основните принципи

Преди да се потопим в кода, нека се съгласим върху няколко прости правила. Тези принципи поддържат логика и предотвратяват бъдещи главоболия.

  • Разделяйте „какво е“ от „кога парите се движат“. 🗓️
    Това е най-важната концепция. Данъчният разход принадлежи на годината, в която сте спечелили дохода (например 2024), дори ако сметката с IRS я уредите през април 2025. Ако не отделите времето на разхода от времето на паричното плащане, вашите годишни отчети ще станат хаотични и подвеждащи.

  • Запазете йерархията на сметките проста и скучна. 📁
    Именувайте сметките ясно според вида данък (например IncomeTax, SocialSecurity). Това прави вашите заявки изключително прости. Не натоварвайте имената на сметките с имена на доставчици или номера на формуляри като „W‑2“ или „1099“; използвайте метаданни и етикети за тези детайли.

  • Прегръщайте начисляването за корекции в края на годината. ⚖️
    Дори за личен регистър, използването на проста начислена записка в края на годината е най-чистият начин да направите отчетите точни. Това означава признаване на разход или възстановяване в правилната година, дори ако парите се преместят едва следващата. Това е една малка допълнителна стъпка, която ви спестява умствени гимнастики по-късно.

  • Пишете за бъдещото си аз. 🧠
    Целта ви е яснота. Добавяйте допълнителни детайли, като данъчната година, към името на сметката само ако наистина улесняват вашите заявки. Избягвайте създаването на нов набор от сметки за всяка година (Expenses:Taxes:2024:Federal, Expenses:Taxes:2025:Federal и т.н.), освен ако нямате убедителна причина. Плоска структура често е по‑лесна за управление.


Минимален скелет на сметките

Ето базов набор от сметки, с който да започнете. Тази структура е ориентирана към САЩ, но можете лесно да адаптирате имената към данъчната система на вашата страна. Просто поставете тези open директиви във вашия Beancount файл.

; --- US Federal Income & Payroll Taxes ---
; За парите, удържани от вашата заплата
2024-01-01 open Expenses:Taxes:Federal:IncomeTax:Withheld USD
; За предварителни плащания или данъчни сметки, които плащате директно
2024-01-01 open Expenses:Taxes:Federal:IncomeTax:Payments USD
; За данъчни възстановявания, които получавате
2024-01-01 open Expenses:Taxes:Federal:IncomeTax:Refunds USD

; Вашите вноски за FICA
2024-01-01 open Expenses:Taxes:Federal:SocialSecurity USD
2024-01-01 open Expenses:Taxes:Federal:Medicare USD

; --- Други чести данъци ---
; За данъци върху продажбите/употребата, които плащате при покупки
2024-01-01 open Expenses:Taxes:Sales USD

; --- Сметки за корекции в края на годината (по избор, но препоръчително) ---
; Временна сметка за данъци, които дължите, но още не сте платили
2024-01-01 open Liabilities:AccruedTaxes:Federal:Income USD
; Временна сметка за възстановяване, което ви се дължи, но още не е получено
2024-01-01 open Assets:Tax:Receivable USD

Тази настройка разделя удържани данъци от директни плащания и възстановявания, което прави лесно да видите къде са отишли парите ви. Сметките Liabilities и Assets са нашето тайно оръжие за точни годишни отчети.


Пример 1: Заплатата

Запишете типична заплата, при която данъците се удържат автоматично. Ключовото е да запишете брутната заплата първо, след което да покажете как е разделена между данъци и парите, които действително са пристигнали в банковата ви сметка.

2025-07-15 * "Employer Inc." "Salary for first half of July"
Income:Work:Salary -6,000.00 USD
Expenses:Taxes:Federal:IncomeTax:Withheld 1,200.00 USD
Expenses:Taxes:Federal:SocialSecurity 372.00 USD
Expenses:Taxes:Federal:Medicare 87.00 USD
Assets:Cash:Checking 4,341.00 USD

Тази една транзакция разказва цялата история:

  • Спечелихте 6 000 $ брутен доход.
  • 1 200 $ от тях бяха изпратени към IRS за федерален данък върху дохода.
  • 372 отидохакъмсоциалноосигуряванеи87отидоха към социално осигуряване и 87 към Medicare.
  • Останалите 4 341 $ са това, което получихте в ръка.

Съвет: Можете да добавите метаданни от вашия фиш (например pay_period_end: "2025-07-15") към транзакцията за лесен следователен път.


Пример 2: Подаване на данъчна декларация (проблемът с пресичане на години)

Сценарият, който обърква хората: е април 2025 г., а вие подавате данъците за 2024 г. Откривате, че след всички удръжки все още дължите допълнително 3 000 $.

Как да го запишете? Искате разходът да се отрази в 2024 г., но паричното плащане се случва през 2025 г. Ето два отлични начина.

Опция A: Ръчно двустъпково начисляване

Този метод е чисто Beancount, без нужда от приставки. Ясен, двустъпков процес.

Стъпка 1: Признаване на разхода в края на данъчната година.
На последния ден на 2024 г. създавате записка „true‑up“. Парите все още не се движат; просто признавате разхода и го паркирате във временна сметка за задължения.

2024-12-31 * "Federal income tax true-up for 2024"
Expenses:Taxes:Federal:IncomeTax:Payments 3,000.00 USD
Liabilities:AccruedTaxes:Federal:Income -3,000.00 USD

Сега вашият доходен отчет за 2024 г. правилно показва този разход от 3 000 $.

Стъпка 2: Записване на паричното плащане, когато се случи.
През април 2025 г., когато изпращате парите към IRS, изчиствате задължението.

2025-04-15 * "IRS" "Payment for 2024 tax return"
Liabilities:AccruedTaxes:Federal:Income 3,000.00 USD
Assets:Cash:Checking -3,000.00 USD

Вашите отчети за 2024 г. са точни, а паричният поток за 2025 г. също. Перфектно! Този модел работи и обратно за възстановяване – просто използвайте Assets:Tax:Receivable вместо сметката за задължения.

Опция B: Автоматизирайте с приставка

Ако предпочитате да запишете плащането в една транзакция, чудесната общностна приставка beancount_reds_plugins.effective_date може да помогне. Тя ви позволява да зададете различна „ефективна дата“ за отделен ред.

Първо, активирайте приставката във вашия главен Beancount файл:
plugin "beancount_reds_plugins.effective_date"

След това можете да напишете една транзакция. Приставката автоматично ще я раздели зад кулисите, за да направи отчетите точни.

; One entry; the plugin handles the rest
2025-04-15 * "IRS" "Payment for 2024 tax return"
Assets:Cash:Checking -3,000.00 USD
Expenses:Taxes:Federal:IncomeTax:Payments 3,000.00 USD
effective_date: 2024-12-31

Тук паричната част се записва на 15 април 2025 г., но разходната част се прилага ретроспективно към 31 декември 2024 г. Постига се същият резултат като Опция A, но с различен работен процес.


Какво с данъка върху продажбите?

За повечето лични регистри данъкът върху продажбите е прост. Ако не го искате да си го възстановявате, просто го отделете като отделен разход при покупка.

2025-07-19 * "Local Grocery Store"
Expenses:Groceries 12.32 USD
Expenses:Taxes:Sales 1.28 USD
Assets:Cash:Checking -13.60 USD

Това ви позволява лесно да проследявате колко харчите за данък върху продажбите през годината. Ако управлявате бизнес, който работи с ДДС, ще използвате по‑формална система със сметки за задължения и вземания, но принципът остава същият.


Запитвания, които всъщност ще изпълнявате

Целият смисъл на тази структура е да направи получаването на отговори лесно. Ето няколко BQL запитвания, за да видите вашата данъчна картина.

1. Какъв е общият ми федерален данък върху дохода за 2024 г.?

SELECT cost(sum(position))
WHERE account "Expenses:Taxes:Federal:IncomeTax"
AND date >= 2024-01-01 AND date < 2025-01-01;

2. Как се разпределя този общ сума между удръжки, плащания и възстановявания?

SELECT account, cost(sum(position))
WHERE account "Expenses:Taxes:Federal:IncomeTax"
AND date >= 2024-01-01 AND date < 2025-01-01
GROUP BY account
ORDER BY account;

3. Имат ли ми задължения или вземания по данъци? (Полезно за проверка на вашата работа!)

SELECT account, units(sum(position))
WHERE account "Liabilities:AccruedTaxes" OR account "Assets:Tax"
GROUP BY account
ORDER BY account;

Ако това запитване върне ненулеви баланси, означава, че имате начислени задължения, които още не сте уредили.


Бързи ЧЗВ

  • Наистина ли ми трябват сметки за всяка година като Expenses:Taxes:2024?
    Вероятно не. Методът за начисляване (или приставката) поддържа плоска структура, чиста и четлива. Създавайте годишни сметки само ако смятате, че ще улесни вашите конкретни заявки.

  • Може ли Beancount да изчисли данъците ми автоматично?
    Не директно, но може да подготви данните. Някои напреднали потребители пишат скриптове, които подават резултатите от BQL към софтуер за данъчно изчисление – полезно за оценка на задълженията през годината.

  • Това ли е данъчен съвет?
    Не. Това е модел за водене на книги, който организира вашите данни. Счетоводството е стабилно, но винаги се консултирайте с данъчен професионалист за съвет, специфичен за вашата ситуация.


Вашият готов за използване контролен списък

Готови ли сте да започнете?

  1. Добавете скелета на сметките към вашия Beancount файл (и адаптирайте имената за вашата страна).
  2. Записвайте заплатите, като започнете с брутния доход и разделите данъците.
  3. В края на годината начислете корекции за плащания или възстановявания, използвайки сметка за задължения/вземания (или използвайте приставката effective_date).
  4. Следете възстановявания като вземания и ги изчиствайте, когато парите пристигнат.
  5. Изпълнете горепосочените BQL запитвания, за да проверите тоталите преди подаване.

Дръжте всичко просто, последователно и вашият данъчен сезон най-накрая ще се чувства като още една част от вашата финансова история – не като мистерия, която трябва да се решава.

Счетоводният цикъл, в стил Beancount

· 8 минути четене
Mike Thrift
Mike Thrift
Marketing Manager

Финансовите отчети не се появяват като магия. Те са краен продукт на структуриран, повторяем процес, известен като счетоводен цикъл. Докато принципите са универсални, инструментите, които използвате, могат драматично да променят преживяването. Това ръководство ви води през счетоводния цикъл с фокус върху Beancount, мощният прост текстов счетоводен инструмент.

Ще видим как подходът на Beancount, ориентиран към текста, премахва досадните стъпки, какво трябва да автоматизирате и кои отчети ви дават най‑ясната картина за финансовото ви здраве. 🧑‍💻

2025-08-13-the-accounting-cycle-beancount-style


TL;DR: Работен процес в Beancount

  • Capture & Journal: Записвайте всяка транзакция като чисто двойно записване в .beancount текстовия файл.
  • Validate & Reconcile: Използвайте balance асерции, за да потвърдите, че вашият главен регистър съвпада с банковите извлечения, и пуснете bean-check, за да откриете грешки.
  • Review: Генерирайте необработен пробен баланс за бърза проверка.
  • Adjust: Публикувайте записи за начисления, отлагания, амортизация и други елементи в края на периода.
  • Re-review: Проверете коригирания пробен баланс, за да се уверите, че всичко е правилно.
  • Publish & Close: Генерирайте вашия Отчет за приходите и разходите, Баланс и Отчет за паричните потоци. Затварянето на книгите е опционално в Beancount, тъй като отчетите са датово‑осведомени.

Този поток може да се визуализира така:


Стъпка 1: Заснемане и записване на транзакциите

Това е основната стъпка. Всеки финансов събитие – продажба, покупка, банково такса – трябва да бъде записано. В Beancount правите това, като създавате транзакции в прост текстов файл, обикновено наречен main.beancount или организиран в множество файлове по години.

Всяка транзакция трябва да следва правилата на двойното записване, т.е. сумата от всички записи трябва да е нула. Beancount налага това автоматично.

2025-08-10 * "Walmart" "Purchase of office supplies"
Expenses:Office:Supplies 45.67 USD
Assets:Bank:Checking -45.67 USD
  • Pro‑Tip: Използвайте етикети като #project-phoenix или #client-acme, за да добавите измерения към данните си. Това прави заявките и отчетите изключително гъвкави по-късно.

Хигиена при съгласуване ✅

Най‑мощната функция за осигуряване на точност е асерцията за баланс. В края на отчетния период (например края на месеца) декларирате какъв трябва да бъде балансът на сметка трябва да бъде.

2025-08-31 balance Assets:Bank:Checking  12345.67 USD

Ако сумата от всички транзакции, засягащи Assets:Bank:Checking до тази дата, не е равна на 12345.67 USD, Beancount ще изведе грешка. Тази проста директива превръща вашия главен регистър в самопроверяващ се документ.

За тези, които въвеждат исторически данни, директивата pad може автоматично да създаде балансираща транзакция, за да съвпаднат началните ви баланси с първата ви асерция.


Стъпка 2: „Публикуване в главния регистър“ (Безплатно!)

В традиционните счетоводни системи първо записвате в „журнал“, а след това отделна стъпка „публикува“ стойностите в „главния регистър“.

С Beancount, вашият .beancount файл е едновременно журнал и главен регистър. Когато напишете и запазите транзакция, вече я сте публикували. Няма отделна стъпка. Тази директност е основно предимство на простия текстов счетоводен подход – това, което виждате, е това, което получавате.


Стъпка 3: Подготовка на необработен пробен баланс

Преди да започнете корекции, ви е нужен бърз „всичко ли се сумира?“ контрол. Пробният баланс е прост отчет, който изброява всяка сметка и нейния общ баланс. Общата сума на дебитните баланси трябва да е равна на общата сума на кредитните баланси.

Можете да го генерирате с проста заявка:

bean-query main.beancount \
"SELECT account, sum(position) GROUP BY 1 ORDER BY 1"

Или, за по‑визуален подход, отворете вашия регистър във Fava (уеб интерфейсът за Beancount) и отидете в отчета „Trial Balance“. Търсете нещо необичайно – активна сметка с кредитен баланс или разходна сметка с странна стойност.


Стъпка 4: Публикуване на коригиращи записи

Коригиращите записи са от съществено значение за точно отчитане по начин на начисляване. Те гарантират, че приходите се признават, когато са спечелени, а разходите – когато са понесени, независимо от момента на паричното движение.

Чести корекции включват:

  • Начисления: Записване на приход, който сте спечелили, но още не сте фактурирали, или разход, който сте понесли, но още не сте платили.
  • Отлагания: Обработка на предварителни плащания. Ако клиент ви плати за година услуги предварително, го записвате като пасив (Liabilities:UnearnedRevenue) и признавате 1/12 от него като приход всеки месец.
  • Не‑парични елементи: Записване на неща като амортизация на активи.
  • Корекции: Поправка на грешки или отчитане на пропуснати елементи от банкови източници, като малка лихва.

Пример: Начисляване на приход

Завършихте проект на 31 август, но фактурата ще изпратите през септември. За да признаете дохода в правилния период (август), правите коригиращ запис:

2025-08-31 * "Accrue revenue for client project #1042"
Assets:AccountsReceivable 3000.00 USD
Income:Consulting -3000.00 USD

Пример: Записване на амортизация

Вашата компания има график за амортизация на активи. В края на периода записвате разхода:

2025-12-31 * "Annual depreciation on computer equipment"
Expenses:Depreciation 4800.00 USD
Assets:Fixed:AccumulatedDepreciation -4800.00 USD

Стъпка 5: Пускане на коригиран пробен баланс и валидация

След като въведете коригиращите записи, отново пуснете отчета за пробен баланс. Това е вашият коригиран пробен баланс. Той предоставя окончателните числа, които ще се използват за създаване на финансовите отчети.

Това е и идеалният момент да изпълните вградената проверка на Beancount:

bean-check main.beancount

Тази команда проверява синтаксиса, правилата за балансиране и асерциите. Ако не върне нищо, книгите ви са механично коректни.


Стъпка 6: Публикуване на финансови отчети 📊

Това е наградата. С помощта на числата от коригирания пробен баланс можете да генерирате ключовите финансови отчети. Fava е най‑лесният начин, тъй като предоставя интерактивни, детайлни отчети „извън кутията“.

  • Отчет за приходите и разходите (Profit & Loss): Показва вашите приходи и разходи за определен период, като води до чист приход или загуба.
  • Баланс: Снимка на това, което притежавате (Активи) и какво дължите (Пасиви), както и вашия нетен капитал (Equity) към конкретна дата.
  • Отчет за паричните потоци: Съгласува началния и крайния кеш, като показва откъде е дошли парите и къде са отишли.

За персонализирани отчети можете да използвате Beancount Query Language (BQL). Ето заявка за месечен отчет за приходите и разходите:

-- P&L for August 2025
SELECT account, sum(position)
WHERE account '^(Income|Expenses)'
AND date >= 2025-08-01 AND date <= 2025-08-31
GROUP BY account ORDER BY account;

Стъпка 7: Затваряне на книгите (по избор)

В традиционната счетоводна практика процесът на „затваряне“ включва създаване на запис, който нулира всички временни сметки (Приходи и Разходи) и прехвърля нетния приход в сметка за собствен капитал, наречена Retained Earnings. Това формално нулира временните сметки за следващата година.

В Beancount тази стъпка обикновено не е необходима. Отчетите във Fava са датово‑осведомени; ако поискате P&L за 2025, ще се използват само данните от 2025. Балансите не „преливат“. Повечето потребители просто оставят баланса както е.

Ако обаче ви е необходим формален затвор за съответствие или докладване пред акционери, можете да го направите с проста годишна транзакция, която прехвърля общите приходи и разходи в Equity:Retained-Earnings.


Практичен месечен чек‑лист за затваряне

Ето повторим контролен списък за затваряне на книгите всеки месец с Beancount.

  • Capture: Импортирайте всички банкови и кредитни транзакции. Ръчно въведете кеш разходи или други елементи извън системата.
  • Reconcile: Добавете balance асерции за всички банкови сметки, кредитни карти и заеми, съответстващи на извлеченията ви.
  • Review: Прегледайте необработения пробен баланс във Fava. Разследвайте всякакви необичайни или неочаквани баланси. Проверете за стари неплатени фактури (Assets:AccountsReceivable) или задължения (Liabilities:AccountsPayable).
  • Adjust: Запишете начисления доход/разход, отложени приходи и необходимите корекции.
  • Validate: Пуснете bean-check. Прегледайте окончателния коригиран пробен баланс.
  • Publish: Генерирайте P&L и Баланс. Изпратете ги на заинтересованите страни или запазете за вашия архив.
  • Wrap-up: По желание, извършете запис за затваряне, ако вашият бизнес го изисква. Архивирайте копие от вашите .beancount файлове за периода.

Защо Beancount блести в счетоводния цикъл

  • Прозрачност и проверяемост: Вашият регистър е текстов файл. Можете да използвате git за контрол на версии, да преглеждате промените с diff и да сътрудничите с вашия счетоводител в ясен, недвусмислен формат.
  • Пълен контрол: Вие определяте вашата сметкоплан. Не сте заключени в структурата на софтуерен доставчик. Данните ви са ваши завинаги, в отворен формат.
  • Несравнима мощ: Комбинацията от SQL‑подобни заявки (BQL) и богат уеб интерфейс (Fava) ви дава несравнима сила за нарязване, анализ и разбиране на финансовите ви данни.

Копирай‑пейст фрагменти за старт

Прост сметкоплан:

option "title" "My Personal Ledger"
option "operating_currency" "USD"

;; --- Accounts ---
1970-01-01 open Assets:Bank:Checking
1970-01-01 open Assets:AccountsReceivable
1970-01-01 open Liabilities:CreditCard
1970-01-01 open Liabilities:UnearnedRevenue
1970-01-01 open Equity:Owner:Capital
1970-01-01 open Equity:Retained-Earnings
1970-01-01 open Income:Consulting
1970-01-01 open Expenses:Office:Supplies
1970-01-01 open Expenses:Software
1970-01-01 open Expenses:Depreciation

Полезна BQL заявка:

-- Find all customers with an outstanding balance
SELECT payee, sum(position)
WHERE account = 'Assets:AccountsReceivable'
GROUP BY payee
HAVING sum(position) > 0
ORDER BY sum(position) DESC;

Като съчетаете вечния счетоводен цикъл с модерните, текстово‑базирани инструменти на Beancount, получавате система, която е издръжлива, прозрачна и създадена да трае. Приятно счетоводство!

Beancount.io срещу Традиционен счетоводен софтуер: Кой е най-подходящ за вас?

· 8 минути четене
Mike Thrift
Mike Thrift
Marketing Manager

В продължение на десетилетия светът на бизнес счетоводството е доминиран от познат състав от затворени системи, базирани на графичен потребителски интерфейс (GUI), като QuickBooks, Xero и FreshBooks. Те поставиха стандарта, предлагайки лекота на използване и визуални работни процеси, които са предназначени за нетехнически потребители. Но за разработчиците, напредналите потребители и всеки, който цени абсолютната прозрачност и контрол, се появи коренно различен подход: Beancount.io.

Тази статия предоставя директно сравнение на Beancount.io с традиционния счетоводен софтуер. Ще разгледаме основните разлики във философията, гъвкавостта, цената и дългосрочната поддръжка, за да ви помогнем да решите коя система наистина отговаря на вашите нужди.

2025-08-08-beancount-io-vs-traditional-accounting-software

1. Философия и работен процес

Най-фундаменталната разлика между тези два подхода се крие в тяхната основна философия.

Beancount.io Beancount.io е изграден върху философията на обикновения текстов формат за счетоводство (plain-text accounting). В основата си всяка финансова транзакция е запис в обикновен текстов файл. Този модел на "счетоводство като код" приоритизира четливи от човека, контролируеми версии на записи. Вашите финансови данни съществуват във вечен, отворен формат, който вие притежавате напълно - той никога не може да бъде заключен от доставчик. Този работен процес е предназначен за потребители, които се чувстват удобно с редактори на код, системи за контрол на версиите като Git и инструменти от командния ред.

Традиционен софтуер Традиционните счетоводни платформи са базирани на графичен потребителски интерфейс (GUI) и се управляват чрез формуляри. Вие въвеждате данни с помощта на съветници, падащи менюта и визуални форми. Този подход приоритизира непосредствеността и достъпността, което улеснява нетехническите потребители да започнат работа без стръмна крива на обучение. Въпреки това, вашите данни се съхраняват в патентован формат или облачна база данни, често изискваща сложни процедури за експортиране и импортиране, ако някога решите да мигрирате към друга услуга.

Решение: Ако приоритизирате пълен контрол, собственост на данните, прозрачност и автоматизация, Beancount.io е ясният победител. Ако имате нужда от интерфейс "кликни и тръгни" с минимална крива на обучение, традиционният софтуер ще се почувства по-естествен.

2. Гъвкавост и персонализиране

Колко добре софтуерът може да се адаптира към вашите специфични нужди?

Beancount.io Да бъдеш 100% програмируем е суперсилата на Beancount.io. Той се интегрира безпроблемно с Python, което ви позволява да се свързвате към всеки API, да автоматизирате извличането на данни от банкови извлечения, програмно да маркирате транзакции въз основа на сложни правила и да генерирате персонализирани отчети, съобразени с вашите точни спецификации. Способността ви да разширявате и персонализирате е практически безкрайна, без никакви ограничения, наложени от доставчика.

Традиционен софтуер Тези платформи предлагат подбрана селекция от интеграции с популярни инструменти като PayPal, Stripe и различни услуги за заплати. Въпреки че са удобни, вие работите в оградената градина на доставчика. Персонализирането е ограничено до това, което платформата позволява, а разширеното отчитане или автоматизация често изисква надграждане до план от по-високо ниво или закупуване на добавки от трети страни. Можете да работите с техните API, но винаги ще бъдете обвързани от правилата и ограниченията на скоростта на тяхната екосистема.

Решение: Beancount.io осигурява несравнима гъвкавост за разработчици и технически потребители. Традиционните инструменти са по-подходящи за стандартни работни процеси "plug-and-play" с популярни бизнес приложения.

3. Сътрудничество и прозрачност

Начинът, по който работите с другите и одитирате вашите записи, се различава значително.

Beancount.io Сътрудничеството в Beancount.io се управлява чрез Git. Това прави всяка промяна във вашия финансов регистър напълно прозрачна и проверима. Можете да видите кой какво е променил, кога и защо - точно като работен процес за преглед на код. Това е идеално за разпределени екипи, които вече използват инструменти като GitHub или GitLab. Освен това няма скрити изчисления; всяко число в отчет може да бъде проследено обратно до точния запис в регистърния ви файл, което гарантира пълна одитируемост.

Традиционен софтуер Сътрудничеството се обработва чрез вградени потребителски роли и разрешения. Можете да поканите вашия счетоводител, счетоводен служител или бизнес партньори да имат достъп до книгите директно през уеб интерфейса. Това е много ефективно за предприятия, които следват традиционен модел на финансов надзор. Недостатъкът е, че някои вътрешни операции, като изчисляване на данъци или автоматизирани корекции на баланса, могат да бъдат непрозрачни "черни кутии", което затруднява независимата проверка на логиката.

Решение: Beancount.io е идеален за екипи, които ценят детайлната одитируемост и сътрудничеството в стил код. Традиционните системи са по-удобни за счетоводители за споделен GUI достъп в реално време.

4. Цена и собственост

Финансовите модели и концепцията за собственост на данни са коренно различни.

Beancount.io Основният софтуер на Beancount е с отворен код и е безплатен. Вие плащате само за услугите с добавена стойност на Beancount.io, които включват хостинг, интелигентна автоматизация и премиум функции. Няма такси за лицензиране на седалка, така че можете да мащабирате екипа си, без да правите допълнителни разходи. Най-важното е, че няма заключване към доставчик. Вашите данни са колекция от текстови файлове, които можете да местите, редактирате или съхранявате навсякъде и по всяко време.

Традиционен софтуер Тези услуги работят на абонаментен модел, обикновено таксуван месечно или годишно. Ценообразуването често е на нива въз основа на функции и може да се сблъскате с такси за потребител или компания, които се мащабират с вашата организация. Това създава зависимост; ако спрете да плащате, рискувате да загубите достъп до вашите данни и функционалността на софтуера. Това заключване към доставчик е значителен дългосрочен риск.

Решение: Beancount.io е значително по-рентабилен в дългосрочен план, особено за технически екипи, които ценят суверенитета на данните. Традиционният софтуер предлага предвидими абонаментни разходи, но създава дългосрочна зависимост.

5. Крива на обучение и приемане

Колко бързо можете да започнете работа?

Beancount.io Кривата на обучение е безспорно по-стръмна. Приемането на тази система изисква удобство при редактиране на текст, разбиране на основния синтаксис и познаване на инструменти като Git. Въпреки това, първоначалната инвестиция се отплаща. След като бъде овладян, Beancount позволява невероятно бързи, повтарящи се работни процеси и осигурява много по-задълбочено, основополагащо разбиране на вашата финансова картина.

Традиционен софтуер Тези платформи са предназначени за нетехнически собственици на бизнес и предлагат минимално триене при въвеждане. Можете да започнете работа, да изпращате фактури и да категоризирате разходи в рамките на минути. Въпреки това, научаването на по-разширените функции, като например създаване на персонализирани отчети или настройка на счетоводство за множество обекти, все още изисква значителна инвестиция на време.

Решение: Beancount.io е правилният избор, ако сте готови да инвестирате време в изучаването на мощна система. Традиционният софтуер е по-бърз за стартиране за нетехнически потребители, които се нуждаят от незабавни резултати.

Сравнение рамо до рамо

ФункцияBeancount.ioТрадиционен счетоводен софтуер
Основна философияСчетоводство като код; обикновен текстов регистърGUI-базиран; управляван от формуляри
Формат на даннитеОтворен (Обикновен текст)Патентован (База данни)
Собственост на данните100% собственост и преносимост от потребителяКонтролиран от доставчика; потенциално заключване
ГъвкавостБезкрайна; напълно програмируема с PythonОграничена до екосистемата и API на доставчика
СътрудничествоБазирано на Git; прозрачна история на променитеПотребителски разрешения, базирани на роли
ПрозрачностНапълно одитируем; няма скрити изчисленияНякои изчисления могат да бъдат непрозрачни
Ценови моделОсновен с отворен код; плащане за хостинг/автоматизацияМесечен/годишен абонамент (SaaS)
Крива на обучениеПо-стръмна за нетехнически потребителиНиска; проектирана за бърз старт
Идеален потребителРазработчици, напреднали потребители, анализатори на данниСобственици на МСП, нетехнически екипи

Кога да изберете всяка

Решението в крайна сметка зависи от уменията, приоритетите и работния процес на вашия екип.

Изберете Beancount.io, ако:

  • Сте разработчик, анализатор на данни или технически настроен напреднал потребител.
  • Цените абсолютната прозрачност, контрол и дългосрочната преносимост на данните преди всичко друго.
  • Искате напълно да автоматизирате счетоводството си и да го интегрирате дълбоко във вашите персонализирани работни процеси.
  • Чувствате се удобно да третирате финансовите си записи със същата строгост като изходния код.

Изберете традиционен счетоводен софтуер, ако:

  • Искате бърз старт, визуален интерфейс без никаква техническа настройка.
  • Трябва да осигурите незабавен, удобен за счетоводители достъп с минимално обучение.
  • Предпочитате управлявано, хоствано решение, където доставчикът се справя с всички актуализации и съответствие.
  • Вашите нужди за интеграция са задоволени от популярни, готови приложения.

Заключителни мисли

Beancount.io не се опитва да бъде по-добър QuickBooks - това е коренно различен начин на мислене. Той представя счетоводството като код. За техническите професионалисти тази промяна предлага същия скок напред, който контролът на версиите с Git донесе в разработката на софтуер: пълна прозрачност, перфектна възпроизводимост и максимален контрол.

В същото време традиционният счетоводен софтуер продължава да печели на базата на лекота на използване и готови интеграции за нетехнически екипи. Правилният избор не е въпрос на кое е "по-добро" като цяло, а кое е идеалното за вашия работен процес, вашите приоритети и степента на контрол, който изисквате върху вашите финансови данни.

The Beancount Ecosystem: A Comprehensive Analysis

· 45 минути четене
Mike Thrift
Mike Thrift
Marketing Manager

Core Functionality and Philosophy of Beancount

Beancount is an open-source, double-entry accounting system that uses plain text files to record transactions. At its core, Beancount treats your ledger as a dataset defined by a simple, strict grammar. Every financial event (transactions, account openings, commodity prices, etc.) is a directive in a text file, which Beancount parses into an in-memory database of entries. This design enforces the double-entry principle: every transaction must balance debits and credits across accounts. The result is a highly transparent and auditable ledger that you can version-control, inspect, and query with ease.

2025-04-15-beancount-ecosystem

Philosophy – correctness and minimalism: Beancount’s design prioritizes data integrity and simplicity. Its creator, Martin Blais, describes Beancount as “pessimistic” in assuming the user will make mistakes and thus imposes extra checks and constraints. For example, Beancount will not allow you to remove assets that were never added (preventing negative stock holdings or cash balances) and can enforce that every account is opened before use. It lacks Ledger’s concept of “virtual” or automatically balanced postings – an intentional choice to force fully balanced entries. Beancount effectively “goes hardcore” on correctness with more cross-checks than basic double-entry provides. This cautious approach appeals to users who “do not trust themselves too much” and want the software to catch their errors.

Minimal options, maximum consistency: In contrast to Ledger’s myriad of command-line flags and tuning options, Beancount opts for minimalism. There are very few global options, and none that change transaction semantics outside the ledger file. All configuration that affects accounting (like commodity cost basis methods or booking assumptions) is done in-file via directives or plugins, ensuring that loading the same file always produces the same results regardless of how reports are generated. This design avoids the complexity of Ledger’s many knobs and the subtle interactions between them. Beancount’s philosophy is that an accounting tool should be a stable, deterministic pipeline from input file to reports. It achieves this by treating the ledger as an ordered stream of directives that can be programmatically processed in sequence. Even things that Ledger treats as special syntax (like opening balances or price statements) are first-class directives in Beancount’s data model, which makes the system highly extensible.

Extensibility via plugins and query language: Beancount is implemented in Python and provides hooks to inject custom logic into the processing pipeline. Users can write plugins in Python that operate on the stream of transactions (for example, to enforce a custom rule or generate automatic entries). These plugins run as the file is processed, effectively extending Beancount’s core functionality without needing to modify the source. Beancount also includes a powerful query language (inspired by SQL) to slice and dice the ledger. The bean-query tool treats the parsed ledger as a database and lets you run analytical queries on it – for instance, summing expenses by category or extracting all transactions for a given payee. In Beancount 3.x, this querying capability was moved into a standalone beanquery package, but from a user perspective it still provides flexible reporting via SQL-like queries.

Plain text and version control: As a plaintext accounting tool, Beancount emphasizes user control and longevity of data. The ledger is simply a .beancount text file that you can edit in any text editor. This means your entire financial history is stored in a human-readable form, and you can put it in Git or another VCS to track changes over time. Users often keep their Beancount file under version control to maintain an audit trail of every edit (with commit messages describing changes). This approach aligns with Beancount’s philosophy that accounting data, especially personal or small-business finances, should be transparent and “future-proof” – not locked in a proprietary database. In Martin Blais’s own words, Beancount is a “labor of love” built to be simple, durable, and free for the community. It was first developed around 2007 and has evolved through major rewrites (v1 to v2, and now v3 in 2024) to refine its design while preserving its core philosophy of minimalism and correctness.

Tools, Plugins, and Extensions in the Beancount Ecosystem

The Beancount ecosystem has grown a rich set of tools, plugins, and extensions that enhance the core ledger functionality. These cover importing data, editing ledgers, viewing reports, and adding specialized accounting features. Below is an overview of key components and add-ons in the Beancount world:

Data Importing Utilities (Importers)

One of the most important needs for practical use is importing transactions from banks, credit cards, and other financial institutions. Beancount provides an import framework and community-contributed import scripts for this purpose. In Beancount 2.x, the built-in module beancount.ingest (with commands like bean-extract and bean-identify) was used to define importer plugins in Python and apply them to downloaded statements. In Beancount 3.x, this has been replaced by an external project called Beangulp. Beangulp is a dedicated importers framework that evolved from beancount.ingest and is now the recommended way to automate transaction import for Beancount 3.0. It allows writing Python scripts or command-line tools that read external files (like CSV or PDF statements) and output Beancount entries. This new approach decouples import logic from the Beancount core – for example, the old bean-extract command has been removed in v3, and instead your import scripts themselves produce transactions via Beangulp’s CLI interface.

Dozens of ready-made importers exist for different banks and formats, contributed by the community. There are importer scripts for institutions around the world – from Alipay and WeChat Pay in China, to various European banks (Commerzbank, ING, ABN AMRO, etc.), to US banks like Chase and Amex. Many of these are collected in public repositories (often on GitHub) or in packages like beancount-importers. For instance, the Tarioch Beancount Tools project (tariochbctools) provides importers for Swiss and UK banks and even handles crypto transaction imports. Another example is Lazy Beancount, which packages a set of common importers (for Wise, Monzo, Revolut, IBKR, etc.) and provides a Docker-based setup for easy automation. No matter which bank or financial service you use, chances are someone has written a Beancount importer for it – or you can write your own using Beangulp’s framework. The flexibility of Python means importers can handle parsing CSV/Excel files, OFX/QIF downloads, or even scraping APIs, then emit transactions in standardized Beancount format.

Editing and Editor Integration

Because Beancount ledgers are just text, users often leverage their favorite text editors or IDEs to maintain them. The ecosystem provides editor support plugins to make this experience smoother. There are extensions for many popular editors that add syntax highlighting, auto-completion of account names, and real-time error checking:

  • Emacs Beancount-Mode: An Emacs major mode (beancount-mode) is available to edit .beancount files, offering features like syntax coloring and integration with Beancount’s checker. It can even run bean-check in the background so that errors in the ledger (like an unbalanced transaction) are flagged as you edit.
  • VS Code Extension: A Beancount extension on the VSCode Marketplace provides similar conveniences for Visual Studio Code users. It supports syntax highlighting, alignment of amounts, auto-completion for accounts/payees, and even on-the-fly balance checks when you save the file. It can also integrate with Fava, letting you launch the Fava web interface from within VSCode.
  • Plugins or modes also exist for Vim, Atom, and other editors. For example, there’s a Tree-sitter grammar for Beancount, which powers syntax highlighting in modern editors and was even adopted in Fava’s web-based editor component. In short, whatever your editing environment, the community has likely provided a plugin to make editing Beancount files convenient and error-free.

For quick entry of transactions outside of traditional editors, there are also tools like Bean-add and mobile apps. Bean-add is a command-line tool that allows adding a new transaction via a prompt or one-liner, handling date and account suggestions. On mobile, a project called Beancount Mobile provides a simple interface to input transactions on the go (for example, recording a cash purchase from your phone). Additionally, a Beancount Telegram Bot exists to capture transactions through messaging – you can send a message with transaction details, and the bot formats it into your ledger file.

Web Frontends and Visualization Tools

(Fava) Fava’s web interface provides an interactive dashboard for Beancount, featuring reports like an income statement with visualizations (shown here as a treemap of expenses by category) alongside tables of accounts and balances.

The flagship frontend for Beancount is Fava, a modern web interface. Fava runs as a local web app that reads your Beancount file and produces a rich interactive experience in your browser. It offers a full suite of reports: balance sheet, income statement, net worth over time, portfolio holdings, performance charts, budgets, and more – all out of the box. Users often cite Fava as a major reason for choosing Beancount over other plain-text accounting tools. With a single command (fava ledger.beancount), you can browse your finances with graphs and tables instead of text. Fava supports features like: drilling down on accounts, filtering transactions by payee or tag, a query editor (so you can run Beancount queries and see results in the browser), and even an integrated web-based editor for your ledger. It is highly usable, making plain text accounting approachable for those who prefer visual interfaces.

Under the hood, Fava is written in Python (Flask on the backend) and JavaScript (Svelte on the frontend). It has its own release cycle and is actively maintained. Notably, Fava has kept pace with Beancount’s development – for instance, Fava 1.30 added support for Beancount v3, switching to use the new beanquery and beangulp packages internally. (It still supports Beancount 2 for older ledgers.) Fava’s focus on usability includes nice touches like auto-complete in the web editor, and a sleek UI with dark mode and responsive charts. There’s also a spin-off called Fava-GTK, which packages Fava in a desktop application for GNOME/Linux users who prefer a native app feel.

Beyond Fava, other visualization and analysis options exist. Because Beancount data can be exported or queried as tables, users often leverage tools like Jupyter notebooks or Pandas for custom analysis. For example, one user describes pulling data from Beancount via the query interface into a Pandas DataFrame to prepare a custom report. There are also community-contributed scripts for specific reports – e.g. a portfolio allocation analysis tool or a process control chart for spending vs. net worth. However, for most people Fava provides more than enough reporting power without needing to write code. It even supports extensions: you can drop in Python files that add new report pages or charts to Fava. A notable extension is fava-envelope for envelope budgeting within Fava. Overall, Fava serves as the central visualization hub of the Beancount ecosystem.

Command-Line Utilities and Scripts

Beancount comes with various CLI tools (especially in the older v2 branch, some of which were trimmed in v3). These tools operate on your ledger file to check it or generate specific reports in text or HTML:

  • bean-check: a validator that checks for syntax errors or accounting errors in the file. Running bean-check myfile.beancount will alert you to any imbalance, missing account, or other issues, and output nothing if the file is error-free.
  • bean-format: a formatter that tidies up your ledger by aligning numbers into neat columns, much like running a code formatter on source code. This helps keep the file clean and readable.
  • bean-query: an interactive shell or batch tool to run Beancount’s query language on your ledger. You can use it to produce custom tabular reports (e.g., bean-query myfile.beancount "SELECT account, sum(amount) WHERE ...").
  • bean-report: a versatile report generator (in v2) that can output predefined reports (balance sheet, income statement, trial balance, etc.) to the console or to files. For example, bean-report file.beancount balances would print account balances. (In practice, many of these text reports have been supplanted by Fava’s nicer presentation.)
  • bean-web / bean-bake: an older web interface that would serve the reports on localhost or “bake” them as static HTML files. These were mostly used before Fava became popular; bean-web provided a basic web view of the same reports bean-report could generate. In Beancount 3, bean-web has been removed (since Fava is the recommended web frontend now, offering a superior experience).
  • bean-example: a utility to generate an example ledger file (useful for newcomers to see a template of Beancount entries).
  • bean-doctor: a debugging tool that can diagnose issues in your ledger or environment.

It’s worth noting that as of Beancount v3, many of these tools were moved out of the core project. The core Beancount package was streamlined, and tools like the query engine and importers were split into separate packages (beanquery, beangulp, etc.) for easier maintenance. For example, bean-query’s functionality is now provided by the beanquery tool which is installed separately. From a user perspective, the functionality remains available; it’s just been modularized. The Arch Linux community noted this change when updating Fava: the Fava package added dependencies on beanquery and beangulp to support Beancount 3.x. This modular approach also allows others in the community to contribute to these auxiliary tools more independently of Beancount’s release cycle.

Beancount Plugins and Extensions

A standout strength of the Beancount ecosystem is the plugin system. By adding a plugin "module.name" line in your Beancount file, you can incorporate custom Python logic that runs during the ledger processing. The community has created many plugins to extend Beancount’s capabilities:

  • Data quality and rules: Examples include beancount-balexpr which lets you assert equations involving multiple accounts (e.g., Asset A + Asset B = Liability X), and beancount-checkclosed which auto-inserts balance assertions when you close an account to ensure it nets to zero. There’s even a plugin to ensure transactions in the file are sorted by date (autobean.sorted) to catch out-of-order entries.
  • Automation: The beancount-asset-transfer plugin can generate in-kind transfer entries between accounts (useful for moving stocks between brokers while preserving cost basis). Another, autobean.xcheck, cross-checks your Beancount ledger against external statements for discrepancies.
  • Recurring transactions and budgets: The “repeat” or interpolate plugin by Akuukis allows defining recurring transactions or spreading an annual expense over months. For budgeting, the fava-envelope extension (used via Fava) supports envelope budgeting methodology in plain text. There’s also MiniBudget by Frank Davies – a small standalone tool inspired by Beancount to help with budgeting for personal or small business use.
  • Tax and reporting: Some plugins help with tax accounting, like one that classifies capital gains into short vs long-term automatically. Another (fincen_114 by Justus Pendleton) generates an FBAR report for US taxpayers with foreign accounts, illustrating how Beancount data can be leveraged for regulatory reporting.
  • Community plugin repositories: There are curated plugin sets such as beancount-plugins (by Dave Stephens) focusing on things like depreciation entries, and beancount-plugins-zack (by Stefano Zacchiroli) which include assorted helpers like sorting directives.

In addition to plugins, other utility tools orbiting Beancount address specific needs. For example, beancount-black is an auto-formatter similar to the Black code formatter, but for Beancount ledger files. There’s a Beancount Bot (Telegram/Mattermost) for adding transactions via chat as mentioned, and an Alfred workflow for macOS to quickly append transactions to your file. A tool named Pinto offers a “supercharged” CLI with interactive entry (like an enhanced bean-add). For those migrating from other systems, converters exist (YNAB2Beancount, CSV2Beancount, GnuCash2Beancount, Ledger2Beancount) to help bring in data from elsewhere.

In summary, the Beancount ecosystem is quite extensive. Table 1 below lists some major tools and extensions with their roles:

Tool/ExtensionDescription
Fava (web interface)Full-featured web app for viewing and editing Beancount books. Provides interactive reports (balance sheet, income, etc.), charts, and query capabilities. Major usability booster for Beancount.
Beangulp (import framework)Standalone importer framework for Beancount v3, replacing older ingest module. Helps convert bank statements (CSV, PDF, etc.) into Beancount entries using plugin scripts.
Beanquery (query tool)Standalone SQL-like query engine for Beancount data. Replaces bean-query in v3, allowing advanced querying of transactions and balances via a familiar SELECT-FROM-WHERE syntax.
Bean-check / Bean-formatCore CLI tools to validate a Beancount file (check for errors) and auto-format it for consistency. Useful for maintaining a correct and clean ledger.
Editor Plugins (Emacs, VSCode, Vim, etc.)Plugins/modes that add Beancount syntax support and linting in text editors. Improve the experience of manually editing .beancount files with features like auto-complete and live error highlighting.
Community ImportersCollections of bank import scripts (many on GitHub) covering banks in US, EU, Asia, and more. Allow users to automatically ingest transactions from their financial institutions into Beancount.
Plugins (Ledger extensions)Optional in-file plugins to enforce rules or add functionality (e.g. expense sharing, recurring entries, custom balance assertions). Written in Python and run during file processing for customization.

| Converters (Migration tools) | Utilities to convert data from other formats into Beancount, e.g. from GnuCash or Ledger CLI to Beancount format. Facilitate adopting Beancount without starting from scratch. |

Comparison with Ledger, hledger, and Similar Systems

Beancount belongs to the family of plain text double-entry accounting tools, among which Ledger CLI (John Wiegley’s Ledger) and hledger are prominent. While all these systems share the core idea of plaintext ledger files and double-entry bookkeeping, they differ in syntax, philosophy, and ecosystem maturity. The following table highlights key differences between Beancount, Ledger, and hledger:

AspectBeancount (Python)Ledger CLI (C++)hledger (Haskell)
Syntax & File StructureStrict, structured syntax defined by a formal grammar (BNF). Transactions have explicit date flag "Payee" "Narration" lines and postings with quantities; all accounts must be explicitly opened/defined. No implicit postings; every transaction must balance.More free-form syntax. Payee/description typically on the same line as the date. Allows some implicit balancing (like a single-posting transaction can imply a second posting to a default account). Account names can be used without prior declaration. Offers lots of command-line options that can affect parsing (e.g., year assumptions, commodity merge rules).Largely follows Ledger’s syntax with minor differences. hledger is a reimplementation of Ledger’s core features in Haskell, so the journal format is very similar to Ledger’s (with some extensions and stricter parsing by default). For example, hledger is a bit more strict about dates and commodity syntax than Ledger, but not as strict as Beancount.
PhilosophyConservative & Pedantic. Emphasizes catching user errors and maintaining data integrity above all. Imposes many checks (balance assertions, lot tracking) by default. Minimal configuration – “one way to do it” approach for consistency. Designed as a library with plugins for extensibility (treats ledger data as a stream to be processed, enabling custom Python logic).Optimistic & Flexible. Trusts the user to input data correctly; fewer built-in constraints by default. Highly customizable with dozens of options and command flags to adjust behavior. Tends to be a monolithic tool with features built-in (reports, plots) and uses domain-specific language within the ledger for things like automated transactions and periodic transactions. Extensibility is typically via external scripts or the built-in query language rather than plugin APIs.Pragmatic & Consistent. Aims to bring Ledger’s approach to a broader audience with predictable behavior. hledger defaults to more consistency (no balancing assumptions without explicit accounts) and has fewer footguns than Ledger’s most lenient modes. It has a subset of Ledger’s features (some of Ledger’s more exotic options aren’t supported), but adds some of its own (like a web interface and CSV import built-in). Emphasizes stability and correctness, but without a plugin system like Beancount’s.
Transactions & BalancingStrict double-entry: every transaction must have equal total debits and credits. Does not allow unbalanced entries or placeholders (no “virtual postings” that auto-balance). Also enforces ordering independence: the ledger can be sorted by date arbitrarily because balance assertions are date-scoped, not relying on file order. Cost tracking for commodities is rigorous – when you sell assets, you must specify lots or Beancount will enforce FIFO/LIFO such that you can’t remove something you didn’t add.Allows more leniency in transactions. Ledger permits “virtual” postings (using square brackets [ ] or parentheses) which don’t require an explicit balancing account – often used to handle budgeting or implicit equity balancing. It’s possible in Ledger to enter an incomplete transaction (omitting one side) and let Ledger infer the balancing amount. Also, Ledger does not strictly enforce lot-by-lot asset removal; it will happily subtract from an aggregate commodity balance even if specific lots weren’t tracked. This makes it easier to, say, do average-cost accounting, but means Ledger won’t stop you from mistakes like selling more shares than you have in a given lot.
Inventory & Cost BasisPrecise lot tracking. Beancount attaches cost information to commodity lots (e.g., purchase of 10 shares at $100 each), and when reducing an inventory it requires matching a specific lot or using a defined strategy. It ensures capital gains and cost bases are computed correctly by design. Average-cost method isn’t the default unless you explicitly write logic for it, because Beancount treats each lot distinctly to preserve accuracy.More abstract inventory. Ledger treats commodity amounts more fluidly; by default all lots are merged in reports (it just shows total quantities). It provides options to report by lot or average cost if needed, but this is a reporting concern. Historically, Ledger did not use cost info to enforce balance in multi-commodity transactions, which could lead to subtle capital gains miscalculations. However, Ledger’s flexibility lets users choose FIFO, LIFO, average, etc., at report time via command-line flags.
Reporting & UIPrimarily through Fava (web UI) and bean-query/bean-report. Fava offers a polished web dashboard with graphs and charts, making Beancount very user-friendly for analysis. Also supports textual reports and SQL-like queries via bean-query. No official TUI (text UI), but editors/IDEs integration fills that gap.Primarily CLI-based reporting. Ledger has many built-in report commands (balance, register, stats, etc.) that output text to the terminal. It can produce charts (ASCII or via gnuplot) and even has some add-ons for HTML reports, but it does not have an official web interface maintained as part of the project. (There have been third-party attempts at web UIs for Ledger, but none as prominent as Fava for Beancount.) For a UI, users rely on terminal or maybe GUIs like Ledger-Live (a separate project).Offers both CLI and a simple Web UI. hledger inherits Ledger’s CLI reports (with similar commands) and additionally provides hledger-web, a basic web interface for viewing accounts and transactions in a browser. hledger-web isn’t as feature-rich as Fava, but it gives a read-only overview. hledger also has hledger-ui, a terminal curses-based interface for interactive use.
Extensibility & PluginsHigh extensibility via Python. The plugin API allows arbitrary Python code to run during ledger processing, which means users can implement custom features without modifying core. The ecosystem of plugins (for budgeting, etc.) showcases this. Also, one can write Python scripts to use Beancount’s libraries for custom reporting.Lower-level extensibility. Ledger can be extended by writing your own scripts that parse Ledger’s output or by using its internal query language in clever ways. It also has features like automated transactions (rules that automatically generate postings given triggers in the journal) and periodic transactions, which are kinds of built-in extensibility within the ledger file. But it does not offer an API to inject arbitrary code into the accounting engine – it’s not a library in the same way (though libledger exists for C++ developers).Moderate extensibility. hledger deliberately omits Ledger’s automated/periodic transaction features to keep things simpler, but it provides tools like hledger-import for conversion of other formats and allows add-ons. Being written in Haskell, it’s used as a library in some projects, but writing custom plugins is not as straightforward as Beancount’s approach. Instead, hledger focuses on covering common needs (reports, web, UI) within its official toolset.
Community & DevelopmentActive but primarily driven by one author (Martin Blais) and a small group of contributors. Major releases are infrequent (v2 was stable for ~6 years, then v3 in 2024). The community contributes via plugins and tools (Fava was originally a third-party project that became integral). Beancount’s mailing list and GitHub are active with discussions, and the user base has grown thanks to Fava’s appeal to non-developers.Long history (Ledger dates back to 2003) and wide usage among engineers. Originally a one-person project (Wiegley), it saw many contributors over time. Ledger’s development has slowed in recent years; it’s stable but fewer new features (the focus has shifted to maintenance). The mailing list ledger-cli is a hub for all plaintext accounting discussions (including Beancount and hledger). Many tools and scripts around Ledger exist, but the ecosystem is not as unified (no single “Ledger GUI”, etc., though multiple independent efforts exist).Growing community, with Simon Michael leading hledger’s development. hledger has annual releases and steady improvements, often tracking Ledger feature changes but also forging its own path. It enjoys popularity among users who want Ledger’s power with more predictability. The community tends to overlap with Ledger’s (plaintextaccounting.org covers both). hledger’s ecosystem includes add-ons like hledger-flow (for workflow automation) and it benefits from being written in Haskell (attracting those in that community).

In summary, Beancount differentiates itself with its emphasis on strictness, plugin-based extensibility, and a user-friendly web interface. Ledger remains the classic, highly flexible tool favored by command-line purists and those who need ultimate speed (Ledger’s C++ engine is very fast on huge files). hledger provides a middle ground – much of Ledger’s functionality with a bit more structure and an officially supported (if simple) web UI. All three share the advantages of plain text accounting (auditability, Git versioning, plain data), but Beancount’s ecosystem (especially with Fava) has arguably made it more accessible to the average user in recent years. On the flip side, Ledger/hledger users sometimes prefer their relative simplicity in setup (no Python needed) and long-proven stability. Ultimately, choosing between them comes down to personal preference: those who value rigorous correctness and a rich ecosystem often lean toward Beancount, whereas those who want lean, terminal-focused tooling might stick with Ledger or hledger.

Usage Scenarios for Beancount

Beancount is versatile enough to be used for personal finance tracking as well as (in some cases) small business accounting. Its core double-entry approach is the same in both scenarios, but the scale and specific practices can differ.

Personal Finance

Many Beancount users employ it to manage their individual or household finances. A typical personal finance setup in Beancount might include accounts for checking and savings, credit cards, investments, loans, income categories (salary, interest, etc.), and expense categories (rent, groceries, entertainment, etc.). Users record day-to-day transactions either manually (entering receipts, bills, etc.) or by importing from bank statements using the importer tools discussed earlier. The benefits Beancount brings to personal finance include:

  • Consolidation and Analysis: All your transactions can live in a single text file (or a set of files) that represents years of financial history. This makes it easy to analyze long-term trends. With Beancount’s query language or with Fava, you can answer questions like “How much did I spend on travel in the past 5 years?” or “What’s my average monthly grocery bill?” in seconds. One user noted that after switching to Beancount, “analysis of financial data (spending, giving, taxes, etc.) is trivial” either through Fava or by querying the data and using tools like Pandas. In essence, your ledger becomes a personal financial database you can query at will.
  • Budgeting and Planning: While Beancount doesn’t force a budgeting system, you can implement one. Some users do envelope budgeting by creating budget accounts or using the fava-envelope plugin. Others simply use periodic reports to compare spending to targets. Because it’s plain text, integrating Beancount with external budgeting tools or spreadsheets is straightforward (exporting data or using CSV outputs from queries).
  • Investments and Net Worth Tracking: Beancount excels at tracking investments thanks to its robust handling of cost bases and market prices. You can record buys/sells of stocks, crypto, etc., with cost details, and then use Prices directives to keep track of market value. Fava can show a net worth over time chart and portfolio breakdown by asset class. This is hugely useful for personal wealth management – you get insights similar to what commercial tools like Mint or Personal Capital provide, but fully under your control. Multi-currency handling is also built-in, so if you hold foreign currencies or crypto, Beancount can track those and convert for reporting.
  • Reconciliation and Accuracy: Personal finance often involves reconciling with bank statements. With Beancount, one can regularly reconcile accounts by using balance assertions or the documents feature. For example, every month you might add a balance Assets:Bank:Checking <date> <balance> entry to confirm your ledger matches the bank’s statement at month-end. The bean-check tool (or Fava’s error display) will alert you if things don’t line up. One user mentions doing a monthly reconciliation of all accounts, which “helps catch any unusual activity” – a good personal finance hygiene practice that Beancount facilitates.
  • Automation: Tech-savvy individuals have automated large parts of their personal finance workflow with Beancount. Using importers, cron jobs, and maybe a bit of Python, you can set up your system so that, for instance, every day your bank transactions are fetched (some use OFX or APIs) and appended to your Beancount file, categorized by rules. Over time, your ledger becomes mostly auto-updated, and you just review and tweak as needed. A community member on Hacker News shared that after 3 years, their Beancount books were “95% automatic”. This level of automation is possible because of Beancount’s plain text openness and scripting capabilities.

Personal finance users often choose Beancount over spreadsheets or apps because it gives them complete ownership of the data (no reliance on a cloud service that might shut down – a concern as Mint was discontinued, for example) and because the depth of insight is greater when you have all your data integrated. The learning curve is non-trivial – one must learn basic accounting and the Beancount syntax – but resources like the official documentation and community tutorials help newcomers get started. Once set up, many find that it brings peace of mind to have a clear, trustworthy picture of their finances at all times.

Small Business Accounting

Using Beancount for a small business (or nonprofit, club, etc.) is less common than personal use, but it is certainly possible and some have done it successfully. Beancount’s double-entry framework is in fact the same system that underpins corporate accounting, just without some of the higher-level features that dedicated accounting software provides (like invoicing modules or payroll integrations). Here’s how Beancount can fit into a small business context:

  • General Ledger and Financial Statements: A small business can treat the Beancount file as its general ledger. You would have asset accounts for bank accounts, accounts receivable, maybe inventory; liability accounts for credit cards, loans, accounts payable; equity for owner’s capital; income accounts for sales or services; and expense accounts for all business expenses. By maintaining this ledger, you can produce an Income Statement (Profit & Loss) and Balance Sheet at any time using Beancount’s reports or queries. In fact, Beancount’s built-in reports or Fava can generate a balance sheet and P&L in seconds that are perfectly in line with accounting principles. This can be sufficient for a small operation to assess profitability, financial position, and cash flow (with a bit of querying for cash flow, since direct cash flow statements aren’t built-in but can be derived).
  • Invoices and A/R, A/P: Beancount does not have a built-in invoicing system; users would typically handle invoicing outside (e.g., create invoices in Word or an invoice app) and then record the results in Beancount. For example, when you issue an invoice, you’d record an entry debiting Accounts Receivable and crediting Income. When the payment comes, you debit Cash/Bank and credit Accounts Receivable. This way, you can keep track of outstanding receivables by looking at the balance of the A/R account. The same applies to bills (A/P). While it’s more manual than specialized accounting software (which might send reminders or integrate with emails), it is perfectly doable. Some users have shared templates or workflows on how they manage invoices with Beancount and ensure they don’t miss open invoices (for instance, by using metadata or custom queries to list unpaid invoices).
  • Inventory or Cost of Goods Sold: For businesses selling products, Beancount can track inventory purchases and sales, but it requires disciplined entries. You might use the Inventory and cost accounting features: purchasing inventory increases an asset account (with cost attached to the items), selling it moves cost to an expense (COGS) and records revenue. Because Beancount insists on matching lots, it will enforce proper reduction of inventory with the correct cost, which can actually ensure your gross profit calculations are accurate if done right. However, there’s no automated SKU tracking or anything – it’s all at the financial level (quantity and cost).
  • Payroll and Complex Transactions: Beancount can record payroll transactions (salary expense, tax withholdings, etc.), but calculating those figures might be done externally or via another tool, then just booked into Beancount. For a very small business (say one or two employees), this is manageable. You’d, for example, record a single journal entry per pay period that splits out wages, tax withheld, employer tax expense, cash paid, etc. Doing this manually is similar to how one might do it in QuickBooks journal entries – it requires knowledge of what accounts to hit.
  • Multi-user and Audit: One challenge in a business setting is if multiple people need to access the books or if an accountant needs to review them. Since Beancount is a text file, it’s not multi-user in real-time. However, hosting the file in a Git repository can enable collaboration: each person can edit and commit, and differences can be merged.
  • Regulatory compliance: For tax filing or compliance, Beancount’s data can be used to generate the necessary reports, but it may require custom queries or plugins. We saw an example of a community plugin for Indian government compliance reporting, and one for FinCEN FBAR reporting. This shows that, with effort, Beancount can be adapted to meet specific reporting requirements. Small businesses in jurisdictions with simple requirements (cash accounting, or basic accrual) can certainly maintain books in Beancount and produce financial statements for tax returns. However, features like depreciation schedules or amortization might need you to write your own entries or use a plugin (Dave Stephens’ depreciation plugins help automate that for instance). There isn’t a GUI to “click depreciate asset” as in some accounting software; you’d encode the depreciation as transactions (which in a way demystifies it – everything is an entry you can inspect).

In practice, many tech-oriented small business owners have used Beancount (or Ledger/hledger) if they prefer control and transparency over the convenience of QuickBooks. A Reddit discussion noted that for standard small-business accounting with a limited volume of transactions, Beancount works fine. The limiting factor is usually the comfort level – whether the business owner (or their accountant) is comfortable with a text-based tool. One advantage is cost: Beancount is free, whereas accounting software can be costly for a small business. On the other hand, lack of official support and the DIY nature means it’s best suited for those who are both the business owner and somewhat technically inclined. For freelancers or sole proprietors with programming skills, Beancount can be an attractive choice to manage finances without relying on cloud accounting services.

Hybrid approaches are also possible: some small businesses use an official system for invoices or payroll, but periodically import the data into Beancount for analysis and archival. This way they get the best of both worlds – compliance and ease for day-to-day operations, plus the power of Beancount for consolidated insight.

In summary, Beancount can handle small business accounting, provided the user is willing to manually manage things that commercial software automates. It ensures a high degree of transparency – you deeply understand your books because you’re writing them – and for a diligent user, it can produce impeccable books. Both personal and business users benefit from Beancount’s core strengths: a reliable accounting engine, complete audit trail, and flexibility to adapt to unique scenarios (via scripting and plugins). Whether it’s tracking a household budget or a startup’s finances, Beancount offers a toolkit to do it with precision and openness.

Community and Development Activity

Beancount has a dedicated community and a development story that reflects its open-source, niche-but-passionate nature. Below are key points about its community, maintainers, and related projects:

  • Project Maintenance: Beancount’s primary author is Martin Blais, who began the project around 2007 and has shepherded it through multiple versions. Development for a long time was largely a one-man effort (aside from community contributions of patches). Martin’s philosophy was to build an accounting tool “useful to me first, as well as for others, in the simplest, most durable manner”. This personal motivation kept the project going as a labor of love. As of 2025, Martin Blais is still the lead maintainer (his name appears on commits and he answers questions on the mailing list/issue tracker), but the ecosystem around Beancount has many other contributors in their respective projects.

  • GitHub and Repositories: The source code is hosted on GitHub under the beancount/beancount repository. The project is GPL-2.0 licensed and has attracted a modest number of contributors over the years. In mid-2024, Beancount Version 3 was officially released as the new stable branch. This release involved splitting out some components: for example, the beangulp repo (for importers) and beanquery repo (for the query tool) are part of the beancount GitHub organization now, maintained somewhat independently. The main Beancount repo focuses on the core accounting engine and file parser. As of 2025, Beancount’s GitHub shows active issue discussions and some ongoing development – though not high volume, issues and pull requests trickle in, and occasional updates are made to fix bugs or refine features.

  • Fava Development: Fava, the web interface, started as a separate project (created by Dominic Aumayr, who copyrighted it in 2016). It has its own community of contributors and is also on GitHub under beancount/fava. Fava’s maintainers and contributors (e.g. Jakob Schnetz, Stefan Otte, and others in recent years) have been actively improving the interface, with releases every few months. Fava’s Gitter chat (linked on the Fava docs) and GitHub issue tracker are places where users and devs discuss new features or bugs. The project welcomes contributions, evidenced by a CHANGELOG note thanking multiple community members for their PRs. Fava’s close alignment with Beancount’s development (such as quickly adding support for Beancount v3 and new beanquery syntax) indicates good collaboration between the two projects.

  • Mailing Lists and Forums: Beancount has an official mailing list (previously on Google Groups, titled “Beancount” or sometimes discussed on the general Ledger list). This mailing list is a treasure trove of knowledge – users ask questions about how to model certain scenarios, report bugs, and share tips. Martin Blais is known to respond on the mailing list with detailed explanations. In addition, the broader Plain Text Accounting community overlaps heavily. The Ledger CLI mailing list often entertains questions about Beancount as well, and there is a forum at plaintextaccounting.org and a subreddit r/plaintextaccounting where Beancount topics come up frequently. Users on these platforms discuss comparisons, share personal setups, and help newcomers. The general tone of the community is very cooperative – Beancount users often help Ledger users and vice versa, recognizing that all these tools have similar goals.

  • Chat Groups: Besides mailing lists, there are chat channels like the Plaintext Accounting Slack/Discord (community-organized) and the Fava Gitter. These are less formal, more real-time ways to get help or discuss features. For example, one might hop on the Slack to ask if anyone has an importer for a specific bank. There is also a Matrix/IRC channel (historically #ledger or #beancount on IRC) where some long-time users idle. While not as populous as communities for mainstream software, these channels have knowledgeable folks who can often answer obscure accounting questions.

  • Contributors and Key Community Members: A few names stand out in the Beancount community:

    • “Redstreet” (Red S): A prolific contributor who has written many plugins (like beancount-balexpr, sellgains, and others) and often provides support. They also maintain a set of importer scripts and a tool called bean-download to fetch statements.
    • Vasily M (Evernight): Author of some importer frameworks and plugins like beancount-valuation, and contributions to Fava regarding investments.
    • Stefano Zacchiroli (zack): A Debian developer who created the beancount-mode for Emacs and his own plugin repo. He has advocated for plaintext accounting in academic settings as well.
    • Simon Michael: While primarily the lead of hledger, he runs plaintextaccounting.org which includes Beancount. This cross-pollination helped bring Beancount to the attention of Ledger/hledger users.
    • Frank hell (Tarioch): Contributor of the Tarioch Beancount Tools, a major set of importers and price fetchers especially for European institutions.
    • Siddhant Goel: A community member who blogs about Beancount (for example, his guide on migrating to v3) and maintains some importers. His blog posts have helped many new users.

    These and many others contribute code, documentation, and help on forums, making the ecosystem vibrant despite its relatively small size.

  • GitHub Stats and Forks: Beancount’s GitHub repo has accumulated a few hundred stars (indicating interest) and forks. Notable forks of Beancount itself are rare – there isn’t a well-known divergent fork that tries to be “Beancount but with feature X”. Instead, when users wanted something different, they either wrote a plugin or used another tool (like hledger) rather than fork Beancount. One could consider hledger a kind of fork of Ledger (not Beancount) and Beancount itself an independent re-imagining of Ledger’s ideas, but within Beancount’s repo there aren’t big splinter projects. The community has generally coalesced around the main repo and extended it via the plugin interface instead of fragmenting the codebase. This is likely because Martin Blais was open to external contributions (his docs even have a section acknowledging external contributions and modules) and the plugin architecture made it unnecessary to maintain a fork for most new features.

  • Community Resources: There are several high-quality resources for learning and using Beancount created by the community:

    • The Beancount documentation on GitHub Pages (and the source Google Docs that Martin maintains) – very comprehensive, including theory on accounting and how Beancount implements it.

    • Numerous blog posts and personal notes – e.g., LWN.net had an article “Counting beans… with Beancount”, and many personal blogs (as listed in Awesome Beancount’s “Blog Posts” section) share experiences and tips. These help build knowledge and attract new users.

    • Talks and presentations: Beancount has been presented at meetups and conferences (for instance, a PyMunich 2018 talk on managing finances with Python/Beancount). Such talks introduce the tool to broader audiences and often spark interest on forums like Hacker News.

  • Notable Related Projects: Apart from Fava, some other projects related to Beancount have their own communities:

    • Plain Text Accounting site – maintained by Simon Michael, it aggregates info on all such tools and has a forum where people share usage for various tools including Beancount.
    • Financial tooling integration: Some users integrate Beancount with business intelligence tools or databases. For example, one Google Groups thread details using PostgreSQL with Beancount data via custom functions. While not mainstream, it shows the community’s experimental spirit in pushing Beancount’s capabilities (e.g., to handle very large datasets or complex queries beyond the built-in).

In summary, Beancount’s community, while smaller than those of big open-source projects, is highly engaged and knowledgeable. The project enjoys a steady stream of improvements and very helpful support channels. The collaborative ethos (sharing importers, writing plugins, answering questions) means that a newcomer in 2025 can rely on extensive prior work and community wisdom to set up their accounting system. Development is active in the ecosystem sense – Fava releases, plugin development, etc. – even if the core’s changes are more occasional. The ecosystem’s growth (as evidenced by the Awesome Beancount list of dozens of tools) speaks to a healthy community making Beancount ever more capable.

Recent Developments and Upcoming Features

As of 2025, the Beancount ecosystem has seen significant developments in the past couple of years, and there are ongoing discussions about future enhancements. Here are some noteworthy recent developments and a glimpse of what might be coming:

  • Beancount 3.0 Release (2024): After a long period of Beancount 2.x being the standard, version 3 was officially released in mid-2024. This was a major milestone because v3 represents a simplification and modernization of the codebase. Martin Blais had envisioned v3 as a chance to “rearrange and simplify” the system further. While it was originally thought to be a big rewrite, in practice the update for users was not too disruptive. The main changes were under the hood: a new parser, some performance improvements, and the extraction of optional components out of the core. The release was rolled out gradually (v3 had been in beta since 2022, but by July 2024 it became the recommended stable version). Users like Siddhant Goel reported that migrating from 2.x to 3.x was “mostly uneventful” with only a few workflow changes.

  • Modularization – tools moved to separate packages: One of the big changes with Beancount 3 is that many tools that used to live in the monolithic repository were spun off. For example, bean-query is now provided by the beanquery package, and beancount.ingest was replaced by the beangulp package. Commands like bean-extract and bean-identify (for imports) were removed from core Beancount. Instead, the philosophy is to use standalone scripts for importing. This means that if you upgrade to v3, you’d install beangulp and run importer scripts (each importer is basically a small program) rather than having a central bean-extract config file. Similarly, queries are executed via beanquery which can be installed and updated independently of Beancount core. This modular approach was designed to make maintenance easier and encourage community contributions. It also slimmed down Beancount’s core, so the core focuses purely on parsing and accounting logic, while ancillary functionality can evolve separately. From a user perspective, after upgrading, one has to adjust commands (e.g., use bean-query from beanquery, or use Fava which abstracts this anyway). Fava’s changelog explicitly notes these changes: Fava now depends on beanquery and beangulp, and it handles import workflows differently for Beancount 3 vs 2.

  • Performance Improvements: Performance was one motivation for revisiting Beancount’s design. The v3 plan (as outlined in Martin’s “V3 goals” document) included optimizing the parser and possibly making the loading process faster and less memory-intensive. By 2025, some of these improvements have materialized. Anecdotally, users with very large ledgers (tens of thousands of transactions, or lots of stock trades) have reported better performance with the latest version. For instance, a user dealing with “microinvestment transactions” who faced performance issues noted these concerns on the Google Group – this kind of feedback likely informed v3. The new parser is more efficient and written in a clearer way, which could be extended in the future. Additionally, Fava 1.29 moved to a more efficient file-watching mechanism (using the watchfiles library) to improve responsiveness when the ledger changes. Looking forward, the community might explore incremental parsing (only re-processing changed parts of the file instead of everything) to handle large ledgers more quickly – this was hinted in the docs as “Beancount server / incremental booking” idea.

  • Investment Tracking Enhancements: There’s been ongoing work to make investment and portfolio reporting better. For example, handling of average cost basis vs. FIFO was discussed at length. While Beancount enforces lot matching, some users prefer average cost for certain jurisdictions. A proposal and discussion exist about making cost basis booking more flexible (possibly via a plugin or option). By 2025, no built-in switch for average cost is present, but the groundwork in v3 (the booking redesign) makes it easier for plugins to implement. A community plugin “Gains Minimizer” was released that can suggest which lots to sell to minimize taxes, showing the kind of advanced tooling being built around investments. Fava, too, added features like a portfolio summary extension (with rate of return calculations). In terms of upcoming features, one can expect more in this domain: possibly automated portfolio rebalancing suggestions or risk analysis, likely as external tools that read Beancount data (since the data is all there).

  • New Plugins and Extensions: The plugin ecosystem continuously grows. Recent notable additions include:

    • Budget reporting tools – e.g., a simple CLI budget reporter if one doesn’t use Fava’s UI.
    • Encryption and security – the fava-encrypt setup, allowing Fava to be hosted online with the ledger encrypted at rest, was introduced, addressing the concern of self-hosting your finances.
    • Quality-of-life plugins – like autobean-format (a new formatter that can handle more corner cases by parsing and reprinting the file), and beancheck integration in editors (flymake for Emacs).

    Looking ahead, the community is likely to continue filling gaps via plugins. For example, we might see more tax-related plugins (some users have shared scripts for things like computing wash sales or specific local tax reports).

  • Potential Upcoming Features: Based on discussions on the issue tracker and mailing list, a few ideas are on the horizon (though not guaranteed):

    • Time Resolution: Currently, Beancount only tracks dates (no timestamps) for transactions. There have been questions about adding time (for stock trades or ordering of same-day transactions). Martin Blais explicitly decided that sub-day timestamps were out of scope to keep things simple. This is unlikely to change soon – so upcoming versions probably will not add time resolution, sticking to the stance that if you need time, you incorporate it into narration or an account.
    • Enhanced GUI editing: Fava is continuously improving its editing capabilities. A possibility is a more full-featured web editor (with auto-suggest, maybe a form-based entry for new transactions). The groundwork using tree-sitter in Fava’s editor was laid. We might see Fava become not just a viewer but a more powerful editor, reducing the need to open a text editor at all for many tasks.
    • Better multi-ledger support: Some users maintain multiple Beancount files (for different entities or for splitting personal vs business). Right now, including files is possible but had limitations (plugins in included files, etc.). A recent plugin autobean.include was created to safely include external ledgers. In the future, we might see first-class support for multi-file setups – perhaps a concept of a Beancount “project” with multiple files (this is hinted by features like the VSCode extension’s beancount.mainBeanFile setting). This would help those running multi-entity bookkeeping or wanting to modularize their ledger.
    • Realtime or Incremental Computation: As ledgers grow, the ability to recompute reports quickly becomes important. There is an idea of a Beancount server that stays running and updates results as transactions change. This could manifest as an optimization in Fava or a daemon that editor plugins can query. Perhaps a future Fava release will leverage a continuously running Beancount process to make the UI more responsive for huge ledgers.
    • Fund Accounting / Non-profit features: There was an enhancement proposal about fund accounting in Beancount. Non-profit organizations have accounting needs (restricted vs unrestricted funds) that could potentially be modeled with Beancount’s tag or account hierarchy. The discussion didn’t yet lead to built-in features, but if more non-profits pick up Beancount, this could drive new capabilities (maybe just documented best practices or plugins for fund balance tracking).
  • Long-Term Outlook: Martin Blais hinted that he sees the future of Beancount in making the core more of an engine and moving more functionality to plugins. This is consistent with what we see (modularization in v3). So, an “upcoming feature” in philosophical terms is greater extensibility – possibly even allowing plugins to define new directive types or extend syntax in controlled ways. If that happens, Beancount’s core might remain relatively small and stable, while the ecosystem delivers most new functionality as add-ons. This could lead to a plugin marketplace or more centralized listing of plugins so users can pick and choose (the Awesome Beancount list is a start at that).

In conclusion, the Beancount ecosystem in 2025 is active and evolving. The release of Beancount 3.0 was a major recent event, ensuring the project’s foundation is solid for the future. Improvements in performance, tooling, and usability (especially via Fava) have continued to lower the barrier to entry. While Beancount remains a tool that requires some expertise, it is far more approachable now than a few years ago, thanks to these developments. Upcoming features will likely focus on refining the experience – faster performance, better integrations, and specialized extensions – rather than drastic changes to the core philosophy. The community’s trajectory suggests that Beancount will continue to mature as the centerpiece of plain text accounting, striking a balance between the austere power of double-entry bookkeeping and the convenience of modern software. As one user quipped on Hacker News, plain text accounting gives you “super powers” in understanding your finances – and Beancount’s recent and future improvements aim to make those super powers easier to wield for everyone.

Sources: Beancount documentation and repository; Fava documentation; “A Comparison of Beancount and Ledger” by Martin Blais; Awesome Beancount resource list; User experiences and community reports;

Разбиране на вземанията и задълженията в Beancount

· 3 минути четене
Mike Thrift
Mike Thrift
Marketing Manager

Здравейте на всички! В днешната публикация в блога се потапяме в света на Beancount, инструмент за двустранно счетоводство, който е обичан от мнозина заради своята простота и мощ. По-конкретно, ще говорим за две ключови концепции: Вземания и Задължения.

Разбирането на тези термини е от решаващо значение за ефективното използване на Beancount (или която и да е система за двустранно счетоводство). Но не се притеснявайте, ако сте начинаещи - ще разгледаме всичко, стъпка по стъпка!

Вземания и Задължения: Основи

2023-05-30-receiveable-and-payable

В счетоводството „вземания“ и „задължения“ са термини, използвани за проследяване на дължими пари. „Вземания“ се отнася до пари, които други дължат на вас, докато „задължения“ се отнася до пари, които вие дължите на други.

Нека дадем пример:

  1. Сметки за вземания (A/R): Да предположим, че притежавате книжарница и клиент купува книга на кредит. Парите, които той ви дължи за книгата, са сметка за вземания.

  2. Сметки за задължения (A/P): От друга страна, представете си, че поръчвате нов комплект книги от издател, но не ги плащате предварително. Парите, които дължите на издателя, са сметка за задължения.

В Beancount те обикновено се проследяват чрез съответни сметки. Основното предимство тук е, че ви предоставя ясна и точна картина на вашето финансово състояние във всеки един момент.

Настройване на вземания и задължения в Beancount

Структурата на вашия Beancount файл може да бъде толкова проста или толкова сложна, колкото ви е необходимо. За вземания и задължения вероятно ще искате да създадете отделни сметки под секциите си Активи и Пасиви.

Ето един прост пример:

1970-01-01 open Assets:AccountsReceivable
1970-01-01 open Liabilities:AccountsPayable

Проследяване на транзакции

От страна на кредитора

След като настроите сметките си, можете да проследявате транзакции, които включват вземания и задължения. Нека разгледаме един пример:

2023-05-29 * "Продадени книги на клиент на кредит"
Assets:AccountsReceivable 100 USD
Income:BookSales -100 USD

Тук добавяте 100 щатски долара към вашите вземания, защото клиент ви дължи тази сума. Едновременно с това намалявате приходите си със същата сума, за да поддържате баланса (тъй като все още не сте получили парите).

Когато клиентът в крайна сметка плати, ще го запишете така:

2023-06-01 * "Получено плащане от клиент"
Assets:Bank:Savings 100 USD
Assets:AccountsReceivable -100 USD

От страна на длъжника

Същият принцип важи и за задълженията, но с обърнати знаци:

2023-05-30 * "Купени книги от издател на кредит"
Liabilities:AccountsPayable 200 USD
Expenses:BookPurchases -200 USD

И когато изплатите дълга си:

2023-06-02 * "Изплатен дълг към издател"
Liabilities:AccountsPayable -200 USD
Assets:Bank:Checking 200 USD

В заключение

Вземанията и задълженията са в основата на всяка счетоводна система. Чрез точното им проследяване придобивате цялостно разбиране за вашето финансово здраве.

Това е само отправна точка, а Beancount е способен на много повече. Надявам се тази публикация в блога да помогне за изясняването на тези важни концепции. Както винаги, приятно счетоводство!

Деконструкция на Beancount счетоводна книга: Казус за бизнес счетоводство

· 3 минути четене
Mike Thrift
Mike Thrift
Marketing Manager

В днешната публикация в блога ще разгледаме подробно Beancount счетоводна книга за бизнеси, което ще ви помогне да разберете тънкостите на тази система за двойно счетоводство в обикновен текст.

Деконструкция на Beancount счетоводна книга: Казус за бизнес счетоводство

Нека започнем първо с кода:

2023-05-22-business-template

1970-01-01 open Assets:Bank:Mercury
1970-01-01 open Assets:Crypto

1970-01-01 open Equity:Bank:Chase

1970-01-01 open Income:Stripe
1970-01-01 open Income:Crypto:ETH

1970-01-01 open Expenses:COGS
1970-01-01 open Expenses:COGS:Contabo
1970-01-01 open Expenses:COGS:AmazonWebServices

1970-01-01 open Expenses:BusinessExpenses
1970-01-01 open Expenses:BusinessExpenses:ChatGPT

2023-05-14 * "CONTABO.COM" "Mercury Checking ••1234"
Expenses:COGS:Contabo 17.49 USD
Assets:Bank:Mercury -17.49 USD

2023-05-11 * "Amazon Web Services" "Mercury Checking ••1234"
Expenses:COGS:AmazonWebServices 14490.33 USD
Assets:Bank:Mercury -14490.33 USD

2023-03-01 * "STRIPE" "Mercury Checking ••1234"
Income:Stripe -21230.75 USD
Assets:Bank:Mercury 21230.75 USD

2023-05-18 * "customer_182734" "0x5190E84918FD67706A9DFDb337d5744dF4EE5f3f"
Assets:Crypto -19 ETH {1,856.20 USD}
Income:Crypto:ETH 19 ETH @@ 35267.8 USD

Разбиране на кода

  1. Отваряне на сметки: Кодът започва с отваряне на поредица от сметки на 1970-01-01. Те включват комбинация от сметки за активи (Assets:Bank:Mercury и Assets:Crypto), сметка за собствен капитал (Equity:Bank:Chase), сметки за приходи (Income:Stripe и Income:Crypto:ETH) и сметки за разходи (Expenses:COGS, Expenses:COGS:AmazonWebServices, Expenses:BusinessExpenses и Expenses:BusinessExpenses:ChatGPT).

  2. Транзакции: След това се преминава към записване на поредица от транзакции между 2023-03-01 и 2023-05-18.

    • Транзакцията от 2023-05-14 представлява плащане от $17.49 към CONTABO.COM от Mercury Checking ••1234. Това е записано като разход (Expenses:COGS:Contabo) и съответно приспадане от сметката Assets:Bank:Mercury.

    • По същия начин, транзакцията от 2023-05-11 представлява плащане от $14490.33 към Amazon Web Services от същата банкова сметка. Това е записано под Expenses:COGS:AmazonWebServices.

    • Транзакцията от 2023-03-01 показва доход от STRIPE, депозиран в Mercury Checking ••1234, на обща стойност $21230.75. Това е записано като приход (Income:Stripe) и добавяне към банковата сметка (Assets:Bank:Mercury).

    • Последната транзакция от 2023-05-18 представлява крипто транзакция, включваща 19 ETH от клиент. Тя се проследява под Assets:Crypto и Income:Crypto:ETH. {1,856.20 USD} показва цената на ETH по време на транзакцията, докато @@ 35267.8 USD указва общата стойност на транзакцията от 19 ETH.

При всички транзакции се поддържа принципът на двойното счетоводство, като се гарантира, че уравнението Активи = Пасиви + Собствен капитал винаги е вярно.

Заключителни мисли

Тази Beancount счетоводна книга предоставя проста, но надеждна система за проследяване на финансови транзакции. Както се вижда от последната транзакция, Beancount е достатъчно гъвкав, за да отчита нетрадиционни активи като криптовалута, което е доказателство за неговата полезност в нашия все по-дигитален финансов пейзаж.

Надяваме се, че този анализ ви помага да разберете по-добре структурата и възможностите на Beancount, независимо дали сте опитен счетоводител или начинаещ, който се опитва да следи личните си финанси. Очаквайте следващата ни публикация в блога, където ще навлезем по-дълбоко в напредналите операции на Beancount.

Шпаргалка за Beancount

· 2 минути четене
Mike Thrift
Mike Thrift
Marketing Manager

Примерно име на сметка

Assets:US:BofA:Checking

cheatsheet-bg

Типове сметки

Assets          +
Liabilities -
Income -
Expenses +
Equity -

Валути и активи

CNY, EUR, CAD, AUD
GOOG, AAPL, RBF1005
HOME_MAYST, AIRMILES
HOURS

Директиви

Общ синтаксис

YYYY-MM-DD <Directive> <Parameters...>

Откриване и закриване на сметки

2001-05-29 open Expenses:Restaurant
2001-05-29 open Assets:Checking USD,EUR ; Валутни ограничения

2015-04-23 close Assets:Checking

Деклариране на валути/активи (по избор)

1998-07-22 commodity AAPL
name: "Apple Computer Inc."

Цени

2015-04-30 price AAPL   125.15 CNY
2015-05-30 price AAPL 130.28 CNY

Бележки

2013-03-20 note Assets:Checking "Обадих се да попитам за отстъпка"

Документи

2013-03-20 document Assets:Checking "path/to/statement.pdf"

Транзакции

2015-05-30 * "Някакво описание на тази транзакция"
Liabilities:CreditCard -101.23 CNY
Expenses:Restaurant 101.23 CNY

2015-05-30 ! "Кабелна компания" "Сметка за телефон" #tag ˆlink
id: "TW378743437" ; Метаданни
Expenses:Home:Phone 87.45 CNY
Assets:Checking ; Можете да пропуснете една сума

Записвания

  ...    123.45 USD                             Обикновено
... 10 GOOG {502.12 USD} С единична себестойност
... 10 GOOG {{5021.20 USD}} С обща себестойност
... 10 GOOG {502.12 # 9.95 USD} С двете себестойности
... 1000.00 USD @ 1.10 CAD С единична цена
... 10 GOOG {502.12 USD} @ 1.10 CAD Със себестойност и цена
... 10 GOOG {502.12 USD, 2014-05-12} С дата
! ... 123.45 USD ... С флаг

Проверки на салдо и допълване

; Проверява сумата само за дадената валута:
2015-06-01 balance Liabilities:CreditCard -634.30 CNY

; Автоматично вмъкване на транзакция за изпълнение на следната проверка:
2015-06-01pad Assets:Checking Equity:Opening-Balances

Събития

2015-06-01 event "местоположение" "Ню Йорк, САЩ"
2015-06-30 event "адрес" "Ул. Мей 123"

Опции

option "title" "Моят личен леджър"

Други

pushtag #пътуване-до-перу
...
poptag #пътуване-до-перу
; Коментарите започват с точка и запетая

Магията на счетоводството с обикновен текст с Beancount

· 5 минути четене
Mike Thrift
Mike Thrift
Marketing Manager

Открийте магията на счетоводството с обикновен текст с Beancount

Beancount.io banner

Въведение

2023-04-18-introduction-to-beancount

Добре дошли в свят, където счетоводството вече не е плашеща задача. Днес ви представяме Beancount – мощен, гъвкав и интуитивен инструмент за счетоводство с обикновен текст. Beancount ви дава възможност да поемете контрол над финансите си, като предоставя прозрачен и ясен подход за управление на парите ви.

В това изчерпателно ръководство ще се потопим в основите на Beancount, ще обясним основните му концепции и ще ви преведем през неговите прости, но мощни функции. До края на този блог ще имате солидно разбиране за Beancount и ще сте готови да започнете да го използвате, за да организирате и анализирате финансовия си живот.

Какво е Beancount?

Beancount е счетоводна система с отворен код, базирана на обикновен текст, създадена от Мартин Блейс. Вдъхновен от системата Ledger на Джон Уигли, Beancount цели да предостави стабилен и надежден метод за управление на лични и малки бизнес финанси, използвайки файлове с обикновен текст. С Beancount можете лесно да проследявате своите доходи, разходи, инвестиции и много други.

Защо Beancount?

Счетоводството с обикновен текст предлага няколко предимства пред традиционните счетоводни системи, базирани на електронни таблици или софтуер:

  • Прозрачност: Файловете на Beancount са четими от хора, което улеснява разбирането и одитирането на вашите финансови данни.
  • Гъвкавост: Beancount може лесно да бъде персонализиран, за да отговаря на вашите специфични нужди, и можете да използвате любимия си текстов редактор и система за контрол на версиите, за да управлявате финансовите си данни.
  • Преносимост: Вашите финансови данни могат да бъдат достъпни на всяко устройство и е лесно да ги прехвърляте между системи или да ги споделяте с други.
  • Устойчивост на бъдещето: Файловете с обикновен текст са универсално съвместими, което гарантира, че вашите финансови данни ще останат достъпни, дори когато технологиите се развиват.

Основни концепции на Beancount

За да използвате Beancount ефективно, е от решаващо значение да разберете основните му концепции:

  • Транзакции: Финансови събития, като доходи, разходи или преводи между сметки, се записват като транзакции.
  • Сметки: Транзакциите включват една или повече сметки, като активи, пасиви, доходи или разходи.
  • Двустранно счетоводство: Beancount прилага двустранно счетоводство, гарантирайки, че всяка транзакция има балансирани дебити и кредити.
  • Директиви: Beancount използва набор от директиви за дефиниране на транзакции, откриване на сметки и други финансови събития.

Започване с Beancount

За да започнете да използвате Beancount, следвайте тези прости стъпки:

  • Инсталирайте Beancount: Инсталирайте Beancount на вашата система, като използвате предоставените инструкции за инсталация за вашата операционна система.
  • Създайте своя Beancount файл: Създайте нов текстов файл с разширение .beancount (напр. my_finances.beancount).
  • Дефинирайте вашите сметки: Използвайте директивата "open", за да дефинирате сметките, които ще използвате във вашите транзакции.
  • Записвайте транзакции: Използвайте директивата "txn", за да записвате вашите финансови транзакции.

Или просто се регистрирайте на https://beancount.io. Ето няколко примера за счетоводство с обикновен текст -

Пример 1: Основна транзакция

2023-04-01 open Assets:Checking
2023-04-01 open Expenses:Groceries

2023-04-10 txn "Grocery Store" "Buying groceries"
Assets:Checking -50.00 USD
Expenses:Groceries 50.00 USD

В този пример отваряме две сметки, Assets:Checking и Expenses:Groceries. На 10 април 2023 г. записваме транзакция за закупуване на хранителни стоки на стойност $50. Транзакцията намалява баланса на Assets:Checking с $50 (дебит) и увеличава баланса на Expenses:Groceries с $50 (кредит).

Пример 2: Транзакция за доход и разход

2023-04-01 open Assets:Checking
2023-04-01 open Income:Salary
2023-04-01 open Expenses:Rent

2023-04-05 txn "Employer" "Salary payment"
Assets:Checking 2000.00 USD
Income:Salary -2000.00 USD

2023-04-06 txn "Landlord" "Monthly rent payment"
Assets:Checking -1000.00 USD
Expenses:Rent 1000.00 USD

В този пример отваряме три сметки: Assets:Checking, Income:Salary и Expenses:Rent. На 5 април 2023 г. записваме транзакция за изплащане на заплата от $2000. Транзакцията увеличава баланса на Assets:Checking с $2000 (кредит) и намалява баланса на Income:Salary с $2000 (дебит). На 6 април 2023 г. записваме транзакция за плащане на наем от $1000. Транзакцията намалява баланса на Assets:Checking с $1000 (дебит) и увеличава баланса на Expenses:Rent с $1000 (кредит).

Пример 3: Превод между сметки

2023-04-01 open Assets:Checking
2023-04-01 open Assets:Savings

2023-04-15 txn "Bank" "Transfer from Checking to Savings"
Assets:Checking -500.00 USD
Assets:Savings 500.00 USD

В този пример отваряме две сметки: Assets:Checking и Assets:Savings. На 15 април 2023 г. записваме транзакция за прехвърляне на $500 от разплащателната сметка към спестовната сметка

Въведение в Beancount.io

· 5 минути четене
Mike Thrift
Mike Thrift
Marketing Manager

Защо модерната счетоводна отчетност е важна

Все още управлявате инвестициите си с електронни таблици? Въпреки че електронните таблици са гъвкави, те могат да станат тромави и податливи на грешки с нарастването на инвестиционния ви портфейл. Представяме Beancount.io – усъвършенствана, но лесна за ползване платформа за проследяване на инвестиции, създадена специално за управление на портфейли от акции и криптовалути. Създаден с мисъл за инженери и финансови минималисти, Beancount.io съчетава мощни функции с интуитивен интерфейс, за да оптимизира вашето преживяване при проследяване на инвестиции.

2019-09-07-introduction-to-beancount

Expenses

Income Statement

Balance Sheet

Двустранно счетоводство: Основата на точността

Beancount.io е изграден върху принципите на двустранното счетоводство – изпитана във времето методология, използвана от финансови институции по целия свят. Тази система осигурява математическа точност чрез проста, но мощна концепция: всяка финансова транзакция трябва да бъде перфектно балансирана.

При двустранното счетоводство всяка транзакция изисква поне две записи – дебит (+) и кредит (-) – в различни сметки. Тази вградена система за проверка прави практически невъзможно записването на небалансирани транзакции, гарантирайки, че вашите финансови записи остават точни и надеждни.

1970-01-01 open Income:BeancountCorp
1970-01-01 open Assets:Cash
1970-01-01 open Expenses:Food
1970-01-01 open Assets:Receivables:Alice
1970-01-01 open Assets:Receivables:Bob
1970-01-01 open Assets:Receivables:Charlie
1970-01-01 open Liabilities:CreditCard

2019-05-31 * "BeancountCorp" "Salary of May 15th to May 31st"
Income:BeancountCorp -888 USD
Assets:Cash 888 USD

2019-07-12 * "Popeyes chicken sandwiches" "dinner with Alice, Bob, and Charlie"
Expenses:Food 20 USD
Assets:Receivables:Alice 20 USD
Assets:Receivables:Bob 20 USD
Assets:Receivables:Charlie 20 USD
Liabilities:CreditCard -80 USD

Както можете да видите в двата примера по-горе, всяка транзакция трябва да отговаря на счетоводното уравнение.

Активи = Пасиви + Собствен капитал (известен още като Нетни активи)

Използвахме синтаксиса на Beancount от Мартин Блейс и уеб проекта Fava от Якоб Шницер, за да изградим този уебсайт. И той ще ви предупреди, ако някоя транзакция има записи, които не сумират до нула.

Error Alert

Сега разбирате как осигуряваме коректността на счетоводната книга. Но може би се питате какво представляват тези „сметки“?

Разбиране на сметките: Аналогията с водните кофи

Представете си финансовите си сметки като система от взаимосвързани водни кофи, където парите текат като вода между тях. Тази аналогия прави двустранното счетоводство интуитивно: когато прехвърляте пари от една сметка в друга, това е като да преливате вода от една кофа в друга – общото количество вода (пари) в системата остава постоянно.

Beancount.io въвежда пет вида сметки.

  1. Приходи — Сумата им винаги е отрицателна или в дебит. Това е така, защото вие печелите пари и след това парите се дебитират от сметката за „Приходи“ и се кредитират във вашите „Активи“.
  2. Разходи — Сумата им винаги е положителна или в кредит. Това е така, защото вие харчите пари и парите изтичат от „Активи“ или „Пасиви“ към „Разходи“.
  3. Пасиви — Сумата им е положителна или нула. Задълженията по кредитната ви карта са добър пример, които нарастват и намаляват циклично.
  4. Активи — Сумата им е положителна или нула. Вашите пари в брой или къщи винаги имат някаква стойност.
  5. Собствен капитал — Вашите нетни активи. Системата ще го изчисли автоматично за вас. Собствен капитал = Активи - Пасиви и отразява колко сте богати.

Сега можете да отворите свои персонализирани сметки с горните ключови думи:

1970-01-01 open Assets:Cash
1970-01-01 open Assets:Stock:Robinhood
1970-01-01 open Assets:Crypto:Coinbase
1970-01-01 open Expenses:Transportation:Taxi
1970-01-01 open Equity:OpeningBalance

Разширено проследяване на инвестиции с активи

Beancount.io превъзхожда в проследяването на разнообразни инвестиции, от акции до криптовалути. Нека разгледаме как се справя със сложни инвестиционни сценарии. Например, ето как бихте записали закупуването на 10 биткойна по 100 долара всеки през 2014 г.:

2014-08-08 * "Buy 10 Bitcoin"
Assets:Trade:Cash -1000.00 USD
Assets:Trade:Positions 10 BTC {100.00 USD}

И след три години ги продавате (първоначално с разходи от 100 долара на единица, анотирани с {100.00 USD}) на цена от 10 000 долара на единица, анотирани с @ 10,000.00 USD.

2017-12-12 * "Sell 2 Bitcoin"
Assets:Trade:Positions -2 BTC {100.00 USD} @ 10,000.00 USD
Assets:Trade:Cash 20,000.00 USD
Income:Trade:PnL -19,800.00 USD

Или същата транзакция с @@ 20,000.00 USD означава, че на цена от 20 000 долара общо.

2017-12-12 * "Sell 2 Bitcoin"
Assets:Trade:Positions -2 BTC {100.00 USD} @@ 20,000.00 USD
Assets:Trade:Cash 20,000.00 USD
Income:Trade:PnL -19,800.00 USD

Сумата от всички записи на транзакцията, включително -2 BTC {100.00 USD}, все още е, както винаги, нула.

Етикетът за разходи {100.00 USD} е важен, защото може да сте закупили същата стока на различни цени.

100 BTC {10.00 USD, 2012-08-08}
10 BTC {100.00 USD, 2014-08-08}

Ако искате да опростите процеса, можете да настроите сметката в началото с FIFO или LIFO. FIFO означава „първи влязъл, първи излязъл“, докато LIFO означава „последен влязъл, първи излязъл“. В САЩ, IRS използва FIFO за изчисляване на вашата печалба/загуба (PnL) и съответния данък.

1970-01-01 open Assets:Trade:Positions "FIFO"

И след това, когато я продадете накратко като -2 BTC {}, beancount автоматично ще приложи стратегията FIFO и ще продаде най-стария актив.

Започване с Beancount.io

Beancount.io е модерна облачна платформа за финансово управление, която преобразува вашите текстови записи на транзакции в изчерпателни финансови отчети, включително отчети за приходите и разходите, баланси и оборотни ведомости. Чрез комбиниране на надеждността на обикновените текстови файлове с мощни инструменти за визуализация, Beancount.io ви помага да поддържате прецизен контрол върху финансовия си живот, като същевременно получавате ценни прозрения за ефективността на вашите инвестиции.

Започнете вашето финансово пътешествие с Beancount.io – Безплатно по време на нашия промоционален период!