Default client subscriptions to create engagement

This commit is contained in:
A R R R Associates
2026-08-19 15:15:31 +05:30
parent c8e7f880d7
commit fee4d6d235
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -423,7 +423,7 @@ def subscription_bulk_submit(
effective_to: str = Form(""), effective_to: str = Form(""),
auto_generate_periods: str | None = Form(None), auto_generate_periods: str | None = Form(None),
remarks: str = Form(""), remarks: str = Form(""),
generation_mode: str = Form("subscription_only"), generation_mode: str = Form("current_period"),
financial_year: str = Form(""), financial_year: str = Form(""),
period_label: str = Form(""), period_label: str = Form(""),
csrf_token: str = Form(...), csrf_token: str = Form(...),
@@ -51,7 +51,7 @@
('current_period','One engagement','Generate one selected period for each chosen scope.'), ('current_period','One engagement','Generate one selected period for each chosen scope.'),
('all_periods','All FY engagements','Generate all monthly or quarterly periods, or one annual engagement.') ('all_periods','All FY engagements','Generate all monthly or quarterly periods, or one annual engagement.')
] %} ] %}
<label class="flex items-start gap-3 rounded-xl border p-4"><input type="radio" name="generation_mode" value="{{ value }}" {% if value=='subscription_only' %}checked{% endif %} class="mt-1"><span><span class="block text-sm font-medium">{{ title }}</span><span class="text-xs text-slate-500">{{ help }}</span></span></label> <label class="flex items-start gap-3 rounded-xl border p-4"><input type="radio" name="generation_mode" value="{{ value }}" {% if value=='current_period' %}checked{% endif %} class="mt-1"><span><span class="block text-sm font-medium">{{ title }}</span><span class="text-xs text-slate-500">{{ help }}</span></span></label>
{% endfor %} {% endfor %}
</div> </div>
<label class="mt-4 inline-flex gap-2 text-sm"><input type="checkbox" name="auto_generate_periods" value="1"> Keep automatic period generation enabled</label> <label class="mt-4 inline-flex gap-2 text-sm"><input type="checkbox" name="auto_generate_periods" value="1"> Keep automatic period generation enabled</label>