Skip to content

Commit

Permalink
fix(usage-record): Creation of duplicate usage record
Browse files Browse the repository at this point in the history
Invoice is not set until document is submitted and hence while validating duplicate usage record creation it fails
  • Loading branch information
shadrak98 authored Jan 7, 2025
1 parent 5e905e7 commit 07aa38e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion press/press/doctype/usage_record/usage_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def validate_duplicate_usage_record(self):
"plan": self.plan,
"docstatus": 1,
"subscription": self.subscription,
"invoice": self.invoice,
},
pluck="name",
)
Expand Down

0 comments on commit 07aa38e

Please sign in to comment.