{% extends "base.html" %} {% load static %} {% load custom_tags_and_filters %} {% load billing_tags %} {% block extrahead %} {% endblock %} {% block title %} {% if form.instance.pk %} Edit {% else %} New {% endif %} Custom charge {% endblock %} {% block content %} {% with edit=form.instance.pk %}

{% if edit %} Edit {% else %} New {% endif %} custom charge

{% if form.errors %}
Oops! Something went wrong. Please correct the errors highlighted below.
{{ form.non_field_errors }}
{% endif %} {% if not edit %}

Use this form to create a new custom charge.
Set a negative amount in case of an adjustment.

{% endif %}
{% csrf_token %} {% if edit %}{% endif %}
{% if form.name.errors %}
{{ form.name.errors|striptags }}
{% endif %}
{% if form.additional_details.errors %}
{{ form.additional_details.errors|striptags }}
{% endif %}
{% if form.date.errors %}
{{ form.date.errors|striptags }}
{% endif %}
{% if form.customer.errors %}
{{ form.customer.errors|striptags }}
{% endif %}
{% if form.project.errors %}
{{ form.project.errors|striptags }}
{% endif %}
{% if core_facility_required or core_facilities %}
{% if form.core_facility.errors %}
{{ form.core_facility.errors|striptags }}
{% endif %}
{% endif %}
{% if form.amount.errors %}
{{ form.amount.errors|striptags }}
{% endif %}
{% cap_discount_installed as cap_discount_installed %} {% if cap_discount_installed %}
{% if form.cap_eligible.errors %}
{{ form.cap_eligible.errors|striptags }}
{% endif %}
{% endif %}
{% button type="save" value="Confirm" %}
{% endwith %} {% endblock %}