fix: force to do reposting for cancelled document

(cherry picked from commit 6e661e7c0e)
This commit is contained in:
Rohit Waghchaure
2023-05-16 16:23:52 +05:30
committed by Mergify
parent f8c58b6893
commit 6f96e5dcd4
2 changed files with 19 additions and 0 deletions

View File

@@ -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")