Skip to content

Commit

Permalink
chore: conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r committed May 29, 2023
1 parent 0228933 commit 44cb628
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions erpnext/controllers/stock_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ def prepare_over_receipt_message(self, rule, values):
message += _("Please adjust the qty or edit {0} to proceed.").format(rule_link)
return message

def repost_future_sle_and_gle(self):
def repost_future_sle_and_gle(self, force=False):
args = frappe._dict(
{
"posting_date": self.posting_date,
Expand All @@ -689,14 +689,10 @@ def repost_future_sle_and_gle(self):
}
)

<<<<<<< HEAD
if future_sle_exists(args) or repost_required_for_queue(self):
=======
if self.docstatus == 2:
force = True

if force or future_sle_exists(args) or repost_required_for_queue(self):
>>>>>>> 6e661e7c0e (fix: force to do reposting for cancelled document)
item_based_reposting = cint(
frappe.db.get_single_value("Stock Reposting Settings", "item_based_reposting")
)
Expand Down

0 comments on commit 44cb628

Please sign in to comment.