{% extends "base.html" %}
{% block content %}
    <h2>General Ledger for Job: {{ job.job_description }}</h2>
    <table border="1">
        <tr>
            <th>Date</th>
            <th>Account</th>
            <th>Description</th>
            <th>Debit</th>
            <th>Credit</th>
        </tr>
        {% for transaction in transactions %}
        <tr>
            <td>{{ transaction.journal_entry.date }}</td>
            <td>{{ transaction.account.name }}</td>
            <td>{{ transaction.journal_entry.description }}</td>
            <td>{{ transaction.debit }}</td>
            <td>{{ transaction.credit }}</td>
        </tr>
        {% endfor %}
    </table>
{% endblock %}
