Merge pull request #33916 from gavindsouza/permlevel-apis

This commit is contained in:
Suraj Shetty 2023-02-01 16:24:18 +05:30 committed by GitHub
commit ffeda0cee9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -305,7 +305,7 @@ def get_returned_qty_map_for_row(return_against, party, row_name, doctype):
fields += ["sum(abs(`tab{0}`.received_stock_qty)) as received_stock_qty".format(child_doctype)] fields += ["sum(abs(`tab{0}`.received_stock_qty)) as received_stock_qty".format(child_doctype)]
# Used retrun against and supplier and is_retrun because there is an index added for it # Used retrun against and supplier and is_retrun because there is an index added for it
data = frappe.db.get_list( data = frappe.get_all(
doctype, doctype,
fields=fields, fields=fields,
filters=[ filters=[

View File

@ -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=[