mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-07 20:42:50 +00:00
fix: move validation to before_cancel
(cherry picked from commit d65cd605a1)
# Conflicts:
# erpnext/accounts/doctype/journal_entry/journal_entry.py
This commit is contained in:
@@ -178,7 +178,7 @@ class JournalEntry(AccountsController):
|
|||||||
return self._submit()
|
return self._submit()
|
||||||
|
|
||||||
def before_cancel(self):
|
def before_cancel(self):
|
||||||
pass
|
self.has_asset_adjustment_entry()
|
||||||
|
|
||||||
def cancel(self):
|
def cancel(self):
|
||||||
if len(self.accounts) > 100:
|
if len(self.accounts) > 100:
|
||||||
@@ -230,8 +230,11 @@ class JournalEntry(AccountsController):
|
|||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
=======
|
=======
|
||||||
JournalTaxWithholding(self).on_cancel()
|
JournalTaxWithholding(self).on_cancel()
|
||||||
|
<<<<<<< HEAD
|
||||||
self.has_asset_adjustment_entry()
|
self.has_asset_adjustment_entry()
|
||||||
>>>>>>> 73b038084b (fix: prevent manual cancellation of the linked Revaluation Journal Entry)
|
>>>>>>> 73b038084b (fix: prevent manual cancellation of the linked Revaluation Journal Entry)
|
||||||
|
=======
|
||||||
|
>>>>>>> d65cd605a1 (fix: move validation to before_cancel)
|
||||||
self.unlink_advance_entry_reference()
|
self.unlink_advance_entry_reference()
|
||||||
self.unlink_asset_reference()
|
self.unlink_asset_reference()
|
||||||
self.unlink_inter_company_jv()
|
self.unlink_inter_company_jv()
|
||||||
|
|||||||
Reference in New Issue
Block a user