mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
Merge branch 'master' into develop
This commit is contained in:
@@ -3,8 +3,9 @@
|
|||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import frappe
|
import frappe
|
||||||
|
from frappe.utils import cint
|
||||||
from erpnext.stock.stock_balance import repost
|
from erpnext.stock.stock_balance import repost
|
||||||
|
|
||||||
def execute():
|
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)
|
repost(only_actual=True)
|
||||||
Reference in New Issue
Block a user