mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
[POS] fixed issue of negative stock
This commit is contained in:
@@ -222,6 +222,7 @@ def submit_invoice(si_doc, name):
|
|||||||
|
|
||||||
def save_invoice(e, si_doc, name):
|
def save_invoice(e, si_doc, name):
|
||||||
if not frappe.db.exists('Sales Invoice', {'offline_pos_name': name}):
|
if not frappe.db.exists('Sales Invoice', {'offline_pos_name': name}):
|
||||||
|
si_doc.docstatus = 0
|
||||||
si_doc.flags.ignore_mandatory = True
|
si_doc.flags.ignore_mandatory = True
|
||||||
si_doc.insert()
|
si_doc.insert()
|
||||||
make_scheduler_log(e, si_doc.name)
|
make_scheduler_log(e, si_doc.name)
|
||||||
|
|||||||
Reference in New Issue
Block a user