From 1595c9d1f7fb0b24a5e704fca30d5eb364bf9f4b Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 15 Mar 2024 11:32:27 +1100 Subject: [PATCH] Stubs for rappen rounding --- app/Helpers/Invoice/InvoiceSum.php | 1 + app/Helpers/Invoice/InvoiceSumInclusive.php | 1 + 2 files changed, 2 insertions(+) diff --git a/app/Helpers/Invoice/InvoiceSum.php b/app/Helpers/Invoice/InvoiceSum.php index d6379356cd11..e1ae39609d80 100644 --- a/app/Helpers/Invoice/InvoiceSum.php +++ b/app/Helpers/Invoice/InvoiceSum.php @@ -250,6 +250,7 @@ class InvoiceSum } } /* Set new calculated total */ + /** @todo - rappen rounding here */ $this->invoice->amount = $this->formatValue($this->getTotal(), $this->precision); $this->invoice->total_taxes = $this->getTotalTaxes(); diff --git a/app/Helpers/Invoice/InvoiceSumInclusive.php b/app/Helpers/Invoice/InvoiceSumInclusive.php index 3786b55f99e6..13ebf8940924 100644 --- a/app/Helpers/Invoice/InvoiceSumInclusive.php +++ b/app/Helpers/Invoice/InvoiceSumInclusive.php @@ -268,6 +268,7 @@ class InvoiceSumInclusive } /* Set new calculated total */ + /** @todo - rappen rounding here */ $this->invoice->amount = $this->formatValue($this->getTotal(), $this->precision); $this->invoice->total_taxes = $this->getTotalTaxes();