brotherton-erpnext/erpnext/accounts
Joseph Marie Alba 8115be58a3
fix: Posting Date bug in load_defaults (#23415)
this.frm.posting_date is always invalid and should be changed to this.frm.doc.posting_date

The effect of this bug fix is, a default Posting Date value may now be set in Custom Script's onload event, and the default value will be honored.
Example: (Assuming posting date has been included in standard filter)
```
frappe.ui.form.on('Journal Entry', {
	before_load(frm) {
	    var posting_date = $("input[data-fieldname='posting_date']")[0].value
	    posting_date = moment(posting_date)._d
	    frm.set_value('posting_date', posting_date )
	}
})
```

Without the fix, the posting date will always be today's date. With the bug fix, the default value for posting date which is taken from the posting date's Standard Filter vale is honored.

Co-authored-by: Sagar Vora <sagar@resilient.tech>
2020-10-19 17:02:04 +05:30
..
accounts_dashboard/accounts chore: Exported Accounts Module Dashboard (#22769) 2020-07-22 16:11:06 +05:30
custom fix: Dont add Contact link if is company address 2020-10-16 15:55:25 +05:30
dashboard_chart chore: Exported Accounts Module Dashboard (#22769) 2020-07-22 16:11:06 +05:30
dashboard_chart_source fix: add heatmap_year parameter to get 2020-05-14 18:25:58 +05:30
desk_page/accounting fix: Chart of Accounts (#23530) 2020-10-14 10:29:53 +05:30
doctype fix: Posting Date bug in load_defaults (#23415) 2020-10-19 17:02:04 +05:30
module_onboarding/accounts fix: Chart of Accounts (#23530) 2020-10-14 10:29:53 +05:30
notification [rename] Email Alert -> Notification 2018-06-14 13:18:21 +05:30
number_card chore: Exported Accounts Module Dashboard (#22769) 2020-07-22 16:11:06 +05:30
onboarding_step fix: Chart of Accounts (#23530) 2020-10-14 10:29:53 +05:30
page fix(Bank Reconciliation): update/merge CR/DR journal entry search (#23629) 2020-10-19 16:49:55 +05:30
print_format refactor: POS workflow (#20789) 2020-07-23 18:51:26 +05:30
report feat: Add company and correct filter in bank statement reconciliation report filters 2020-10-13 08:18:59 +03:00
test fix(unicode): Import unicode_literals in every file 2019-01-22 18:36:10 +05:30
__init__.py
accounts feat: Standard accounts dashboard 2020-05-11 12:14:46 +05:30
deferred_revenue.py feat: More controlled deferred revenue booking (#21671) 2020-06-23 09:57:56 +05:30
general_ledger.py fix: stock & account balance difference in fraction (#23635) 2020-10-14 15:44:30 +05:30
party.py fix: Payment Reconciliation client side validations 2020-10-16 12:36:13 +05:30
README.md
utils.py fix: get_outstanding_invoices not ignoring the cancelled transactions 2020-10-03 19:41:38 +03:00

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