From 759ef4c00dbaa82b6e423744a063f848f5731c7e Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 15 Sep 2016 12:24:19 +0530 Subject: [PATCH] Allowed past dates in next depreciation date --- erpnext/accounts/doctype/asset/asset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/asset/asset.py b/erpnext/accounts/doctype/asset/asset.py index b28aaa9eed..da73218b25 100644 --- a/erpnext/accounts/doctype/asset/asset.py +++ b/erpnext/accounts/doctype/asset/asset.py @@ -80,7 +80,7 @@ class Asset(Document): frappe.throw(_("Number of Depreciations Booked cannot be greater than Total Number of Depreciations")) if self.next_depreciation_date and getdate(self.next_depreciation_date) < getdate(nowdate()): - frappe.throw(_("Next Depreciation Date must be on or after today")) + frappe.msgprint(_("Next Depreciation Date is entered as past date")) if (flt(self.value_after_depreciation) > flt(self.expected_value_after_useful_life) and not self.next_depreciation_date):