frappe / press

Full service cloud hosting for the Frappe stack - powers Frappe Cloud
https://frappe.cloud
GNU Affero General Public License v3.0
279 stars 195 forks source link

fix: logic in denying the site creation due to insufficient balance (ticket - 23178) #2203

Closed tanmoysrt closed 1 month ago

tanmoysrt commented 1 month ago

Related ticket - 23178

Here is logic behind the issue https://github.com/frappe/press/blob/master/press/press/doctype/team/team.py#L938-L942

So, if the team has Prepaid Credits as default payment mode and has zero balance, site creation is getting denied. If the team has even 0.1 rs, he is allowed to create site.

In the logic, we may need to allow those customers which have paid few invoices in past, inspite of having zero prepaid credits.