Skip to content

Commit

Permalink
fix(usage-record): Ignore cancelled usage records while linking
Browse files Browse the repository at this point in the history
  • Loading branch information
shadrak98 authored Jan 2, 2025
1 parent a1e9924 commit ba0e678
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions press/press/doctype/usage_record/usage_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def link_unlinked_usage_records():
"invoice": ("is", "not set"),
"date": ("between", (fd, ld)),
"team": ("not in", free_teams),
"docstatus": 1,
},
pluck="name",
ignore_ifnull=True,
Expand Down

0 comments on commit ba0e678

Please sign in to comment.