minot fix
This commit is contained in:
parent
828e2fd5e0
commit
0bfd4849ca
@ -3,8 +3,9 @@
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
from frappe.utils import cint
|
||||
from erpnext.stock.stock_balance import repost
|
||||
|
||||
def execute():
|
||||
if frappe.db.get_value("Stock Settings", None, "allow_negative_stock"):
|
||||
if cint(frappe.db.get_value("Stock Settings", None, "allow_negative_stock")):
|
||||
repost(only_actual=True)
|
Loading…
x
Reference in New Issue
Block a user