From 597dfcc987aa6ad8bee61fac11986ab57c68d355 Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Mon, 8 Jul 2024 17:39:18 +0200 Subject: [PATCH] Show primary and secondary cost centre, not secondary twice --- templates/expenses/show.html | 40 ++++++++++-------------------------- templates/invoices/show.html | 40 ++++++++++-------------------------- 2 files changed, 22 insertions(+), 58 deletions(-) diff --git a/templates/expenses/show.html b/templates/expenses/show.html index 21b9ccd..e9e40a9 100644 --- a/templates/expenses/show.html +++ b/templates/expenses/show.html @@ -26,41 +26,23 @@

Kvittodelar

- - - - - + + + + + {% for expense_part in expense.expensepart_set.all %} - - - - + + + + diff --git a/templates/invoices/show.html b/templates/invoices/show.html index d1a9874..a9f743f 100644 --- a/templates/invoices/show.html +++ b/templates/invoices/show.html @@ -35,41 +35,23 @@

Fakturadelar

- Belopp - - Resultatställe - - Sekundärt resultatställe - - Budgetpost - - Attesterad av - BeloppResultatställeSekundärt resultatställeBudgetpostAttesterad av
- {{ expense_part.amount|intcomma }} kr - - {{ expense_part.secondary_cost_centre }} - - {{ expense_part.secondary_cost_centre }} - - {{ expense_part.budget_line }} - {{ expense_part.amount|intcomma }} kr{{ expense_part.cost_centre }}{{ expense_part.secondary_cost_centre }}{{ expense_part.budget_line }} {% if expense_part.attested_by %} - + {{ expense_part.attested_by.user.get_full_name }} ({{ expense_part.attest_date }}) {% else %} @@ -73,7 +55,7 @@

Kvittodelar

{% else %} - Ej attesterad + Ej attesterad {% endif %} {% endif %}
- - - - - + + + + + {% for invoice_part in invoice.invoicepart_set.all %} - - - - + + + +
- Belopp - - Resultatställe - - Sekundärt resultatställe - - Budgetpost - - Attesterad av - BeloppResultatställeSekundärt resultatställeBudgetpostAttesterad av
- {{ invoice_part.amount|intcomma }} kr - - {{ invoice_part.secondary_cost_centre }} - - {{ invoice_part.secondary_cost_centre }} - - {{ invoice_part.budget_line }} - {{ invoice_part.amount|intcomma }} kr{{ invoice_part.cost_centre }}{{ invoice_part.secondary_cost_centre }}{{ invoice_part.budget_line }} {% if invoice_part.attested_by %} - + {{ invoice_part.attested_by.user.get_full_name }} ({{ invoice_part.attest_date }}) {% else %} @@ -82,7 +64,7 @@

Fakturadelar

{% else %} - Ej attesterad + Ej attesterad {% endif %} {% endif %}