{% extends "base.html" %} {% block title %} Gas Contracts > {{g_batch.g_contract.name}} > Batches > {{g_batch.reference}} > Bill Imports > {{importer_id}} {% endblock %} {% block nav %} Gas Contracts > {{g_batch.g_contract.name}} > Batches > {{g_batch.reference}} > Bill Imports > {{importer_id}} {% endblock %} {% block content %} {% if is_alive %}

Still running. Refresh the page to see latest progress.

{% endif %} {% if status is defined %}

{{status}}

{% endif %} {% if failed_bills|length > 0 %} {% for read in failed_bills[0]['reads'] %} {% for k in read|sort %} {% endfor %} {% endfor %} {% for bill in failed_bills %} {% for read in bill.reads %} {% for k, v in read|dictsort %} {% endfor %} {% endfor %} {% endfor %}
Failed Bills
Error Bill Type Code MPRN Account Reference Issue Date Start Date Finish Date Net GBP VAT 5% VAT 15% VAT 17.5% VAT 20% VAT Gross GBP{{k}}
{{bill.error}} {{bill.bill_type_code}} {{bill.mprn}} {{bill.account}} {{bill.reference}} {{bill.issue_date|hh_format}} {{bill.start_date|hh_format}} {{bill.finish_date|hh_format}} {{bill.net_gbp}} {{bill.vat_5pc}} {{bill.vat_15pc}} {{bill.vat_17_5pc}} {{bill.vat_20pc}} {{bill.vat_gbp}} {{bill.gross_gbp}}{{v}}
{% endif %} {% if successful_bills|length > 0 %} {% for i in range(successful_max_registers) %} {% endfor %} {% for bill in successful_bills %} {% for g_read in bill.reads %} {% endfor %} {% endfor %}
Successful Bills
Bill Type Reference Account Issue Date Start Date Finish Date kWh Net GBP VAT GBP Gross GBP BreakdownR{{loop.index}} MSN R{{loop.index}} Previous Read Date R{{loop.index}} Previous Read Value R{{loop.index}} Previous Read Type R{{loop.index}} Present Read Date R{{loop.index}} Present Read Value R{{loop.index}} Present Read Type R{{loop.index}} Units R{{loop.index}} Correction Factor R{{loop.index}} Calorific Value
{{bill.bill_type_code}} {{bill.reference}} {{bill.account}} {{bill.issue_date|hh_format}} {{bill.start_date|hh_format}} {{bill.finish_date|hh_format}} {{bill.kwh}} {{bill.net_gbp}} {{bill.vat_gbp}} {{bill.gross_gbp}} {{bill.breakdown|dumps}}{{g_read.msn}} {{g_read.prev_date|hh_format}} {{g_read.prev_value}} {{g_read.prev_type_code}} {{g_read.pres_date|hh_format}} {{g_read.pres_value}} {{g_read.pres_type_code}} {{g_read.units}} {{g_read.correction_factor}} {{g_read.calorific_value}}
{% endif %} {% endblock %}