brotherton-erpnext/erpnext
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 fix: Posting Date bug in load_defaults (#23415) 2020-10-19 17:02:04 +05:30
agriculture feat: updated desk pages (#21138) 2020-04-10 18:52:05 +05:30
assets Merge pull request #23588 from kevingdc/fix/asset-update-maintenance-status 2020-10-12 16:13:29 +05:30
buying fix: removed extra space from label "Rate" (#23683) 2020-10-19 16:55:20 +05:30
change_log
commands
communication feat: add customer link to call log 2020-08-25 17:09:53 +05:30
config fix: Chart of Accounts (#23530) 2020-10-14 10:29:53 +05:30
controllers fix: cannot merge pos invoice if validate selling price is checked (#23593) 2020-10-12 18:31:23 +05:30
crm fix: displayings mandatory address field in Lead form 2020-10-13 17:33:58 +05:30
demo fix: Travis (#23606) 2020-10-13 16:53:10 +05:30
domains
education fix: Student Admission and Student Applicant fixes (#23515) 2020-10-19 17:00:56 +05:30
erpnext_integrations fix(plaid): do not send null list in account ids (#23376) 2020-09-21 18:50:22 +05:30
healthcare fix: Patient Appointment not able to save (#23434) 2020-09-25 12:45:47 +05:30
hotels
hr fix: fuel expense amount of vehicle log (#23632) 2020-10-16 12:32:59 +05:30
hub
hub_node fix(DocTypes): Reset "owner" values in DocTypes to Administrator (#23350) 2020-09-18 18:27:24 +05:30
loan_management Merge pull request #23301 from deepeshgarg007/closed_loan_amount 2020-09-08 21:32:54 +05:30
maintenance fix(DocTypes): Reset "owner" values in DocTypes to Administrator (#23350) 2020-09-18 18:27:24 +05:30
manufacturing Fixed incorrect operation time calculation develop (#23674) 2020-10-19 10:38:48 +05:30
non_profit fix: translate error log 2020-09-30 12:01:35 +05:30
patches fix: added patch to make custom field 'Print UOM after Quantity' 2020-10-08 16:41:23 +05:30
payroll fix: Travis (#23606) 2020-10-13 16:53:10 +05:30
portal Merge branch 'develop' into item-group-filter-portal 2020-08-31 16:42:47 +05:30
projects fix: removing unused imports (#23633) 2020-10-14 15:44:52 +05:30
public fix: set default filters on unchecking box, code cleanup 2020-10-15 12:21:43 +05:30
quality_management fix: review changes 2020-10-13 11:46:52 +05:30
regional feat: address template for luxembourg 2020-10-13 13:35:33 +02:00
restaurant chore: add query functions to whitelist 2020-07-02 12:35:41 +05:30
selling fix: not able to make material request from SO 2020-10-16 15:21:52 +05:30
setup fix: Chart of Accounts (#23530) 2020-10-14 10:29:53 +05:30
shopping_cart fix: Ui fixes 2020-09-24 16:37:08 +05:30
startup fix: Supplier Leaderboard fix 2020-09-03 19:45:04 +05:30
stock fix: Check for backdated validation only for transaction company (#23639) 2020-10-19 16:56:45 +05:30
support refactor: Issue form cleaned up and renamed Minutes to First Response field (#23066) 2020-09-23 16:53:16 +05:30
templates Merge branch 'develop' into rfq-email 2020-10-12 18:02:15 +05:30
tests fix: typo in function name 2020-05-08 15:13:48 +05:30
translations chore: Update translations (#23677) 2020-10-19 11:19:27 +05:30
utilities fix: Check for backdated validation only for transaction company (#23639) 2020-10-19 16:56:45 +05:30
www fix: Update modified timestamp for Delivery Note Item 2020-07-17 10:35:16 +05:30
__init__.py fix: bump erpnext develop to version 13-dev (#21651) 2020-05-08 13:06:50 +05:30
exceptions.py
hooks.py fix: Cleanup code 2020-10-16 15:28:12 +05:30
modules.txt feat: New Payroll module (#21990) 2020-06-19 19:17:57 +05:30
patches.txt fix: added patch to make custom field 'Print UOM after Quantity' 2020-10-08 16:41:23 +05:30