8115be58a3
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> |
||
---|---|---|
.. | ||
accounts_dashboard/accounts | ||
custom | ||
dashboard_chart | ||
dashboard_chart_source | ||
desk_page/accounting | ||
doctype | ||
module_onboarding/accounts | ||
notification | ||
number_card | ||
onboarding_step | ||
page | ||
print_format | ||
report | ||
test | ||
__init__.py | ||
accounts | ||
deferred_revenue.py | ||
general_ledger.py | ||
party.py | ||
README.md | ||
utils.py |
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