diff --git a/app.py b/app.py index a7d6444..da840be 100644 --- a/app.py +++ b/app.py @@ -859,6 +859,10 @@ def admin_request(rid): elif action == 'mark_paid_deliver': # Finalize: record Square payment ref, attach approved MP3s, email customer. + if req.get('customer_approved', 'none') == 'none': + flash('Customer must approve a version before you can mark paid or deliver.', 'error') + return redirect(url_for('admin_request', rid=rid)) + payment_ref = request.form.get('square_payment_ref', '').strip() if not payment_ref: flash('Square payment reference is required.', 'error') diff --git a/templates/admin/request.html b/templates/admin/request.html index 05e87a0..9153641 100644 --- a/templates/admin/request.html +++ b/templates/admin/request.html @@ -300,8 +300,9 @@ {% for fpath in files_to_show %}
⚠️ Customer must approve a version before you can mark paid or deliver.
+ {% endif %}