You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try this combination to see if this precision is appropriate:
Existing asset
Gross Purchase Amount: 38233774
Date of purchase and available for use: 06-May-2022
Check both of these:
Calculate Depreciation
Allow Monthly Depreciation
Finance Book child:
Depreciation Method: Written Down Value
Total Number of Depreciations: 7
Frequency of Depreciation (Months): 12
Depreciation Posting Date: 31-03-2023
Rate of Depreciation: 25
Error shown:
Depreciation Row 1: Expected value after useful life must be greater than or equal to 4630916.62
Relevant log output / Stack trace / Full Error Message.
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 69, in application
response = frappe.api.handle()
File "apps/frappe/frappe/api.py", line 55, in handle
returnfrappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 38, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 76, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1457, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/desk/form/save.py", line 22, in savedocs
doc.submit()
File "apps/frappe/frappe/model/document.py", line 1018, in submit
returnself._submit()
File "apps/frappe/frappe/model/document.py", line 1007, in _submit
returnself.save()
File "apps/frappe/frappe/model/document.py", line 310, in save
return self._save(*args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 347, in _save
self.run_before_save_methods()
File "apps/frappe/frappe/model/document.py", line 1055, in run_before_save_methods
self.run_method("validate")
File "apps/frappe/frappe/model/document.py", line 941, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1259, in composer
return composed(self, method, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1241, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "apps/frappe/frappe/model/document.py", line 938, in fn
return method_object(*args, **kwargs)
File "apps/erpnext/erpnext/assets/doctype/asset/asset.py", line 45, in validate
self.validate_expected_value_after_useful_life()
File "apps/erpnext/erpnext/assets/doctype/asset/asset.py", line 645, in validate_expected_value_after_useful_life
frappe.throw(
File "apps/frappe/frappe/__init__.py", line 504, in throw
msgprint(
File "apps/frappe/frappe/__init__.py", line 479, in msgprint
_raise_exception()
File "apps/frappe/frappe/__init__.py", line 434, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError: Depreciation Row 1: Expected value after us
The text was updated successfully, but these errors were encountered:
Information about bug
Try this combination to see if this precision is appropriate:
Existing asset
Gross Purchase Amount: 38233774
Date of purchase and available for use: 06-May-2022
Check both of these:
Finance Book child:
Depreciation Method: Written Down Value
Total Number of Depreciations: 7
Frequency of Depreciation (Months): 12
Depreciation Posting Date: 31-03-2023
Rate of Depreciation: 25
Error shown:
Depreciation Row 1: Expected value after useful life must be greater than or equal to 4630916.62
Module
assets
Version
Frappe Framework: v13.35.2 (version-13)
ERPNext: v13.35.2 (version-13)
Installation method
FrappeCloud
Relevant log output / Stack trace / Full Error Message.
The text was updated successfully, but these errors were encountered: