mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
fix: sales order qty issue (#47560)
This commit is contained in:
@@ -1550,14 +1550,14 @@ class WorkOrder(Document):
|
|||||||
return query.run(as_dict=1)
|
return query.run(as_dict=1)
|
||||||
|
|
||||||
def get_so_details(self):
|
def get_so_details(self):
|
||||||
return frappe.db.get_value(
|
return frappe.get_all(
|
||||||
"Sales Order Item",
|
"Sales Order Item",
|
||||||
{
|
filters={
|
||||||
"parent": self.sales_order,
|
"parent": self.sales_order,
|
||||||
"item_code": self.production_item,
|
"item_code": self.production_item,
|
||||||
"docstatus": 1,
|
"docstatus": 1,
|
||||||
},
|
},
|
||||||
[
|
fields=[
|
||||||
"name",
|
"name",
|
||||||
"stock_qty",
|
"stock_qty",
|
||||||
"stock_reserved_qty",
|
"stock_reserved_qty",
|
||||||
@@ -1566,7 +1566,6 @@ class WorkOrder(Document):
|
|||||||
"parenttype as voucher_type",
|
"parenttype as voucher_type",
|
||||||
"delivered_qty",
|
"delivered_qty",
|
||||||
],
|
],
|
||||||
as_dict=1,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_voucher_details(self, stock_entry):
|
def get_voucher_details(self, stock_entry):
|
||||||
|
|||||||
Reference in New Issue
Block a user