fix(update_billing_percentage): Remove permlevel checks on aggregated

value

(cherry picked from commit 3518d4be1d)
This commit is contained in:
Gavin D'souza
2023-02-01 12:58:08 +05:30
committed by Mergify
parent 5fc68a3dfe
commit 1cb47fbb26

View File

@@ -831,7 +831,7 @@ def update_billing_percentage(pr_doc, update_modified=True):
# Update Billing % based on pending accepted qty
total_amount, total_billed_amount = 0, 0
for item in pr_doc.items:
return_data = frappe.db.get_list(
return_data = frappe.get_all(
"Purchase Receipt",
fields=["sum(abs(`tabPurchase Receipt Item`.qty)) as qty"],
filters=[