brotherton-erpnext/erpnext/accounts
tundebabzy c89782502c Report presentation currency (#12670)
* Add new Select to filters

* get the currencies from database rather than hardcoded

* label report columns:
- If presentation currency is available in filters, use it or
- If company is available in filters, use it or
- use default company currency

* add new function - get_currency

* tweak new function `get_currency`

* add new function `convert` to convert a value to another currency

* add new function `convert_to_presentation_currency`

* clean up `get_currency` first pass

* memoise the exchange rates

* limit fetched GL entries to to_date

* check if account type is p&l or not and use appropriate exchange rate based on that

* change EXCHANGE RATE to a dict, use for memoisation

* rename EXCHANGE_RATE

* cache exchange rates and use them as needed

* add docstrings

* add presentation currency logic to financial statement reports

* move new functions from `general_ledger.py` to new module

* clean up

* PEP 8 clean up

* move function to util.py

* PEP 8 clean up

* remove presentation currency option from cashflow

* adjust currency as needed

* allow users to save presentation currency in Accounts Settings

* add new function `get_presentation_currency_list`

* refactor query_report modules with no promises

* Revert "allow users to save presentation currency in Accounts Settings"

This reverts commit 3b58a6296cf3f7b4d80ac55b03f9d5d4887b796b.

* show print page in correct currency

* Update utils.py
2018-02-12 15:04:50 +05:30
..
doctype Shareholder and related doctypes (#12215) 2018-02-12 11:32:47 +05:30
page resolved merge conflicts 2018-02-08 15:17:15 +05:30
print_format [fix] #12829 2018-02-08 16:20:46 +05:30
report Report presentation currency (#12670) 2018-02-12 15:04:50 +05:30
test Error in the Address fetched in Sales Order.(#11129) (#11145) 2017-10-25 12:24:34 +05:30
__init__.py moved modules inside erpnext folder 2013-12-11 10:43:52 +05:30
general_ledger.py Optimization: don't update outstanding amount while cancelling payment entry for advance adjustment (#12689) 2018-01-29 16:45:43 +05:30
party.py Patch: Create Payment Terms based on default credit days set in company and use it while setting due_date (#12685) 2018-01-29 16:07:21 +05:30
README.md Code replacement for journal voucher renaming 2014-12-25 17:14:18 +05:30
utils.py [fix] is_root check 2018-01-15 18:30:01 +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