fix(Asset): set current asset value before calculating difference amount (#24119)

This commit is contained in:
Rucha Mahabal 2020-12-15 09:32:02 +05:30 committed by GitHub
parent 89d14fdf68
commit 85213fa8cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,8 +13,8 @@ from erpnext.accounts.doctype.accounting_dimension.accounting_dimension import g
class AssetValueAdjustment(Document):
def validate(self):
self.validate_date()
self.set_difference_amount()
self.set_current_asset_value()
self.set_difference_amount()
def on_submit(self):
self.make_depreciation_entry()