{% extends "base.html" %} {% set title = "Bill draft" %} {% block main %}

Bill draft for {{ customer.id }} {{ customer.name }}

Phone {{ customer.phone }}. Lines stay here while you add them; nothing is saved until you press Create the bills.

{% for line in lines %} {% endfor %}
#ServiceUnitsRackAmount
{{ loop.index }}{{ line.service }}{{ line.units }} {{ line.rack }}{{ rupiah(line.amount) }}
Total{{ rupiah(lines | sum(attribute="amount")) }}

Add a line

{% include "_summary.html" %} {% if errors.ServiceId %}{{ errors.ServiceId }}{% endif %} {% if errors.Units %}{{ errors.Units }}{% endif %} {% if errors.Rack %}{{ errors.Rack }}{% endif %}
{% endblock %}