mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
[cleanup] purchase common
This commit is contained in:
@@ -69,7 +69,7 @@ class DocType:
|
||||
where parent = %s and item_code = %s""",
|
||||
(self.doc.sales_order, self.doc.production_item))[0][0]
|
||||
# get qty from Packing Item table
|
||||
dnpi_qty = webnotes.conn.sql("""select sum(qty) from `tabDelivery Note Packing Item`
|
||||
dnpi_qty = webnotes.conn.sql("""select sum(qty) from `tabPacked Item`
|
||||
where parent = %s and parenttype = 'Sales Order' and item_code = %s""",
|
||||
(self.doc.sales_order, self.doc.production_item))[0][0]
|
||||
# total qty in SO
|
||||
|
||||
Reference in New Issue
Block a user