From fc67657d6c084050b779d381c20cbbd94ff79ad7 Mon Sep 17 00:00:00 2001 From: Devadatta Sahoo <56180+devadattas@users.noreply.github.com> Date: Wed, 5 Jun 2024 03:00:34 +0530 Subject: [PATCH] Add an item quantity option when creating invoices (#2284) * Resolves https://github.com/FOSSBilling/FOSSBilling/issues/2283 * Update cspell.json --------- Co-authored-by: Devadatta Sahoo Co-authored-by: Belle Aerni --- cspell.json | 3 ++- .../html_admin/mod_invoice_invoice.html.twig | 17 ++++++++++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/cspell.json b/cspell.json index bbdfe1d30..da6b607f6 100644 --- a/cspell.json +++ b/cspell.json @@ -393,7 +393,8 @@ "intval", "thisfiledoesnotexist", "exchangerate", - "currencydata" + "currencydata", + "oninput" ], "ignorePaths": [ "tests-legacy/**", diff --git a/src/modules/Invoice/html_admin/mod_invoice_invoice.html.twig b/src/modules/Invoice/html_admin/mod_invoice_invoice.html.twig index b67a6a30b..f4c31d2f6 100644 --- a/src/modules/Invoice/html_admin/mod_invoice_invoice.html.twig +++ b/src/modules/Invoice/html_admin/mod_invoice_invoice.html.twig @@ -523,6 +523,7 @@ {{ 'Title'|trans }} + {{ 'Quantity'|trans }} {{ 'Price'|trans }} {{ 'Tax'|trans }} @@ -534,6 +535,9 @@ + + +
@@ -556,11 +560,14 @@ {% endfor %} - + + + +
- + {{ invoice.currency }}
@@ -572,17 +579,17 @@ - + {{ 'Subtotal'|trans }}: {{ mf.currency_format(invoice.subtotal, invoice.currency) }} - + {{ invoice.taxname }} {{ invoice.taxrate }}%: {{ mf.currency_format(invoice.tax, invoice.currency) }} - + {{ 'Total'|trans }}: {{ mf.currency_format(invoice.total, invoice.currency) }}