{% extends "finance_and_banking_base.html" %} {% load static %} {% load crispy_forms_tags %} {% block title %} BTB LC & Amendments {% endblock title %} {% block Style %} {% endblock Style %} {% block MainContent %} {% if messages %} {% for message in messages %} {% endfor %} {% endif %}

BTB LC and Amendments

{% comment %} {% endcomment %}
{% csrf_token %}
{{filter_form.file|as_crispy_field}} {{filter_form.btb_lc|as_crispy_field}} {{filter_form.supplier|as_crispy_field}} {{filter_form.lc_type|as_crispy_field}}
{{filter_form.opening_confirmation|as_crispy_field}} {{filter_form.start_date|as_crispy_field}} {{filter_form.end_date|as_crispy_field}}
{% if btb_lc_lists %} {% comment %} {% for item,request_data, cumulative_amendments, cumulative_total, total_lc_value,total_pi_value in btb_lc_lists %} {% endcomment %} {% for item in btb_lc_lists %} {% if item.lc_no %} {% else %} {% endif %} {% if item.is_applied_amendment_present%} {% else %} {% endif %} {% comment %} {% endcomment %} {% endfor %} {% else %} {% endif %}
SL File BTB LC NO Applied Amend. LC Type Opening Date Tenor Supplier Goods Type LC Value Total LC Value Remarks Action
{{forloop.counter}} {{ item.parent_file }}{{ item.lc_no|default:"N/A" }}{{ item.lc_no|default:"N/A" }}Present Absent{{ item.get_lc_type_display }} {{ item.opening_date|default:"N/A" }} {{ item.tenor.terms_short_name }} {% if item.supplier %} {{ item.supplier }} {% else %} {% for request in request_data %} {{request.supplier}} {% endfor %} {% endif %} {{ item.get_goods_type_display }} ${{ item.value_without_amendments|floatformat:"3" }} {% if cumulative_amendments %} {% if cumulative_amendments|length > 1 %} {% for amendment in cumulative_amendments %} ${{ amendment }}{% if not forloop.last %} + {% endif %} {% endfor %} = ${{ cumulative_total }} {% else %} ${{ cumulative_amendments.0 }} = ${{ cumulative_total }} {% endif %} {% else %} $0 {% endif %} ${{ item.lc_value.total_lc_value|floatformat:"3" }} {{ item.remarks|default:"N/A" }}
Data is not found
{% if btb_lc_lists.has_other_pages %} {% endif %}
{% endblock MainContent %} {% block meassage %} {% include 'notifications/notifications.html' %} {% endblock meassage %} {% block JS %} {% endblock JS %}