fix(update_billing_percentage): Remove permlevel checks on aggregated

value
This commit is contained in:
Gavin D'souza 2023-02-01 12:58:08 +05:30
parent 3c7b460fd8
commit 3518d4be1d

View File

@ -888,7 +888,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=[