mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 15:39:20 +00:00
refactor: set default for fetch methods
This commit is contained in:
@@ -49,9 +49,10 @@ class ReceivablePayableReport:
|
|||||||
self.age_as_on = (
|
self.age_as_on = (
|
||||||
getdate(nowdate()) if self.filters.report_date > getdate(nowdate()) else self.filters.report_date
|
getdate(nowdate()) if self.filters.report_date > getdate(nowdate()) else self.filters.report_date
|
||||||
)
|
)
|
||||||
self.ple_fetch_method = frappe.db.get_single_value(
|
self.ple_fetch_method = (
|
||||||
"Accounts Settings", "receivable_payable_fetch_method"
|
frappe.db.get_single_value("Accounts Settings", "receivable_payable_fetch_method")
|
||||||
)
|
or "Buffered Cursor"
|
||||||
|
) # Fail Safe
|
||||||
|
|
||||||
def run(self, args):
|
def run(self, args):
|
||||||
self.filters.update(args)
|
self.filters.update(args)
|
||||||
|
|||||||
@@ -373,3 +373,4 @@ execute:frappe.db.set_single_value("Accounts Settings", "exchange_gain_loss_post
|
|||||||
erpnext.patches.v14_0.update_posting_datetime
|
erpnext.patches.v14_0.update_posting_datetime
|
||||||
erpnext.stock.doctype.stock_ledger_entry.patches.ensure_sle_indexes
|
erpnext.stock.doctype.stock_ledger_entry.patches.ensure_sle_indexes
|
||||||
erpnext.patches.v14_0.rename_group_by_to_categorize_by
|
erpnext.patches.v14_0.rename_group_by_to_categorize_by
|
||||||
|
execute:frappe.db.set_single_value("Accounts Settings", "receivable_payable_fetch_method", "Buffered Cursor")
|
||||||
|
|||||||
Reference in New Issue
Block a user