{% extends 'base.html' %} {% block content %}

Remit Payment to Admin

Payment Status

Total payments collected from customers: {{ total_collected|currency }}

Select an admin account to receive the payment

Available to Remit: {{ total_collected|currency }}
{% if collected_sales %}

Collected Payments Breakdown

💰 Collected Payments

{% for sale in collected_sales %} {% endfor %}
Sale # Customer Date Amount Type Status
#{{ sale.id }} {{ sale.customer.name }} {{ sale.date|date_format }} {{ sale.payment_amount|currency }} {% if sale.demand_order_id %} 📦 Demand Order {% else %} 🛒 Regular Sale {% endif %} 💰 Paid to Supplier

Total Collected Payments: {{ collected_sales|sum(attribute='payment_amount')|currency }}

{% endif %}

Remit Payment

{{ form.hidden_tag() }}
{{ form.date(type='date') }}
{{ form.amount(step='0.01', max=total_collected) }} Maximum: {{ total_collected|currency }}
{{ form.account_id() }}
{{ form.note(placeholder='Optional note about this remittance') }}
{{ form.submit(class_='btn-primary') }}

How it works

  1. You collect payment from customers during delivery (both demand orders and regular sales)
  2. Use this form to remit collected payments to admin
  3. Admin receives the payment into their selected account
  4. Your orders/sales are marked as "remitted to admin"
  5. You can remit partial amounts or full amounts as needed
{% endblock %}