mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-02-14 03:08:41 +00:00
bug fixes and template adjustments
This commit is contained in:
parent
0e76d8bf1c
commit
5eec86cd9f
|
|
@ -497,6 +497,7 @@ final class BackendController extends Controller
|
||||||
|
|
||||||
$view->addData('currentCustomerRegion', $currentCustomerRegion);
|
$view->addData('currentCustomerRegion', $currentCustomerRegion);
|
||||||
|
|
||||||
|
$annualCustomerRegion = [];
|
||||||
for ($i = 1; $i < 11; ++$i) {
|
for ($i = 1; $i < 11; ++$i) {
|
||||||
$annualCustomerRegion[] = [
|
$annualCustomerRegion[] = [
|
||||||
'year' => 2020 - 10 + $i,
|
'year' => 2020 - 10 + $i,
|
||||||
|
|
@ -520,7 +521,9 @@ final class BackendController extends Controller
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
\uasort($currentCustomersRep, function($a, $b) { return $b['customers'] <=> $a['customers']; });
|
\uasort($currentCustomersRep, function($a, $b) {
|
||||||
|
return $b['customers'] <=> $a['customers'];
|
||||||
|
});
|
||||||
|
|
||||||
$view->addData('currentCustomersRep', $currentCustomersRep);
|
$view->addData('currentCustomersRep', $currentCustomersRep);
|
||||||
|
|
||||||
|
|
@ -547,7 +550,9 @@ final class BackendController extends Controller
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
\uasort($currentCustomersCountry, function($a, $b) { return $b['customers'] <=> $a['customers']; });
|
\uasort($currentCustomersCountry, function($a, $b) {
|
||||||
|
return $b['customers'] <=> $a['customers'];
|
||||||
|
});
|
||||||
|
|
||||||
$view->addData('currentCustomersCountry', $currentCustomersCountry);
|
$view->addData('currentCustomersCountry', $currentCustomersCountry);
|
||||||
|
|
||||||
|
|
@ -664,6 +669,7 @@ final class BackendController extends Controller
|
||||||
|
|
||||||
$view->addData('currentCustomerRegion', $currentCustomerRegion);
|
$view->addData('currentCustomerRegion', $currentCustomerRegion);
|
||||||
|
|
||||||
|
$annualCustomerRegion = [];
|
||||||
for ($i = 1; $i < 11; ++$i) {
|
for ($i = 1; $i < 11; ++$i) {
|
||||||
$annualCustomerRegion[] = [
|
$annualCustomerRegion[] = [
|
||||||
'year' => 2020 - 10 + $i,
|
'year' => 2020 - 10 + $i,
|
||||||
|
|
@ -687,7 +693,9 @@ final class BackendController extends Controller
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
\uasort($currentCustomersRep, function($a, $b) { return $b['customers'] <=> $a['customers']; });
|
\uasort($currentCustomersRep, function($a, $b) {
|
||||||
|
return $b['customers'] <=> $a['customers'];
|
||||||
|
});
|
||||||
|
|
||||||
$view->addData('currentCustomersRep', $currentCustomersRep);
|
$view->addData('currentCustomersRep', $currentCustomersRep);
|
||||||
|
|
||||||
|
|
@ -714,7 +722,9 @@ final class BackendController extends Controller
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
\uasort($currentCustomersCountry, function($a, $b) { return $b['customers'] <=> $a['customers']; });
|
\uasort($currentCustomersCountry, function($a, $b) {
|
||||||
|
return $b['customers'] <=> $a['customers'];
|
||||||
|
});
|
||||||
|
|
||||||
$view->addData('currentCustomersCountry', $currentCustomersCountry);
|
$view->addData('currentCustomersCountry', $currentCustomersCountry);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -216,7 +216,7 @@ class Item
|
||||||
/**
|
/**
|
||||||
* Get attributes
|
* Get attributes
|
||||||
*
|
*
|
||||||
* @return ItemAttribute[]
|
* @return int[]|ItemAttribute[]
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -68,9 +68,7 @@ class ItemAttributeType implements \JsonSerializable, ArrayableInterface
|
||||||
*
|
*
|
||||||
* @var ItemAttributeTypeL11n
|
* @var ItemAttributeTypeL11n
|
||||||
*/
|
*/
|
||||||
protected string |
|
protected string|ItemAttributeTypeL11n $l11n;
|
||||||
|
|
||||||
ItemAttributeTypeL11n $l11n;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Possible default attribute values
|
* Possible default attribute values
|
||||||
|
|
|
||||||
|
|
@ -41,9 +41,7 @@ class ItemAttributeTypeL11n implements \JsonSerializable, ArrayableInterface
|
||||||
* @var int|ItemAttributeType
|
* @var int|ItemAttributeType
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected int |
|
protected int|ItemAttributeType $type = 0;
|
||||||
|
|
||||||
ItemAttributeType $type = 0;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Language.
|
* Language.
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": ">=9.4",
|
"phpunit/phpunit": ">=9.4",
|
||||||
"friendsofphp/php-cs-fixer": ">=3.0",
|
"friendsofphp/php-cs-fixer": ">=3.0",
|
||||||
"squizlabs/php_codesniffer": ">=3.5",
|
"squizlabs/php_codesniffer": ">=3.6",
|
||||||
"phpmd/phpmd": ">=2.9",
|
"phpmd/phpmd": ">=2.9",
|
||||||
"phpstan/phpstan": ">=0.12.58",
|
"phpstan/phpstan": ">=0.12.58",
|
||||||
"phan/phan": ">=3.2.6"
|
"phan/phan": ">=3.2.6"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user