diff --git a/app/Utils/Traits/Payment/Refundable.php b/app/Utils/Traits/Payment/Refundable.php
index 13b7a2150564..482db74c39d4 100644
--- a/app/Utils/Traits/Payment/Refundable.php
+++ b/app/Utils/Traits/Payment/Refundable.php
@@ -29,7 +29,7 @@ trait Refundable
* Entry point for processing of refunds.
* @param array $data
* @deprecated ???? 06-09-2022
- * @return Refundable
+ * @return self
* @throws PaymentRefundFailed
*/
public function processRefund(array $data)
diff --git a/app/Utils/VendorHtmlEngine.php b/app/Utils/VendorHtmlEngine.php
index 00a74a1b2525..0f1df93278a7 100644
--- a/app/Utils/VendorHtmlEngine.php
+++ b/app/Utils/VendorHtmlEngine.php
@@ -108,7 +108,6 @@ class VendorHtmlEngine
{
if (! $this->vendor->currency()) {
throw new Exception(debug_backtrace()[1]['function'], 1);
- return [];
}
App::forgetInstance('translator');
@@ -601,6 +600,8 @@ class VendorHtmlEngine
* @return string a collection of
rows with line item
* aggregate data
*/
+
+ /*
private function makeLineTaxes() :string
{
$tax_map = $this->entity_calc->getTaxMap();
@@ -616,18 +617,6 @@ class VendorHtmlEngine
return $data;
}
- private function lineTaxValues() :string
- {
- $tax_map = $this->entity_calc->getTaxMap();
-
- $data = '';
-
- foreach ($tax_map as $tax) {
- $data .= ''.Number::formatMoney($tax['total'], $this->company).'';
- }
-
- return $data;
- }
private function makeTotalTaxes() :string
{
@@ -653,21 +642,13 @@ class VendorHtmlEngine
return strtr($section, $values);
}
-
- /*
- | Ensures the URL doesn't have duplicated trailing slash
- */
- public function generateAppUrl()
- {
- //return rtrim(config('ninja.app_url'), "/");
- return config('ninja.app_url');
- }
+ */
/**
* Builds CSS to assist with the generation
* of Repeating headers and footers on the PDF.
* @return string The css string
- */
+
private function generateCustomCSS() :string
{
$header_and_footer = '
@@ -759,6 +740,31 @@ html {
return $css;
}
+*/
+
+ private function lineTaxValues() :string
+ {
+ $tax_map = $this->entity_calc->getTaxMap();
+
+ $data = '';
+
+ foreach ($tax_map as $tax) {
+ $data .= ''.Number::formatMoney($tax['total'], $this->company).'';
+ }
+
+ return $data;
+ }
+
+ /*
+ | Ensures the URL doesn't have duplicated trailing slash
+ */
+ public function generateAppUrl()
+ {
+ //return rtrim(config('ninja.app_url'), "/");
+ return config('ninja.app_url');
+ }
+
+
/**
* Generate markup for HTML images on entity.