brotherton-erpnext/erpnext/accounts/doctype
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
..
account fix: Chart of Accounts (#23530) 2020-10-14 10:29:53 +05:30
accounting_dimension fix: Test Cases 2020-06-12 15:29:40 +05:30
accounting_dimension_detail fix: Default dimensions in child doctypes 2019-08-15 17:06:32 +05:30
accounting_period chore: rename bank reconciliation to bank clearance 2020-04-06 16:32:33 +05:30
accounts_settings fix: Typo in Accounts Setings 2020-10-07 15:13:57 +05:30
allowed_to_transact_with fix: Patch test 2020-05-01 13:26:26 +05:30
bank fix: Move branch code back to bank account (#22725) 2020-07-22 18:21:04 +05:30
bank_account fix: Move branch code back to bank account (#22725) 2020-07-22 18:21:04 +05:30
bank_account_subtype fix: Rename bank account type doctypes (#21179) 2020-04-23 12:19:30 +05:30
bank_account_type fix: Rename bank account type doctypes (#21179) 2020-04-23 12:19:30 +05:30
bank_clearance fix: Bank Clearance of POS purchase invoice (#22882) 2020-08-03 20:42:15 +05:30
bank_clearance_detail chore: rename bank reconciliation to bank clearance 2020-04-06 16:32:33 +05:30
bank_guarantee fix: the JSON object must be str, bytes or bytearray, not "list" (#23047) 2020-08-17 10:51:53 +05:30
bank_statement_settings
bank_statement_settings_item
bank_statement_transaction_entry fix: get_transaction_entries function arguments in Bank Statement Transaction Entry (#23051) 2020-09-14 21:12:36 +05:30
bank_statement_transaction_invoice_item
bank_statement_transaction_payment_item
bank_statement_transaction_settings
bank_statement_transaction_settings_item
bank_transaction fix: remove unused imports 2020-09-04 19:08:08 +05:30
bank_transaction_mapping fix: Missing commits from hotfix branch (#17997) 2019-07-03 10:34:31 +05:30
bank_transaction_payments fix: attempt at pymysql InternalError 1054 about clearance_date in field list when removing payments from bank transactions 2020-02-18 17:49:57 +05:30
budget fix: blank option in the beginning 2020-10-06 15:15:29 +05:30
budget_account
c_form fix: Merge branch 'develop' into healthcare_refactor 2020-03-25 02:08:42 +05:30
c_form_invoice_detail
cash_flow_mapper
cash_flow_mapping
cash_flow_mapping_accounts
cash_flow_mapping_template
cash_flow_mapping_template_details
cashier_closing Merge branch 'master' into develop 2019-03-20 14:39:49 +05:30
cashier_closing_payments
chart_of_accounts_importer fix: Chart of Accounts (#23530) 2020-10-14 10:29:53 +05:30
cheque_print_template fix: Refactor for Print Format changes (#17242) 2019-04-22 12:08:18 +05:30
closed_document
cost_center Merge branch 'develop' of https://github.com/frappe/erpnext into cost_center_fix 2020-06-20 12:33:41 +05:30
coupon_code fix(minor): test dependencies 2020-08-25 14:35:49 +05:30
discounted_invoice perf: improve gl entry submission (#20676) 2020-02-27 18:32:19 +05:30
distributed_cost_center feat(Cost Center): Distributed Cost Center (#21531) 2020-06-08 12:20:21 +05:30
dunning fix: grand_total assigment before reference 2020-08-07 15:57:31 +05:30
dunning_letter_text feat: Dunning (#22559) 2020-07-23 15:45:03 +05:30
dunning_type feat: Dunning (#22559) 2020-07-23 15:45:03 +05:30
exchange_rate_revaluation fix: merge conflicts 2020-04-07 16:42:50 +05:30
exchange_rate_revaluation_account fix: add a more descriptive message when no records are found (#18082) 2019-06-28 12:38:40 +05:30
finance_book fix: Fixes in accounting doctype dashboards 2019-06-02 19:35:18 +05:30
fiscal_year fix: remove Request for Quotation link from Fiscal Year dashboard (#23040) 2020-08-18 10:57:10 +05:30
fiscal_year_company
gl_entry Merge branch 'develop' of https://github.com/frappe/erpnext into project-link-for-all-accounts 2020-07-06 12:37:28 +05:30
gst_account
invoice_discounting Merge branch 'develop' of https://github.com/frappe/erpnext into project-link-for-all-accounts 2020-07-06 12:37:28 +05:30
item_tax_template fix(DocTypes): Reset "owner" values in DocTypes to Administrator (#23350) 2020-09-18 18:27:24 +05:30
item_tax_template_detail
journal_entry fix: Posting Date bug in load_defaults (#23415) 2020-10-19 17:02:04 +05:30
journal_entry_account fix: Update journal entry account timesstamp 2020-06-24 17:49:50 +05:30
journal_entry_template fix: Add multi currency check and proper account filters 2020-05-01 18:38:13 +05:30
journal_entry_template_account rename je template account dt 2020-04-25 18:13:01 +05:30
loyalty_point_entry refactor: POS workflow (#20789) 2020-07-23 18:51:26 +05:30
loyalty_point_entry_redemption
loyalty_program fix: Travis (#23606) 2020-10-13 16:53:10 +05:30
loyalty_program_collection
mode_of_payment fix(DocTypes): Reset "owner" values in DocTypes to Administrator (#23350) 2020-09-18 18:27:24 +05:30
mode_of_payment_account
monthly_distribution fix: Fixes in accounting doctype dashboards 2019-06-02 19:35:18 +05:30
monthly_distribution_percentage
opening_invoice_creation_tool fix: letter head not found in opening invoice creation tool 2020-06-28 17:08:12 +05:30
opening_invoice_creation_tool_item fix: Add accounting dimensions to subscription and opening invoice tool 2019-07-29 12:14:49 +05:30
party_account
payment_entry fix: Check if list view standard filter exists in Payment Entry 2020-10-09 21:44:23 +05:30
payment_entry_deduction
payment_entry_reference feat: Payment allocation based on payment terms (#20945) 2020-04-23 16:07:36 +05:30
payment_gateway_account fix: Fixes in accounting doctype dashboards 2019-06-02 19:35:18 +05:30
payment_order fix: teardown created payment order 2020-09-04 19:59:01 +05:30
payment_order_reference fix: capture advance payments in payment order 2020-09-04 12:17:56 +05:30
payment_reconciliation fix: Missing semicolon 2020-10-16 16:04:56 +05:30
payment_reconciliation_invoice fix: Multi currency payment reconciliation (#22738) 2020-07-22 17:59:37 +05:30
payment_reconciliation_payment fix: Multi currency payment reconciliation (#22738) 2020-07-22 17:59:37 +05:30
payment_request fix(payment-request): do not set guest as administrator (#22801) 2020-07-24 17:19:56 +05:30
payment_schedule feat: Payment allocation based on payment terms (#20945) 2020-04-23 16:07:36 +05:30
payment_term Update payment_term.json (#23644) 2020-10-14 22:48:46 +05:30
payment_terms_template feat: Payment allocation based on payment terms (#20945) 2020-04-23 16:07:36 +05:30
payment_terms_template_detail
period_closing_voucher fix(DocTypes): Reset "owner" values in DocTypes to Administrator (#23350) 2020-09-18 18:27:24 +05:30
pos_closing_entry fix: Travis (#23606) 2020-10-13 16:53:10 +05:30
pos_closing_entry_detail refactor: POS workflow (#20789) 2020-07-23 18:51:26 +05:30
pos_closing_entry_taxes refactor: POS workflow (#20789) 2020-07-23 18:51:26 +05:30
pos_customer_group
pos_field feat: provision to select the custom fields in the online POS 2019-12-26 11:59:19 +05:30
pos_invoice fix(minor): msgprint not defined in POS Invoice (#23680) 2020-10-18 19:28:26 +05:30
pos_invoice_item refactor: POS workflow (#20789) 2020-07-23 18:51:26 +05:30
pos_invoice_merge_log fix: cannot merge pos invoices with inclusive tax (#23541) 2020-10-08 11:23:21 +05:30
pos_invoice_reference refactor: POS workflow (#20789) 2020-07-23 18:51:26 +05:30
pos_item_group
pos_opening_entry fix: mode of payment not fetched if no account is set (#23334) 2020-09-19 19:33:21 +05:30
pos_opening_entry_detail refactor: POS workflow (#20789) 2020-07-23 18:51:26 +05:30
pos_payment_method refactor: POS workflow (#20789) 2020-07-23 18:51:26 +05:30
pos_profile fix: sales invoice series gets overwritten with pos invoice series (#23479) 2020-10-12 17:10:37 +05:30
pos_profile_user refactor: POS workflow (#20789) 2020-07-23 18:51:26 +05:30
pos_settings fix: button click event not working in POS custom fields (#23358) 2020-09-18 15:27:17 +05:30
pricing_rule Merge branch 'develop' into pricing_rule_on_condition 2020-10-07 13:35:53 +05:30
pricing_rule_brand fix: rename pricing rule child doctype names 2019-03-25 14:28:08 +05:30
pricing_rule_detail feat: pricing rule enhancements 2019-03-19 12:44:30 +05:30
pricing_rule_item_code fix: rename pricing rule child doctype names 2019-03-25 14:28:08 +05:30
pricing_rule_item_group fix: rename pricing rule child doctype names 2019-03-25 14:28:08 +05:30
process_deferred_accounting fix: Account filter in Process Deferred Accounting doctype 2020-09-03 18:09:02 +05:30
process_statement_of_accounts feat(Accounting): Process Statement Of Accounts (#22901) 2020-08-11 16:23:47 +05:30
process_statement_of_accounts_customer feat(Accounting): Process Statement Of Accounts (#22901) 2020-08-11 16:23:47 +05:30
promotional_scheme fix: rename pricing rule child doctype names 2019-03-25 14:28:08 +05:30
promotional_scheme_price_discount fix: rename pricing rule child doctype names 2019-03-25 14:28:08 +05:30
promotional_scheme_product_discount fix: disable field's fieldtype changed from data to check 2019-07-21 00:02:09 +05:30
psoa_cost_center feat(Accounting): Process Statement Of Accounts (#22901) 2020-08-11 16:23:47 +05:30
psoa_project feat(Accounting): Process Statement Of Accounts (#22901) 2020-08-11 16:23:47 +05:30
purchase_invoice refactor: enabled no copy property for Supplier Invoice Date to avoid due date validation 2020-10-16 15:26:27 +05:30
purchase_invoice_advance
purchase_invoice_item fix: incorrect stock value in return case (#23102) 2020-08-20 15:53:58 +05:30
purchase_taxes_and_charges fix(DocTypes): Reset "owner" values in DocTypes to Administrator (#23350) 2020-09-18 18:27:24 +05:30
purchase_taxes_and_charges_template fix(DocTypes): Reset "owner" values in DocTypes to Administrator (#23350) 2020-09-18 18:27:24 +05:30
salary_component_account
sales_invoice fix: consider rounded_total in returns (#23609) 2020-10-13 21:23:26 +05:30
sales_invoice_advance
sales_invoice_item fix: incorrect stock value in return case (#23102) 2020-08-20 15:53:58 +05:30
sales_invoice_payment fix: Bank Clearance of POS purchase invoice (#22882) 2020-08-03 20:42:15 +05:30
sales_invoice_timesheet
sales_taxes_and_charges fix: Add dimension section in multiple doctypes 2019-05-26 12:31:01 +05:30
sales_taxes_and_charges_template fix: Susbcription in Sales Taxes and Charges Dashboard 2020-08-10 15:17:58 +05:30
share_balance
share_transfer fix: NameError due to invalid variable 2020-05-03 20:17:47 +05:30
share_type fix: Dashboards for doctypes in accounting module 2019-05-23 11:29:39 +05:30
shareholder refactor: Share transfer cancellation and code cleanup 2019-11-18 17:52:19 +05:30
shipping_rule fix: account & cost center filter by company 2020-08-26 18:23:21 +05:30
shipping_rule_condition
shipping_rule_country
subscription fix: Payment Schedule not fetching 2020-10-12 12:15:49 +05:30
subscription_invoice feat: Enhancement in subscription (#22263) 2020-07-23 11:11:23 +05:30
subscription_plan feat: Enhancement in subscription (#22263) 2020-07-23 11:11:23 +05:30
subscription_plan_detail feat: Enhancement in subscription (#22263) 2020-07-23 11:11:23 +05:30
subscription_settings feat: Enhancement in subscription (#22263) 2020-07-23 11:11:23 +05:30
tax_category feat: Allow Rename for Tax Category 2020-08-30 19:42:24 +05:30
tax_rule fix: Add test 2020-09-29 18:39:45 +05:30
tax_withholding_account
tax_withholding_category fix: Do not consider opening entries for TDS calculation (#23597) 2020-10-12 12:39:08 +05:30
tax_withholding_rate
__init__.py