mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 13:09:17 +00:00
fix(update_billing_percentage): Remove permlevel checks on aggregated
value
(cherry picked from commit 3518d4be1d)
This commit is contained in:
@@ -831,7 +831,7 @@ def update_billing_percentage(pr_doc, update_modified=True):
|
|||||||
# Update Billing % based on pending accepted qty
|
# Update Billing % based on pending accepted qty
|
||||||
total_amount, total_billed_amount = 0, 0
|
total_amount, total_billed_amount = 0, 0
|
||||||
for item in pr_doc.items:
|
for item in pr_doc.items:
|
||||||
return_data = frappe.db.get_list(
|
return_data = frappe.get_all(
|
||||||
"Purchase Receipt",
|
"Purchase Receipt",
|
||||||
fields=["sum(abs(`tabPurchase Receipt Item`.qty)) as qty"],
|
fields=["sum(abs(`tabPurchase Receipt Item`.qty)) as qty"],
|
||||||
filters=[
|
filters=[
|
||||||
|
|||||||
Reference in New Issue
Block a user