brotherton-erpnext/erpnext/accounts
2023-07-13 15:12:58 +05:30
..
accounts_dashboard/accounts
custom
dashboard_chart
dashboard_chart_source perf: use get_cached_value instead of db.get_value in accounts module 2022-11-03 13:38:48 +05:30
doctype Merge pull request #36076 from ruthra-kumar/possible_type_error_on_err_creation 2023-07-11 10:37:37 +05:30
form_tour fix: replace quotation with invoice in first onboarding (#35389) 2023-05-23 15:35:55 +05:30
module_onboarding/accounts
notification
number_card
onboarding_step
page
print_format
print_format_field_template
report fix: Opening balance in presentation currency in Trial Balance report (#36036) 2023-07-09 20:16:12 +05:30
test fix: remove non-maintained Tax Detail report and missing workspace links (#34192) 2023-03-21 16:23:27 +05:30
workspace/accounting chore: Add frappe school links (#35995) 2023-07-04 14:58:45 +05:30
__init__.py
deferred_revenue.py fix: deferred accounting entries on accounts frozen (#35978) 2023-07-09 20:41:12 +05:30
general_ledger.py fix: Partial PLE cancellation 2023-06-29 12:18:25 +05:30
party.py chore: Advance fetching order 2023-06-21 12:21:19 +05:30
README.md
test_party.py
utils.py fix: incorrect idx on JE's after reconciliation 2023-07-13 15:12:58 +05:30

Accounts module contains masters and transactions to manage a traditional double entry accounting system.

Accounting heads are called "Accounts" and they can be groups in a tree like "Chart of Accounts"

Entries are:

  • Journal Entries
  • Sales Invoice (Itemised)
  • Purchase Invoice (Itemised)

All accounting entries are stored in the General Ledger

Payment Ledger

Transactions on Receivable and Payable Account types will also be stored in Payment Ledger. This is so that payment reconciliation process only requires update on this ledger.

Key Fields

Field Description
account_type Receivable/Payable
account Accounting head
party Party Name
voucher_no Voucher No
against_voucher_no Linked voucher(secondary effect)
amount can be +ve/-ve

Design

debit and credit have been replaced with account_type and amount. against_voucher_no is populated for all entries. So, outstanding amount can be calculated by summing up amount only using against_voucher_no.

Ex:

  1. Consider an invoice for ₹100 and a partial payment of ₹80 against that invoice. Payment Ledger will have following entries.
voucher_no against_voucher_no amount
SINV-01 SINV-01 100
PAY-01 SINV-01 -80
  1. Reconcile a Credit Note against an invoice using a Journal Entry

An invoice for ₹100 partially reconciled against a credit of ₹70 using a Journal Entry. Payment Ledger will have the following entries.

voucher_no against_voucher_no amount
SINV-01 SINV-01 100
CR-NOTE-01 CR-NOTE-01 -70
JE-01 CR-NOTE-01 +70
JE-01 SINV-01 -70