brotherton-erpnext/erpnext/patches
tundebabzy cad22dbe39 Cutomisable Cash Flow Reports (#12969)
* add child doctype - Cash Flow Mapping Account

* adds new doctype - Cash Flow Mapping

* adds new doctype - Cash Flow Mapper

* adds new doctype Cash Flow Mapping Template

* adds new doctype Cash Flow Mapping Template

* adds adjustments to Cash Flow Mapper:
- remove fields from Cash Flow Mapping Template Details
- update in Cash FLow Mapper

* get cash_flow_accouts from Cash Flow Mapping

* change `tmp` to `mappers` and make sure `mappers` is sorted by its `position` field

* changes description from 'Net Profit/Loss' to 'Profit for the year'

* set `net_profit_loss` `parent_account` properly

* modify `get_account_type_based_data`:
- changed signature such that `account_type` parameter is now `account_name`
- where clause in query is now based on `name`

* remove zero rows

* de-duplicates row, summing similar accounts in the process

* makes gl sum calculation use `parent_account` as a condition

* add the `section_leader` immediately after adding net profit, sorts `accounts` by `is_working_capital` field

* adds `is_working_capital` to "account_types" so that we can use this to determine when to add "Changes in working capital" for operating activities

* add "Movement in working capital" subheader

* refactor code for readability

* adds new fields to `Cash Flow Mapping`:
- `is_interest_paid` to allow me recognise accounts for 'Interest Paid'
- `is_income_tax_paid` to allow me recognise accounts for 'Income Taxes Paid'

* allow `Cash Flow Mapping` to be renamable

* adds new field - `section_subtotal` useful for only Operating Activities

* changes `Cash Flow Mapping` doctype fields:
- remove `is_income_tax`_field
- add `is_income_tax_liability` field to identify tax payable accounts
- add `is_income_tax_expense` field to identify tax expense accounts in P or L

* calculates and shows tax paid adjustment in cash flow statement

* renames `is_interest_paid` to `is_finance_cost`

* - adds finance costs calculation
- correctly sets opening balance dates

* prevents users from selecting extra options in Cash Flow Mapping

* adds validation to prevent selecting multiple options

* adds new fields to Cash Flow Mapping

* calculate non cash p or l items (2nd pass)

* separates default cash flow generation from custom

* adds new setting to Accounts Settings:
- allow user elect to use customised cash flow report

* clean up

* removes mandatory constraint from accounts field

* allow rename, disallow create and delete

* adds patch to add default Cash Flow Mappers

* refactors custom_cashflow

* add article to explain configuration

* refactor

* further refactor

* final clean up (hopefully)

* clean up for codacy

* more codacy fixes

* more codacy fixes

* fix broken patch

* rename article to .md

* create default mappers after install

* PEP 8

* create the tables in `after_install` call
2018-02-22 11:08:36 +05:30
..
repair_tools
v4_0 Updated Python 3 fixes 2018-02-15 11:31:05 +05:30
v4_1
v4_2
v4_4 Updated Python 3 fixes 2018-02-15 11:31:05 +05:30
v5_0
v5_1 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
v5_2
v5_4
v5_7
v5_8 Fixes and cleanups of reserve qty for subcontracting 2018-01-05 18:19:59 +05:30
v6_0
v6_2
v6_3
v6_4
v6_5
v6_6
v6_8
v6_10
v6_12
v6_16
v6_19
v6_20
v6_20x
v6_21
v6_23
v6_24
v6_27
v7_0 Fixed translations and tests (#12900) 2018-02-14 17:44:06 +05:30
v7_1 Invalid date value comparison, fixes for mariadb 10.2.3+ 2018-01-31 15:30:03 +05:30
v7_2 Invalid date value comparison, fixes for mariadb 10.2.3+ 2018-01-31 15:30:03 +05:30
v8_0 fix patches for v7 sites (#12043) 2017-12-15 16:49:11 +05:30
v8_1 minor fix in patch for mariadb version 2018-01-31 15:00:18 +05:30
v8_3
v8_4
v8_5
v8_6
v8_7
v8_8
v8_9 [fix] Minor changes in patch set member as party type 2017-12-05 16:41:09 +05:30
v8_10 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
v9_0 [Agriculture Domain] (#11663) 2017-12-06 18:36:27 +05:30
v9_1
v9_2 Fixes and cleanups of reserve qty for subcontracting 2018-01-05 18:19:59 +05:30
v10_0 Cutomisable Cash Flow Reports (#12969) 2018-02-22 11:08:36 +05:30
v11_0 [Enhance] Quality Inspection Template (#12988) 2018-02-22 11:03:48 +05:30
__init__.py