fix(update_billing_percentage): Remove permlevel checks on aggregated
value
This commit is contained in:
parent
3c7b460fd8
commit
3518d4be1d
@ -888,7 +888,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=[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user