Skip to content

Commit

Permalink
fix(update_billing_percentage): Remove permlevel checks on aggregated
Browse files Browse the repository at this point in the history
value
  • Loading branch information
gavindsouza committed Feb 1, 2023
1 parent 3c7b460 commit 3518d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/stock/doctype/purchase_receipt/purchase_receipt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down

0 comments on commit 3518d4b

Please sign in to comment.