fix: convert str to date

This commit is contained in:
Nabin Hait
2024-03-12 12:16:41 +05:30
parent c7ed854850
commit 34c3e75d5c

View File

@@ -1011,7 +1011,9 @@ class Asset(AccountsController):
fixed_asset_account, cwip_account = self.get_fixed_asset_account(), self.get_cwip_account()
if (
purchase_document and self.purchase_receipt_amount and self.available_for_use_date <= nowdate()
purchase_document
and self.purchase_receipt_amount
and getdate(self.available_for_use_date) <= getdate()
):
gl_entries.append(