mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
Merge branch 'develop' into fixes
This commit is contained in:
@@ -14,6 +14,12 @@ def get_data():
|
|||||||
"dependencies": ["Item", "Supplier"],
|
"dependencies": ["Item", "Supplier"],
|
||||||
"description": _("Purchase Orders given to Suppliers."),
|
"description": _("Purchase Orders given to Suppliers."),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "doctype",
|
||||||
|
"name": "Purchase Invoice",
|
||||||
|
"onboard": 1,
|
||||||
|
"dependencies": ["Item", "Supplier"]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "doctype",
|
"type": "doctype",
|
||||||
"name": "Material Request",
|
"name": "Material Request",
|
||||||
|
|||||||
@@ -227,9 +227,9 @@ class update_entries_after(object):
|
|||||||
elif actual_qty < 0:
|
elif actual_qty < 0:
|
||||||
# In case of delivery/stock issue, get average purchase rate
|
# In case of delivery/stock issue, get average purchase rate
|
||||||
# of serial nos of current entry
|
# of serial nos of current entry
|
||||||
stock_value_change = -1 * flt(frappe.db.sql("""select sum(purchase_rate)
|
stock_value_change = -1 * flt(frappe.get_all("Serial No",
|
||||||
from `tabSerial No` where name in (%s)""" % (", ".join(["%s"]*len(serial_no))),
|
fields=["sum(purchase_rate)"],
|
||||||
tuple(serial_no))[0][0])
|
filters = {'name': ('in', serial_no)}, as_list=1)[0][0])
|
||||||
|
|
||||||
new_stock_qty = self.qty_after_transaction + actual_qty
|
new_stock_qty = self.qty_after_transaction + actual_qty
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user