From 2f13a8a323b910240e43f508d9e92b34285f3f6a Mon Sep 17 00:00:00 2001 From: Jonathan Starck Date: Fri, 23 Jul 2021 01:47:47 +0200 Subject: [PATCH] Added own language label for net_subtotal and already included it in the English and German translation --- app/Utils/HtmlEngine.php | 2 +- resources/lang/de/texts.php | 1 + resources/lang/en/texts.php | 1 + resources/lang/en_GB/texts.php | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Utils/HtmlEngine.php b/app/Utils/HtmlEngine.php index f50fd27d5c4c..d080caefdaa9 100644 --- a/app/Utils/HtmlEngine.php +++ b/app/Utils/HtmlEngine.php @@ -167,7 +167,7 @@ class HtmlEngine $data['$invoice.discount'] = ['value' => Number::formatMoney($this->entity_calc->getTotalDiscount(), $this->client) ?: ' ', 'label' => ctrans('texts.discount')]; $data['$discount'] = &$data['$invoice.discount']; $data['$subtotal'] = ['value' => Number::formatMoney($this->entity_calc->getSubTotal(), $this->client) ?: ' ', 'label' => ctrans('texts.subtotal')]; - $data['$net_subtotal'] = ['value' => Number::formatMoney(($this->entity_calc->getSubTotal() - $this->entity->total_taxes), $this->client) ?: ' ', 'label' => ctrans('texts.subtotal')]; + $data['$net_subtotal'] = ['value' => Number::formatMoney(($this->entity_calc->getSubTotal() - $this->entity->total_taxes), $this->client) ?: ' ', 'label' => ctrans('texts.net_subtotal')]; $data['$invoice.subtotal'] = &$data['$subtotal']; if ($this->entity->partial > 0) { diff --git a/resources/lang/de/texts.php b/resources/lang/de/texts.php index c80d9583ca6f..b12f3a9a80b2 100644 --- a/resources/lang/de/texts.php +++ b/resources/lang/de/texts.php @@ -41,6 +41,7 @@ $LANG = array( 'quantity' => 'Menge', 'line_total' => 'Summe', 'subtotal' => 'Zwischensumme', + 'net_subtotal' => 'Netto', 'paid_to_date' => 'Bereits gezahlt', 'balance_due' => 'Offener Betrag', 'invoice_design_id' => 'Design', diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index fc01b693ddaf..bda826b22c3a 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -41,6 +41,7 @@ $LANG = array( 'quantity' => 'Quantity', 'line_total' => 'Line Total', 'subtotal' => 'Subtotal', + 'net_subtotal' => 'Net', 'paid_to_date' => 'Paid to Date', 'balance_due' => 'Balance Due', 'invoice_design_id' => 'Design', diff --git a/resources/lang/en_GB/texts.php b/resources/lang/en_GB/texts.php index 5f96e3c387af..f895072856d1 100644 --- a/resources/lang/en_GB/texts.php +++ b/resources/lang/en_GB/texts.php @@ -41,6 +41,7 @@ $LANG = array( 'quantity' => 'Quantity', 'line_total' => 'Line Total', 'subtotal' => 'Subtotal', + 'net_subtotal' => 'Net', 'paid_to_date' => 'Paid to Date', 'balance_due' => 'Balance Due', 'invoice_design_id' => 'Design',