diff --git a/Controller/BackendController.php b/Controller/BackendController.php index f6d8976..abc313c 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -18,13 +18,13 @@ use Modules\Billing\Models\BillTypeL11n; use Modules\Billing\Models\PurchaseBillMapper; use Modules\Billing\Models\SalesBillMapper; use Modules\Billing\Models\StockBillMapper; +use phpOMS\Asset\AssetType; use phpOMS\Contract\RenderableInterface; +use phpOMS\Localization\ISO3166CharEnum; +use phpOMS\Localization\ISO3166NameEnum; use phpOMS\Message\RequestAbstract; use phpOMS\Message\ResponseAbstract; use phpOMS\Views\View; -use phpOMS\Asset\AssetType; -use phpOMS\Localization\ISO3166CharEnum; -use phpOMS\Localization\ISO3166NameEnum; /** * Billing class. @@ -389,7 +389,7 @@ final class BackendController extends Controller for ($j = 1; $j < 11; ++$j) { $annualCustomersRep['Rep ' . $i][] = [ 'customers' => (int) (\mt_rand(200, 400) / 12), - 'year' => 2020 - 10 + $j, + 'year' => 2020 - 10 + $j, ]; } } @@ -399,7 +399,7 @@ final class BackendController extends Controller ///// $currentCustomersCountry = []; for ($i = 1; $i < 51; ++$i) { - $country = ISO3166NameEnum::getRandom(); + $country = ISO3166NameEnum::getRandom(); $currentCustomersCountry[\substr($country, 0, 20)] = [ 'customers' => (int) (\mt_rand(200, 400) / 12), ]; @@ -418,9 +418,9 @@ final class BackendController extends Controller for ($j = 1; $j < 11; ++$j) { $annualCustomersCountry[\substr($countryName, 0, 20)][] = [ 'customers' => (int) (\mt_rand(200, 400) / 12), - 'year' => 2020 - 10 + $j, - 'name' => $countryName, - 'code' => $countryCode, + 'year' => 2020 - 10 + $j, + 'name' => $countryName, + 'code' => $countryCode, ]; } } @@ -535,7 +535,7 @@ final class BackendController extends Controller for ($j = 1; $j < 11; ++$j) { $annualCustomersRep['Rep ' . $i][] = [ 'customers' => (int) (\mt_rand(200, 400) / 12), - 'year' => 2020 - 10 + $j, + 'year' => 2020 - 10 + $j, ]; } } diff --git a/Theme/Backend/bill-analysis.tpl.php b/Theme/Backend/bill-analysis.tpl.php index 8b25827..54a5c9b 100644 --- a/Theme/Backend/bill-analysis.tpl.php +++ b/Theme/Backend/bill-analysis.tpl.php @@ -12,9 +12,6 @@ */ declare(strict_types=1); -use phpOMS\Localization\Money; -use phpOMS\Utils\RnG\Name; - /* @todo: single month/quarter/fiscal year/calendar year */ /* @todo: time range (<= 12 month = monthly view; else annual view/comparison) */ @@ -22,4 +19,3 @@ use phpOMS\Utils\RnG\Name; * @var \phpOMS\Views\View $this */ echo $this->getData('nav')->render(); -?> \ No newline at end of file diff --git a/Theme/Backend/region-analysis.tpl.php b/Theme/Backend/region-analysis.tpl.php index 650591b..eba0a01 100644 --- a/Theme/Backend/region-analysis.tpl.php +++ b/Theme/Backend/region-analysis.tpl.php @@ -13,7 +13,6 @@ declare(strict_types=1); use phpOMS\Localization\Money; -use phpOMS\Utils\RnG\Name; /* @todo: single month/quarter/fiscal year/calendar year */ /* @todo: time range (<= 12 month = monthly view; else annual view/comparison) */ diff --git a/Theme/Backend/rep-analysis.tpl.php b/Theme/Backend/rep-analysis.tpl.php index 0da7db1..1d8c1df 100644 --- a/Theme/Backend/rep-analysis.tpl.php +++ b/Theme/Backend/rep-analysis.tpl.php @@ -12,9 +12,6 @@ */ declare(strict_types=1); -use phpOMS\Localization\Money; -use phpOMS\Utils\RnG\Name; - /* @todo: single month/quarter/fiscal year/calendar year */ /* @todo: time range (<= 12 month = monthly view; else annual view/comparison) */