diff --git a/src/bb-modules/Client/Api/Client.php b/src/bb-modules/Client/Api/Client.php index 20f5cecdc..f5efa0889 100644 --- a/src/bb-modules/Client/Api/Client.php +++ b/src/bb-modules/Client/Api/Client.php @@ -319,4 +319,9 @@ class Client extends \Api_Abstract return $service->getClientBalance($this->identity); } + public function is_taxable() + { + return $this->getService()->isClientTaxable($this->identity); + } + } \ No newline at end of file diff --git a/src/bb-modules/Invoice/Api/Client.php b/src/bb-modules/Invoice/Api/Client.php index 1031cf9f2..d0c4c6348 100644 --- a/src/bb-modules/Invoice/Api/Client.php +++ b/src/bb-modules/Invoice/Api/Client.php @@ -195,4 +195,10 @@ class Client extends \Api_Abstract return $pager; } + + public function get_tax_rate() + { + $service = $this->di['mod_service']('Invoice', 'Tax'); + return $service->getTaxRateForClient($this->identity); + } } \ No newline at end of file diff --git a/src/bb-modules/Orderbutton/html_client/mod_orderbutton_checkout.phtml b/src/bb-modules/Orderbutton/html_client/mod_orderbutton_checkout.phtml index 900e2f7cb..0ca4442b3 100644 --- a/src/bb-modules/Orderbutton/html_client/mod_orderbutton_checkout.phtml +++ b/src/bb-modules/Orderbutton/html_client/mod_orderbutton_checkout.phtml @@ -141,13 +141,22 @@
{% trans 'VAT'%} ({{ tax_rate }}%) :
+ +{% trans 'Total:' %}
-