mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-13 20:18:45 +00:00
@@ -27,11 +27,7 @@ def execute():
|
|||||||
table.qty,
|
table.qty,
|
||||||
parent.conversion_rate,
|
parent.conversion_rate,
|
||||||
)
|
)
|
||||||
.where(
|
.where((table.docstatus == 1) & (parent.company == company))
|
||||||
(table.amount_difference_with_purchase_invoice != 0)
|
|
||||||
& (table.docstatus == 1)
|
|
||||||
& (parent.company == company)
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
posting_date = "2024-04-01"
|
posting_date = "2024-04-01"
|
||||||
@@ -121,6 +117,7 @@ def get_billed_qty_against_purchase_receipt(pr_names):
|
|||||||
frappe.qb.from_(table)
|
frappe.qb.from_(table)
|
||||||
.select(table.pr_detail, Sum(table.qty).as_("qty"))
|
.select(table.pr_detail, Sum(table.qty).as_("qty"))
|
||||||
.where((table.pr_detail.isin(pr_names)) & (table.docstatus == 1))
|
.where((table.pr_detail.isin(pr_names)) & (table.docstatus == 1))
|
||||||
|
.groupby(table.pr_detail)
|
||||||
)
|
)
|
||||||
invoice_data = query.run(as_list=1)
|
invoice_data = query.run(as_list=1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user