Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.5.6.3 #188

Merged
merged 5 commits into from
Mar 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
LedgerModelQuerySet current() now compares dates instead of datetime.
  • Loading branch information
elarroba committed Mar 1, 2024
commit fc8fefc018bf76f5db2b9bc2ad9cc9cb1d9ccf0f
2 changes: 1 addition & 1 deletion django_ledger/models/ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def visible(self):

def current(self):
return self.filter(
Q(earliest_timestamp__gt=F('entity__last_closing_date'))
Q(earliest_timestamp__date__gt=F('entity__last_closing_date'))
| Q(earliest_timestamp__isnull=True)
)

Expand Down