{% extends 'base.html' %} {% load custom_tags_and_filters %} {% load static %} {% block title %}Transfer charges to another project{% endblock %} {% block extrahead %} {% endblock %} {% block content %}

Transfer charges to another project

This page allows managers and accounting officers to transfer charges from one project to another.

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

  • {{ form.non_field_errors }}
{% endif %}
{% endif %} {% csrf_token %}
{% if form.start.errors or form.end.errors %}
{{ form.start.errors|striptags }}
{{ form.end.errors|striptags }}
{% endif %}
{% if form.project_id.errors %}
{{ form.project_id.errors|striptags }}
{% endif %}
{% if form.user_id.errors or form.username.errors %}
{{ form.user_id.errors|striptags }}{{ form.username.errors|striptags }}
{% endif %}
{% button type="export" submit=True value="Search" icon="glyphicon-search" %}
{% if charges %}
{% if form.new_project_id.errors %}
{{ form.new_project_id.errors|striptags }}
{% endif %}
{% with number_of_charges=charges|length %}
{% button type="save" submit=False value="Confirm" name="confirm" onclick="if (this.form.reportValidity()){ if(window.confirm('Are you sure you want to transfer these "|concat:number_of_charges|concat:" charges?')){submit_and_disable(this)}}" %}
{{ number_of_charges }} charges were found:
{% endwith %} {% for charge in charges %} {% endfor %}
Date Type Item Quantity User Project {{ "projects_and_accounts"|customization:"project_application_identifier_name" }}
{{ charge.end|date:"SHORT_DATETIME_FORMAT" }} {{ charge.type }} {{ charge.name }} {{ charge.quantity }} {{ charge.user }} {{ charge.project }} {{ charge.application }}
{% endif %}
{% endblock %}