{% extends "contracts/base.html" %}{% load rr %}{% block title %}Contract balances{% endblock %} {% block content %}

Contract balances rollforward {{ first|date:"M Y" }} – {{ last|date:"M Y" }}

{% with range=1 %}{% include "contracts/_period_form.html" %}{% endwith %}

Positions are netted per contract (never across contracts): cumulative revenue above billing is a contract asset, below billing is a contract liability.

Contract liabilities: opening → closing{{ tot.open_liability|money }} → {{ tot.close_liability|money }}
Contract assets: opening → closing{{ tot.open_asset|money }} → {{ tot.close_asset|money }}
Billed{{ tot.billed|money }}
Revenue{{ tot.revenue|money }}
{% for r in rows %}{% endfor %}
ContractOpening assetOpening liability+ Billed− RevenueClosing assetClosing liability
{{ r.contract.number }}{{ r.open_asset|money }}{{ r.open_liability|money }}{{ r.billed|money }}{{ r.revenue|money }}{{ r.close_asset|money }}{{ r.close_liability|money }}
Total{{ tot.open_asset|money }}{{ tot.open_liability|money }}{{ tot.billed|money }}{{ tot.revenue|money }}{{ tot.close_asset|money }}{{ tot.close_liability|money }}
{% endblock %}