* feat: fetch payments and journals
* refactor: use single qb query for PE and PI
* feat: fetch PE along with SI
* refactor: move repeating code to common controller
* fix: fetch cost center for PE
* feat: fetch JV with PE
* fix: validate party filter for fetching payments
* fix: linting issues
* refactor: use qb to fetch PE JV and Inv
* refactor: move fn to fetch advance taxes to utils & use qb
* fix: filtering through accounting dimensions
* chore: remove debugging print statements
* fix: modify rows and columns for ledger view
* refactor: filter accounting dimensions using qb
* fix: show additional table cols from india compliance api call
* chore: fix typo
* test: purchase register and ledger view
* fix: filter by party in opening row calculation
* fix: exclude cancelled gl entries for opening balance
* chore: change column format for report
* fix: check gl entry status using is_cancelled
* fix: running balance after sorting
* fix: gst itemised registers for india compliance api call
* fix: additional query cols for gst itemised registers
* fix: additional query cols for sales register
* fix: PE in sales register
* fix: tax accounts in sales register
* fix: Sales/Purchase register showing duplicate records
* fix: avoid fetching advance account for party
* refactor: remove unnecessary condition
* fix: remove checking for advance accounts in payments
---------
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
refactor: Exchange rate revaluation to handle accounts with zero account balance (#33165)
* refactor: new type for JE - Exchange Gain or Loss
* refactor: skip few validations for Exchanage Gain Or Loss type Jour
* refactor: ERR create 2 journals for handling zero and non-zero compa
1. Additional check box accounts table to identify accounts with zero balance
2. Accounts with zero balance only in either of the 2 currencies will be handled on separate Journal
* refactor: skips few validation for allowing 0 debit/credit
* fix: General Ledger presentaion currency
* test: fix test case in general ledger
* test: fix failing test case in AR report
(cherry picked from commit 914b23038c)
Co-authored-by: ruthra kumar <ruthra@erpnext.com>
* 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 3b58a6296c.
* show print page in correct currency
* Update utils.py