fix: asset movement date for backdated asset entry (#23298)

This commit is contained in:
Saqib 2020-09-08 17:44:47 +05:30 committed by GitHub
parent 93dccd2eaa
commit 8f43cf2c9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ class Asset(AccountsController):
'assets': assets, 'assets': assets,
'purpose': 'Receipt', 'purpose': 'Receipt',
'company': self.company, 'company': self.company,
'transaction_date': getdate(nowdate()), 'transaction_date': getdate(self.purchase_date),
'reference_doctype': reference_doctype, 'reference_doctype': reference_doctype,
'reference_name': reference_docname 'reference_name': reference_docname
}).insert() }).insert()