fix: force to do reposting for cancelled document
This commit is contained in:
@@ -770,6 +770,9 @@ class StockController(AccountsController):
|
||||
}
|
||||
)
|
||||
|
||||
if self.docstatus == 2:
|
||||
force = True
|
||||
|
||||
if force or future_sle_exists(args) or repost_required_for_queue(self):
|
||||
item_based_reposting = cint(
|
||||
frappe.db.get_single_value("Stock Reposting Settings", "item_based_reposting")
|
||||
|
||||
Reference in New Issue
Block a user