fix: do not submit depreciation journal entry when workflow is enabled (#19000)
This commit is contained in:
parent
abd434f656
commit
5d41e3848d
@ -67,7 +67,9 @@ def make_depreciation_entry(asset_name, date=None):
|
||||
})
|
||||
|
||||
je.flags.ignore_permissions = True
|
||||
je.submit()
|
||||
je.save()
|
||||
if not je.meta.get_workflow():
|
||||
je.submit()
|
||||
|
||||
d.db_set("journal_entry", je.name)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user