diff --git a/Controller/BackendController.php b/Controller/BackendController.php index e48ece7..536ddc3 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -31,7 +31,15 @@ use phpOMS\Views\View; final class BackendController extends Controller { /** - * {@inheritdoc} + * Method which shows the sales dashboard + * + * @param RequestAbstract $request Request + * @param ResponseAbstract $response Response + * @param mixed $data Generic data + * + * @return RenderableInterface Response can be rendered + * + * @since 1.0.0 */ public function viewDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface { diff --git a/Theme/Backend/sales-analysis-dashboard.tpl.php b/Theme/Backend/sales-analysis-dashboard.tpl.php index 9223790..29dd00c 100755 --- a/Theme/Backend/sales-analysis-dashboard.tpl.php +++ b/Theme/Backend/sales-analysis-dashboard.tpl.php @@ -25,16 +25,16 @@ echo $this->getData('nav')->render();
-

getHtml('Current'); ?>

-
+

getHtml('Current'); ?>

+
- +
- +
@@ -42,24 +42,24 @@ echo $this->getData('nav')->render();
- +
- +
- +
-
Actual
+
Actual
Sales MTD:
@@ -86,7 +86,7 @@ echo $this->getData('nav')->render();
-
Budget
+
Budget
Sales MTD:
@@ -115,13 +115,13 @@ echo $this->getData('nav')->render();
-
- Sales / Profit - Monthly - -
+
+ Sales / Profit - Monthly + +
getData('monthlySalesCustomer'); ?>
- getData('nav')->render(); ] }, "options": { - "title": { - "display": false, - "text": "Sales / Profit" - }, + "title": { + "display": false, + "text": "Sales / Profit" + }, "scales": { "yAxes": [ { @@ -201,41 +201,41 @@ echo $this->getData('nav')->render(); } }'>
- - -
+ + +
- - - - - - - + + + + + +
Month - Sales - Customer count -
- getCurrency(); ?> - - -
Total - getCurrency(); ?> - +
Month + Sales + Customer count +
+ getCurrency(); ?> + + +
Total + getCurrency(); ?> +
-
+
-
-
-
+
+
+
@@ -355,12 +355,12 @@ echo $this->getData('nav')->render();
-
+
-
- Sales / Attribute - -
+
+ Sales / Attribute + +
@@ -377,12 +377,12 @@ echo $this->getData('nav')->render();
-
+
-
- Sales / Region - -
+
+ Sales / Region + +
diff --git a/composer.json b/composer.json index be46f49..0bf301c 100755 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ ], "require-dev": { "phpunit/phpunit": ">=9.4", - "friendsofphp/php-cs-fixer": ">=2.18", + "friendsofphp/php-cs-fixer": ">=3.0", "squizlabs/php_codesniffer": ">=3.5", "phpmd/phpmd": ">=2.9", "phpstan/phpstan": ">=0.12.58",