Skip to content
Open
Changes from all commits
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
4 changes: 4 additions & 0 deletions press/press/doctype/site/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -2879,6 +2879,10 @@ def can_charge_for_subscription(self, subscription=None):
and self.team != "Administrator"
and not self.free
and (today > get_datetime(self.trial_end_date).date() if self.trial_end_date else True)
and not (
self.creation_failed
and not frappe.db.exists("Usage Record", {"document_name": self.name, "docstatus": 1})
)
)

def get_plan_name(self, plan=None):
Expand Down
Loading