Skip to content

Commit

Permalink
fix: convert str to date
Browse files Browse the repository at this point in the history
  • Loading branch information
nabinhait committed Mar 12, 2024
1 parent c7ed854 commit 34c3e75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion erpnext/assets/doctype/asset/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,9 @@ def make_gl_entries(self):
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(
Expand Down

0 comments on commit 34c3e75

Please sign in to comment.