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();
| Month - | Sales - | Customer count - | |||
| = $values['month'] . '/' . \substr((string) $values['year'], -2); ?> - | = (new Money(((int) $values['net_sales']) / 1000))->getCurrency(); ?> - | = ((int) $values['customers']); ?> - - | |||
| Total - | = (new Money($sum1))->getCurrency(); ?> - | = (int) ($sum2 / 12); ?>
+
+ | Month
+ | Sales
+ | Customer count
+ | |
| = $values['month'] . '/' . \substr((string) $values['year'], -2); ?> + | = (new Money(((int) $values['net_sales']) / 1000))->getCurrency(); ?> + | = ((int) $values['customers']); ?> + + | |||
| Total + | = (new Money($sum1))->getCurrency(); ?> + | = (int) ($sum2 / 12); ?> |