mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
fixed patch: repost stock due to wrong packing list
This commit is contained in:
@@ -3,8 +3,11 @@ import webnotes
|
|||||||
def execute():
|
def execute():
|
||||||
# add index
|
# add index
|
||||||
webnotes.conn.commit()
|
webnotes.conn.commit()
|
||||||
webnotes.conn.sql("""create index item_code_warehouse
|
try:
|
||||||
on `tabDelivery Note Packing Item` (item_code, warehouse)""")
|
webnotes.conn.sql("""create index item_code_warehouse
|
||||||
|
on `tabDelivery Note Packing Item` (item_code, warehouse)""")
|
||||||
|
except:
|
||||||
|
pass
|
||||||
webnotes.conn.begin()
|
webnotes.conn.begin()
|
||||||
|
|
||||||
repost_reserved_qty()
|
repost_reserved_qty()
|
||||||
@@ -72,9 +75,6 @@ def cleanup_wrong_sle():
|
|||||||
def create_comment(dn):
|
def create_comment(dn):
|
||||||
from webnotes.model.doc import Document
|
from webnotes.model.doc import Document
|
||||||
cmt = Document('Comment')
|
cmt = Document('Comment')
|
||||||
for arg in ['comment', 'comment_by', 'comment_by_fullname', 'comment_doctype', \
|
|
||||||
'comment_docname']:
|
|
||||||
cmt.fields[arg] = args[arg]
|
|
||||||
cmt.comment = 'Cancelled by administrator due to wrong entry in packing list'
|
cmt.comment = 'Cancelled by administrator due to wrong entry in packing list'
|
||||||
cmt.comment_by = 'Administrator'
|
cmt.comment_by = 'Administrator'
|
||||||
cmt.comment_by_fullname = 'Administrator'
|
cmt.comment_by_fullname = 'Administrator'
|
||||||
|
|||||||
Reference in New Issue
Block a user