Merge branch 'develop'
This commit is contained in:
commit
6cb8662bec
@ -1,2 +1,2 @@
|
||||
from __future__ import unicode_literals
|
||||
__version__ = '6.16.3'
|
||||
__version__ = '6.16.4'
|
||||
|
@ -7,7 +7,7 @@ app_publisher = "Frappe Technologies Pvt. Ltd."
|
||||
app_description = """ERP made simple"""
|
||||
app_icon = "icon-th"
|
||||
app_color = "#e74c3c"
|
||||
app_version = "6.16.3"
|
||||
app_version = "6.16.4"
|
||||
app_email = "info@erpnext.com"
|
||||
app_license = "GNU General Public License (v3)"
|
||||
source_link = "https://github.com/frappe/erpnext"
|
||||
|
@ -6,16 +6,18 @@ import frappe
|
||||
from erpnext.stock.stock_balance import update_bin_qty, get_reserved_qty
|
||||
|
||||
def execute():
|
||||
frappe.reload_doctype("Sales Order Item")
|
||||
|
||||
repost_for = frappe.db.sql("""
|
||||
select
|
||||
distinct item_code, warehouse
|
||||
from
|
||||
select
|
||||
distinct item_code, warehouse
|
||||
from
|
||||
(
|
||||
(
|
||||
select distinct item_code, warehouse
|
||||
select distinct item_code, warehouse
|
||||
from `tabSales Order Item` where docstatus=1
|
||||
) UNION (
|
||||
select distinct item_code, warehouse
|
||||
select distinct item_code, warehouse
|
||||
from `tabPacked Item` where docstatus=1 and parenttype='Sales Order'
|
||||
)
|
||||
) so_item
|
||||
@ -27,9 +29,9 @@ def execute():
|
||||
update_bin_qty(item_code, warehouse, {
|
||||
"reserved_qty": get_reserved_qty(item_code, warehouse)
|
||||
})
|
||||
|
||||
frappe.db.sql("""delete from tabBin
|
||||
|
||||
frappe.db.sql("""delete from tabBin
|
||||
where exists(
|
||||
select name from tabItem where name=tabBin.item_code and ifnull(is_stock_item, 0) = 0
|
||||
)
|
||||
""")
|
||||
""")
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user