mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 20:29:09 +00:00
fix: get_value doesn't support named plucking
This commit is contained in:
@@ -233,7 +233,7 @@ def get_cost_center_allocation_data(company, posting_date, cost_center):
|
|||||||
"valid_from": ("<=", posting_date),
|
"valid_from": ("<=", posting_date),
|
||||||
"main_cost_center": cost_center,
|
"main_cost_center": cost_center,
|
||||||
},
|
},
|
||||||
pluck="name",
|
pluck=True,
|
||||||
order_by="valid_from desc",
|
order_by="valid_from desc",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user