mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-07 04:24:13 +00:00
fix: include cost_center and project upon accounting dimension fetch
(cherry picked from commit 4680295303)
This commit is contained in:
@@ -309,8 +309,8 @@ def get_dimensions(with_cost_center_and_project=False):
|
|||||||
if with_cost_center_and_project:
|
if with_cost_center_and_project:
|
||||||
dimension_filters.extend(
|
dimension_filters.extend(
|
||||||
[
|
[
|
||||||
{"fieldname": "cost_center", "document_type": "Cost Center"},
|
frappe._dict({"fieldname": "cost_center", "document_type": "Cost Center"}),
|
||||||
{"fieldname": "project", "document_type": "Project"},
|
frappe._dict({"fieldname": "project", "document_type": "Project"}),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ class PaymentReconciliation(Document):
|
|||||||
self.common_filter_conditions = []
|
self.common_filter_conditions = []
|
||||||
self.accounting_dimension_filter_conditions = []
|
self.accounting_dimension_filter_conditions = []
|
||||||
self.ple_posting_date_filter = []
|
self.ple_posting_date_filter = []
|
||||||
self.dimensions = get_dimensions()[0]
|
self.dimensions = get_dimensions(with_cost_center_and_project=True)[0]
|
||||||
|
|
||||||
def load_from_db(self):
|
def load_from_db(self):
|
||||||
# 'modified' attribute is required for `run_doc_method` to work properly.
|
# 'modified' attribute is required for `run_doc_method` to work properly.
|
||||||
|
|||||||
Reference in New Issue
Block a user