[POS] fixed issue of negative stock

This commit is contained in:
Rohit Waghchaure 2016-08-11 16:37:29 +05:30
parent 6c0d9579d2
commit 033ed00c56

View File

@ -222,6 +222,7 @@ def submit_invoice(si_doc, name):
def save_invoice(e, si_doc, name):
if not frappe.db.exists('Sales Invoice', {'offline_pos_name': name}):
si_doc.docstatus = 0
si_doc.flags.ignore_mandatory = True
si_doc.insert()
make_scheduler_log(e, si_doc.name)