{% extends "books/report/base.tex" %}
{% load ledger %}

{% block packages %}
\usepackage{booktabs, graphics}
\newlfmP{busletter, orderfromdateto}

\addrfromskipbefore{10pt}
\dateskipbefore{16pt}
\dateskipafter{16pt}
{% endblock %}

{% block content %}
	
\section{ {{project.name}} }

\begin{tabular}{rp{3.5in}rrr}
\toprule
Date & Description & Rate & Count & Amount (\$) \\
\midrule
{% for tran in debits %}
{{ tran.exchange.date|date:"m-d-Y" }} & {{tran.memo|safe}} & {{tran.amount|currency}} & {{tran.quantity|currency}} & {{tran.total|currency}} \\
{% if not forloop.last %}
\addlinespace[0.075in]
{% endif %}
{% endfor %}
\midrule
\multicolumn{4}{r}{Subtotal:} & {{debit_total|currency}} \\
{% for tran in credits %}
{{ tran.exchange.date|date:"m-d-Y" }} & \multicolumn{3}{l}{ {{tran.memo|safe}} } & -{{tran.total|currency}} \\
{% endfor %}
\midrule
\multicolumn{4}{r}{Outstanding Balance:} & {{outstanding_balance|currency}} \\
\end{tabular}

{% endblock %}
