This commit is contained in:
Dennis Eichhorn 2024-01-02 23:34:18 +00:00
parent 6a561ade53
commit 479fd5b055
13 changed files with 207 additions and 210 deletions

View File

@ -21,7 +21,6 @@ use Modules\SalesAnalysis\Models\ItemMapper;
use Modules\SalesAnalysis\Models\RegionMapper;
use phpOMS\Asset\AssetType;
use phpOMS\Contract\RenderableInterface;
use phpOMS\DataStorage\Database\Query\Builder;
use phpOMS\Localization\ISO3166CharEnum;
use phpOMS\Localization\ISO3166NameEnum;
use phpOMS\Localization\ISO3166TwoEnum;
@ -143,7 +142,7 @@ final class BackendController extends Controller
}
/**
* Routing end-point for application behaviour.
* Routing end-point for application behavior.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
@ -332,7 +331,7 @@ final class BackendController extends Controller
}
/**
* Routing end-point for application behaviour.
* Routing end-point for application behavior.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
@ -360,7 +359,7 @@ final class BackendController extends Controller
}
/**
* Routing end-point for application behaviour.
* Routing end-point for application behavior.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
@ -444,7 +443,7 @@ final class BackendController extends Controller
}
/**
* Routing end-point for application behaviour.
* Routing end-point for application behavior.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
@ -619,7 +618,7 @@ final class BackendController extends Controller
}
/**
* Routing end-point for application behaviour.
* Routing end-point for application behavior.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response

View File

@ -42,16 +42,16 @@ omsApp.Modules.SalesAnalysis = class {
const data = JSON.parse(chart.getAttribute('data-chart'));
if (data.type === 'choropleth') {
const parts = data.mapurl.split('/');
const parts = data.mapurl.split('/');
const fileName = parts[parts.length - 1];
const mapName = fileName.replace('.topo.json', '');
const mapName = fileName.replace('.topo.json', '');
fetch(data.mapurl).then((r) => r.json()).then((d) => {
const countries = ChartGeo.topojson.feature(d, d.objects[mapName]).features;
data.data.labels = countries.map((c) => c.properties.name);
const vals = {};
const vals = {};
const length = data.data.datasets[0].data.length;
for (let i = 0; i < length; ++i) {
vals[data.data.datasets[0].data[i].id] = data.data.datasets[0].data[i].value;
@ -62,7 +62,7 @@ omsApp.Modules.SalesAnalysis = class {
));
const myChart = new Chart(chart.getContext('2d'), data);
});
});
} else {
const myChart = new Chart(chart.getContext('2d'), data);
}

View File

@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\Query\Builder;
use phpOMS\Stdlib\Base\SmartDateTime;
/**
* Permision state enum.
* Permission category enum.
*
* @package Modules\SalesAnalysis\Models
* @license OMS License 1.0
@ -84,10 +84,10 @@ class ClientMapper extends DataMapperFactory
$oldIndex = 1;
$period = 1;
$mtdAClientAttribute = [];
$mtdAClientAttribute = [];
$mtdPYClientAttribute = [];
$ytdAClientAttribute = [];
$ytdAClientAttribute = [];
$ytdPYClientAttribute = [];
foreach ($results as $result) {
@ -106,7 +106,7 @@ class ClientMapper extends DataMapperFactory
// indexed according to the fiscal year
$temp = [
'net_sales' => (int) $result['netsales'],
'net_sales' => (int) $result['netsales'],
'net_profit' => (int) $result['netprofit'],
];
@ -125,13 +125,13 @@ class ClientMapper extends DataMapperFactory
if ($monthIndex <= $endCurrentIndex) {
if (!isset($ytdPYClientAttribute[$result['clientmgmt_attr_type_name']])) {
$ytdPYClientAttribute[$result['clientmgmt_attr_type_name']] = [
'net_sales' => 0,
'net_sales' => 0,
'net_profit' => 0,
'value_l11n' => $result['clientmgmt_attr_value_l11n_title'],
];
$ytdAClientAttribute[$result['clientmgmt_attr_type_name']] = [
'net_sales' => 0,
'net_sales' => 0,
'net_profit' => 0,
'value_l11n' => $result['clientmgmt_attr_value_l11n_title'],
];
@ -147,11 +147,11 @@ class ClientMapper extends DataMapperFactory
}
}
return [
return [
$mtdAClientAttribute,
$mtdPYClientAttribute,
$ytdAClientAttribute,
$ytdPYClientAttribute,
];
];
}
}

View File

@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\Query\Builder;
use phpOMS\Stdlib\Base\SmartDateTime;
/**
* Permision state enum.
* Permission category enum.
*
* @package Modules\SalesAnalysis\Models
* @license OMS License 1.0
@ -64,15 +64,15 @@ class GeneralMapper extends DataMapperFactory
$monthlySales = [];
for ($i = 1; $i < 3; ++$i) {
$monthlySales[$i] = \array_fill(0, 12, [
'net_sales' => null,
'net_sales' => null,
'net_profit' => null,
]);
}
$mtdA = ['net_sales' => 0, 'net_profit' => 0];
$mtdA = ['net_sales' => 0, 'net_profit' => 0];
$mtdPY = ['net_sales' => 0, 'net_profit' => 0];
$ytdA = ['net_sales' => 0, 'net_profit' => 0];
$ytdA = ['net_sales' => 0, 'net_profit' => 0];
$ytdPY = ['net_sales' => 0, 'net_profit' => 0];
foreach ($results as $result) {
@ -91,7 +91,7 @@ class GeneralMapper extends DataMapperFactory
// indexed according to the fiscal year
$monthlySales[$period][$monthIndex - 1] = [
'net_sales' => (int) $result['netsales'],
'net_sales' => (int) $result['netsales'],
'net_profit' => (int) $result['netprofit'],
];
@ -117,7 +117,7 @@ class GeneralMapper extends DataMapperFactory
return [
$mtdA, $mtdPY,
$ytdA, $ytdPY,
$monthlySales
$monthlySales,
];
}
@ -126,7 +126,6 @@ class GeneralMapper extends DataMapperFactory
\DateTime $endCurrent,
int $businessStart = 1
) : array {
$query = new Builder(self::$db);
$query->raw(
'SELECT
@ -151,9 +150,9 @@ class GeneralMapper extends DataMapperFactory
$annualSales = [];
for ($i = 1; $i < 11; ++$i) {
$annualSales[$i] = [
'net_sales' => null,
'net_sales' => null,
'net_profit' => null,
'year' => $historyStart->format('Y'),
'year' => $historyStart->format('Y'),
];
$historyStart->smartModify(1);
@ -184,7 +183,7 @@ class GeneralMapper extends DataMapperFactory
$annualSales[$period]['net_sales'] ??= 0;
$annualSales[$period]['net_profit'] ??= 0;
$annualSales[$period]['net_sales'] += (int) $result['netsales'];
$annualSales[$period]['net_sales'] += (int) $result['netsales'];
$annualSales[$period]['net_profit'] += (int) $result['netprofit'];
}

View File

@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\Query\Builder;
use phpOMS\Stdlib\Base\SmartDateTime;
/**
* Permision state enum.
* Permission category enum.
*
* @package Modules\SalesAnalysis\Models
* @license OMS License 1.0
@ -86,10 +86,10 @@ class ItemMapper extends DataMapperFactory
$oldIndex = 1;
$period = 1;
$mtdAItemAttribute = [];
$mtdAItemAttribute = [];
$mtdPYItemAttribute = [];
$ytdAItemAttribute = [];
$ytdAItemAttribute = [];
$ytdPYItemAttribute = [];
foreach ($results as $result) {
@ -108,7 +108,7 @@ class ItemMapper extends DataMapperFactory
// indexed according to the fiscal year
$temp = [
'net_sales' => (int) $result['netsales'],
'net_sales' => (int) $result['netsales'],
'net_profit' => (int) $result['netprofit'],
];
@ -127,13 +127,13 @@ class ItemMapper extends DataMapperFactory
if ($monthIndex <= $endCurrentIndex) {
if (!isset($ytdPYItemAttribute[$result['itemmgmt_attr_type_name']])) {
$ytdPYItemAttribute[$result['itemmgmt_attr_type_name']] = [
'net_sales' => 0,
'net_sales' => 0,
'net_profit' => 0,
'value_l11n' => $result['itemmgmt_attr_value_l11n_title'],
];
$ytdAItemAttribute[$result['itemmgmt_attr_type_name']] = [
'net_sales' => 0,
'net_sales' => 0,
'net_profit' => 0,
'value_l11n' => $result['itemmgmt_attr_value_l11n_title'],
];
@ -149,11 +149,11 @@ class ItemMapper extends DataMapperFactory
}
}
return [
return [
$mtdAItemAttribute,
$mtdPYItemAttribute,
$ytdAItemAttribute,
$ytdPYItemAttribute,
];
];
}
}

View File

@ -17,7 +17,7 @@ namespace Modules\SalesAnalysis\Models;
use phpOMS\Stdlib\Base\Enum;
/**
* Permision state enum.
* Permission category enum.
*
* @package Modules\SalesAnalysis\Models
* @license OMS License 1.0

View File

@ -20,7 +20,7 @@ use phpOMS\Localization\ISO3166TwoEnum;
use phpOMS\Stdlib\Base\SmartDateTime;
/**
* Permision state enum.
* Permission category enum.
*
* @package Modules\SalesAnalysis\Models
* @license OMS License 1.0
@ -69,8 +69,8 @@ class RegionMapper extends DataMapperFactory
$monthlySales = [];
$mtd = [];
$ytd = [];
$mtd = [];
$ytd = [];
foreach ($results as $result) {
$monthIndex = SmartDateTime::calculateMonthIndex((int) $result['salesmonth'], $businessStart);
@ -86,7 +86,7 @@ class RegionMapper extends DataMapperFactory
for ($i = 1; $i < 3; ++$i) {
$monthlySales[$result['address_country']][$i] = \array_fill(1, 12, [
'net_sales' => null,
'net_sales' => null,
'net_profit' => null,
]);
}
@ -94,7 +94,7 @@ class RegionMapper extends DataMapperFactory
// indexed according to the fiscal year
$monthlySales[$result['address_country']][$monthIndex] = [
'net_sales' => (int) $result['netsales'],
'net_sales' => (int) $result['netsales'],
'net_profit' => (int) $result['netprofit'],
];
@ -167,7 +167,7 @@ class RegionMapper extends DataMapperFactory
if (!isset($annualCustomer[$result['address_country']])) {
for ($i = 1; $i < 11; ++$i) {
$annualCustomer[$result['address_country']][$i] = [
'client_count' => 0
'client_count' => 0,
];
$historyStart->smartModify(1);
@ -223,10 +223,10 @@ class RegionMapper extends DataMapperFactory
$oldIndex = 1;
$period = 1;
$mtdAClientCountry = [];
$mtdAClientCountry = [];
$mtdPYClientCountry = [];
$ytdAClientCountry = [];
$ytdAClientCountry = [];
$ytdPYClientCountry = [];
foreach ($results as $result) {
@ -274,7 +274,7 @@ class RegionMapper extends DataMapperFactory
if ($period === 1) {
$ytdPYClientCountry[$result['address_country']]['client_count'] += $temp['client_count'];
} else {
$ytdAClientCountry[$result['address_country']]['client_count'] += $temp['client_count'];
$ytdAClientCountry[$result['address_country']]['client_count'] += $temp['client_count'];
}
}
}
@ -317,7 +317,7 @@ class RegionMapper extends DataMapperFactory
$results = $query->execute()->fetchAll(\PDO::FETCH_ASSOC);
$sales = [];
$sales = [];
$period = 0;
foreach ($results as $result) {
@ -333,9 +333,9 @@ class RegionMapper extends DataMapperFactory
if (!isset($sales[$result['address_country']])) {
for ($i = 1; $i < 11; ++$i) {
$sales[$result['address_country']][$i] = [
'net_sales' => 0,
'net_sales' => 0,
'net_profit' => 0,
'year' => $period === 0 ? 'PY' : 'A',
'year' => $period === 0 ? 'PY' : 'A',
];
}
}
@ -387,10 +387,10 @@ class RegionMapper extends DataMapperFactory
$oldIndex = 1;
$period = 1;
$mtdAClientCountry = [];
$mtdAClientCountry = [];
$mtdPYClientCountry = [];
$ytdAClientCountry = [];
$ytdAClientCountry = [];
$ytdPYClientCountry = [];
foreach ($results as $result) {
@ -409,7 +409,7 @@ class RegionMapper extends DataMapperFactory
// indexed according to the fiscal year
$temp = [
'net_sales' => (int) $result['netsales'],
'net_sales' => (int) $result['netsales'],
'net_profit' => (int) $result['netprofit'],
];
@ -428,12 +428,12 @@ class RegionMapper extends DataMapperFactory
if ($monthIndex <= $endCurrentIndex) {
if (!isset($ytdPYClientCountry[$result['address_country']])) {
$ytdPYClientCountry[$result['address_country']] = [
'net_sales' => 0,
'net_sales' => 0,
'net_profit' => 0,
];
$ytdAClientCountry[$result['address_country']] = [
'net_sales' => 0,
'net_sales' => 0,
'net_profit' => 0,
];
}
@ -475,7 +475,7 @@ class RegionMapper extends DataMapperFactory
foreach ($definitions as $r => $c) {
if (\in_array($country, $c)) {
foreach ($columns as $column) {
$regions[$r][$column] += $data[$column];
$regions[$r][$column] += $data[$column];
}
$found = true;
@ -484,7 +484,7 @@ class RegionMapper extends DataMapperFactory
if (!$found) {
foreach ($columns as $column) {
$regions['Other'][$column] += $data[$column];
$regions['Other'][$column] += $data[$column];
}
}
}

View File

@ -13,103 +13,103 @@
declare(strict_types=1);
return ['SalesAnalysis' => [
'ItemAttribute' => 'Item Attribute',
'ItemAttribute' => 'Item Attribute',
'ClientAttribute' => 'Client Attribute',
'SalesRegion' => 'Sales Region',
'Customers' => 'Customers',
'Months' => 'Months',
'Total' => 'Total',
'Year' => 'Year',
'Month' => 'Month',
'A' => 'A',
'PY' => 'PY',
'B' => 'B',
'All' => 'All',
'New' => 'New',
'Lost' => 'Lost',
'Product' => 'Product',
'Continent' => 'Continent',
'SalesPY' => 'Sales PY',
'SalesB' => 'Sales B',
'SalesA' => 'Sales A',
'ProfitPY' => 'Profit PY',
'ProfitB' => 'Profit B',
'ProfitA' => 'Profit A',
'DiffPY' => 'Δ PY',
'DiffB' => 'Δ B',
'Data' => 'Data',
'Actual' => 'Actual',
'Budget' => 'Budget',
'Segment' => 'Segment',
'Section' => 'Section',
'Group' => 'Group',
'Region' => 'Region',
'Filter' => 'Filter',
'Country' => 'Country',
'Category' => 'Category',
'General' => 'General',
'MTD' => 'MTD',
'Other' => 'Other',
'YTD' => 'YTD',
'GrossProfit' => 'Gross Profit',
'SalesProfit' => 'Sales / Profit',
'monthly' => 'monthly',
'annually' => 'annually',
'Profit' => 'Profit',
'Start' => 'Start',
'End' => 'End',
'Sales' => 'Sales',
'Client' => 'Client',
'Clients' => 'Clients',
'Item' => 'Item',
'World' => 'World',
'Africa' => 'Africa',
'America' => 'America',
'SalesRegion' => 'Sales Region',
'Customers' => 'Customers',
'Months' => 'Months',
'Total' => 'Total',
'Year' => 'Year',
'Month' => 'Month',
'A' => 'A',
'PY' => 'PY',
'B' => 'B',
'All' => 'All',
'New' => 'New',
'Lost' => 'Lost',
'Product' => 'Product',
'Continent' => 'Continent',
'SalesPY' => 'Sales PY',
'SalesB' => 'Sales B',
'SalesA' => 'Sales A',
'ProfitPY' => 'Profit PY',
'ProfitB' => 'Profit B',
'ProfitA' => 'Profit A',
'DiffPY' => 'Δ PY',
'DiffB' => 'Δ B',
'Data' => 'Data',
'Actual' => 'Actual',
'Budget' => 'Budget',
'Segment' => 'Segment',
'Section' => 'Section',
'Group' => 'Group',
'Region' => 'Region',
'Filter' => 'Filter',
'Country' => 'Country',
'Category' => 'Category',
'General' => 'General',
'MTD' => 'MTD',
'Other' => 'Other',
'YTD' => 'YTD',
'GrossProfit' => 'Gross Profit',
'SalesProfit' => 'Sales / Profit',
'monthly' => 'monthly',
'annually' => 'annually',
'Profit' => 'Profit',
'Start' => 'Start',
'End' => 'End',
'Sales' => 'Sales',
'Client' => 'Client',
'Clients' => 'Clients',
'Item' => 'Item',
'World' => 'World',
'Africa' => 'Africa',
'America' => 'America',
'DomesticExport' => 'Domestic & Export',
'Oceania' => 'Oceania',
'Analysis' => 'Analysis',
'Asia' => 'Asia',
'Change' => 'Change',
'ChangeAcc' => 'Change Acc.',
'Charts' => 'Charts',
'Comparison' => 'Comparison',
'Continents' => 'Continents',
'CurrentMonth' => 'Current Month',
'CurrentYear' => 'Current Year',
'CurrentYearAcc' => 'Current Year Acc.',
'Customers' => 'Customers',
'Data' => 'Data',
'Database' => 'Database',
'Day' => 'Day',
'Developed' => 'Developed',
'Developed/Undeveloped' => 'Developed/Undeveloped',
'Development' => 'Development',
'Domestic' => 'Domestic',
'Domestic/Export' => 'Domestic/Export',
'Employees' => 'Employees',
'Europe' => 'Europe',
'Export' => 'Export',
'Forecast' => 'Forecast',
'Frequency' => 'Frequency',
'Interval' => 'Interval',
'Invoices' => 'Invoices',
'LastMonth' => 'Last Month',
'LastYear' => 'Last Year',
'LastYearAcc' => 'Last Year Acc.',
'Marketing' => 'Marketing',
'Misc' => 'Misc',
'Month' => 'Month',
'Current' => 'Current',
'Analyze' => 'Analyze',
'Overview' => 'Overview',
'Products' => 'Products',
'Regions' => 'Regions',
'To' => 'To',
'Today' => 'Today',
'Top10' => 'Top 10',
'Total' => 'Total',
'Type' => 'Type',
'Undeveloped' => 'Undeveloped',
'Year' => 'Year',
'Yesterday' => 'Yesterday',
'Oceania' => 'Oceania',
'Analysis' => 'Analysis',
'Asia' => 'Asia',
'Change' => 'Change',
'ChangeAcc' => 'Change Acc.',
'Charts' => 'Charts',
'Comparison' => 'Comparison',
'Continents' => 'Continents',
'CurrentMonth' => 'Current Month',
'CurrentYear' => 'Current Year',
'CurrentYearAcc' => 'Current Year Acc.',
'Customers' => 'Customers',
'Data' => 'Data',
'Database' => 'Database',
'Day' => 'Day',
'Developed' => 'Developed',
'Developed/Undeveloped' => 'Developed/Undeveloped',
'Development' => 'Development',
'Domestic' => 'Domestic',
'Domestic/Export' => 'Domestic/Export',
'Employees' => 'Employees',
'Europe' => 'Europe',
'Export' => 'Export',
'Forecast' => 'Forecast',
'Frequency' => 'Frequency',
'Interval' => 'Interval',
'Invoices' => 'Invoices',
'LastMonth' => 'Last Month',
'LastYear' => 'Last Year',
'LastYearAcc' => 'Last Year Acc.',
'Marketing' => 'Marketing',
'Misc' => 'Misc',
'Month' => 'Month',
'Current' => 'Current',
'Analyze' => 'Analyze',
'Overview' => 'Overview',
'Products' => 'Products',
'Regions' => 'Regions',
'To' => 'To',
'Today' => 'Today',
'Top10' => 'Top 10',
'Total' => 'Total',
'Type' => 'Type',
'Undeveloped' => 'Undeveloped',
'Year' => 'Year',
'Yesterday' => 'Yesterday',
]];

View File

@ -21,10 +21,10 @@ echo $this->data['nav']->render();
<div class="tabview tab-2">
<div class="box">
<ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getHtml('All'); ?></label></li>
<li><label for="c-tab-2"><?= $this->getHtml('New'); ?></label></li>
<li><label for="c-tab-3"><?= $this->getHtml('Lost'); ?></label></li>
<!--<li><label for="c-tab-1"><?= $this->getHtml('Filter'); ?></label></li>-->
<li><label for="c-tab-1"><?= $this->getHtml('All'); ?></label>
<li><label for="c-tab-2"><?= $this->getHtml('New'); ?></label>
<li><label for="c-tab-3"><?= $this->getHtml('Lost'); ?></label>
<!--<li><label for="c-tab-1"><?= $this->getHtml('Filter'); ?></label>-->
</ul>
</div>
<div class="tab-content">

View File

@ -21,11 +21,11 @@ echo $this->data['nav']->render();
<div class="tabview tab-2">
<div class="box">
<ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getHtml('Segment'); ?></label></li>
<li><label for="c-tab-2"><?= $this->getHtml('Section'); ?></label></li>
<li><label for="c-tab-3"><?= $this->getHtml('Group'); ?></label></li>
<li><label for="c-tab-4"><?= $this->getHtml('Type'); ?></label></li>
<!--<li><label for="c-tab-5"><?= $this->getHtml('Filter'); ?></label></li>-->
<li><label for="c-tab-1"><?= $this->getHtml('Segment'); ?></label>
<li><label for="c-tab-2"><?= $this->getHtml('Section'); ?></label>
<li><label for="c-tab-3"><?= $this->getHtml('Group'); ?></label>
<li><label for="c-tab-4"><?= $this->getHtml('Type'); ?></label>
<!--<li><label for="c-tab-5"><?= $this->getHtml('Filter'); ?></label>-->
</ul>
</div>
<div class="tab-content">
@ -36,7 +36,7 @@ echo $this->data['nav']->render();
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Segment'); ?></div>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Category'); ?>
@ -82,7 +82,7 @@ echo $this->data['nav']->render();
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Section'); ?></div>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Category'); ?>
@ -128,7 +128,7 @@ echo $this->data['nav']->render();
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Group'); ?></div>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Category'); ?>
@ -174,7 +174,7 @@ echo $this->data['nav']->render();
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Type'); ?></div>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Category'); ?>

View File

@ -13,7 +13,6 @@
declare(strict_types=1);
use phpOMS\Localization\ISO3166NameEnum;
use phpOMS\Localization\Money;
use phpOMS\Uri\UriFactory;
/**
@ -239,7 +238,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i>
</label>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Month'); ?>
@ -386,7 +385,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i>
</label>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Year'); ?>
@ -416,7 +415,7 @@ echo $this->data['nav']->render();
<?= $this->getHtml('ItemAttribute'); ?>
</div>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Category'); ?>
@ -456,7 +455,7 @@ echo $this->data['nav']->render();
<?= $this->getHtml('ClientAttribute'); ?>
</div>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Category'); ?>
@ -496,7 +495,7 @@ echo $this->data['nav']->render();
<?= $this->getHtml('Country'); ?>
</div>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Country'); ?>

View File

@ -24,11 +24,11 @@ echo $this->data['nav']->render();
<div class="tabview tab-2">
<div class="box">
<ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getHtml('World'); ?></label></li>
<li><label for="c-tab-2"><?= $this->getHtml('DomesticExport'); ?></label></li>
<li><label for="c-tab-3"><?= $this->getHtml('Continents'); ?></label></li>
<li><label for="c-tab-4"><?= $this->getHtml('Regions'); ?></label></li>
<!--<li><label for="c-tab-5"><?= $this->getHtml('Filter'); ?></label></li>-->
<li><label for="c-tab-1"><?= $this->getHtml('World'); ?></label>
<li><label for="c-tab-2"><?= $this->getHtml('DomesticExport'); ?></label>
<li><label for="c-tab-3"><?= $this->getHtml('Continents'); ?></label>
<li><label for="c-tab-4"><?= $this->getHtml('Regions'); ?></label>
<!--<li><label for="c-tab-5"><?= $this->getHtml('Filter'); ?></label>-->
</ul>
</div>
<div class="tab-content">
@ -51,7 +51,7 @@ echo $this->data['nav']->render();
$temp = [];
foreach ($this->data['ytdAClientCountry'] as $lang => $values) {
$temp[] = '{"id": "' . ISO3166CharEnum::getBy2Code($lang) . '", "value": ' . ($values['net_sales'] / 10000) . '}';
}; ?>
} ?>
<?= \implode(',', $temp); ?>
]
}]
@ -85,7 +85,7 @@ echo $this->data['nav']->render();
<?= $this->getHtml('Country'); ?>
</div>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Country'); ?>
@ -273,7 +273,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i>
</label>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Month'); ?>
@ -463,7 +463,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i>
</label>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Month'); ?>
@ -507,7 +507,7 @@ echo $this->data['nav']->render();
<div class="row">
<div class="col-xs-12 col-lg-4">
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Sales') ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('DomesticExport') ?></div>
<div class="portlet-head"><?= $this->getHtml('Sales'); ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('DomesticExport'); ?></div>
<div class="portlet-body">
<canvas id="sales-domestic-export" data-chart='{
"type": "pie",
@ -539,7 +539,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i>
</label>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Region'); ?>
@ -582,7 +582,7 @@ echo $this->data['nav']->render();
<?php
$first = true;
foreach ($this->data['annualDomesticExport'] as $region => $values) :
echo ($first ? '' : ',');
echo($first ? '' : ',');
$first = false;
?>{
"label": "<?= $this->printHtml($region); ?>",
@ -614,7 +614,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i>
</label>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Region'); ?>
@ -648,7 +648,7 @@ echo $this->data['nav']->render();
<div class="row">
<div class="col-xs-12 col-lg-4">
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Profit') ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('DomesticExport') ?></div>
<div class="portlet-head"><?= $this->getHtml('Profit'); ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('DomesticExport'); ?></div>
<div class="portlet-body">
<canvas id="profit-domestic-export-region" data-chart='{
"type": "pie",
@ -680,7 +680,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i>
</label>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Region'); ?>
@ -723,7 +723,7 @@ echo $this->data['nav']->render();
<?php
$first = true;
foreach ($this->data['annualDomesticExport'] as $region => $values) :
echo ($first ? '' : ',');
echo($first ? '' : ',');
$first = false;
?>{
"label": "<?= $this->printHtml($region); ?>",
@ -765,7 +765,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i>
</label>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Region'); ?>
@ -799,7 +799,7 @@ echo $this->data['nav']->render();
<div class="row">
<div class="col-xs-12 col-lg-4">
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Clients') ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('DomesticExport') ?></div>
<div class="portlet-head"><?= $this->getHtml('Clients'); ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('DomesticExport'); ?></div>
<div class="portlet-body">
<canvas id="client-count-domestic-export" data-chart='{
"type": "pie",
@ -831,7 +831,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i>
</label>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Region'); ?>
@ -874,7 +874,7 @@ echo $this->data['nav']->render();
<?php
$first = true;
foreach ($this->data['annualDomesticExportCount'] as $region => $values) :
echo ($first ? '' : ',');
echo($first ? '' : ',');
$first = false;
?>{
"label": "<?= $this->printHtml($region); ?>",
@ -906,7 +906,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i>
</label>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Region'); ?>
@ -943,7 +943,7 @@ echo $this->data['nav']->render();
<div class="row">
<div class="col-xs-12 col-lg-4">
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Sales') ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('Continent') ?></div>
<div class="portlet-head"><?= $this->getHtml('Sales'); ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('Continent'); ?></div>
<div class="portlet-body">
<canvas id="sales-continent" data-chart='{
"type": "pie",
@ -975,7 +975,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i>
</label>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Region'); ?>
@ -1018,7 +1018,7 @@ echo $this->data['nav']->render();
<?php
$first = true;
foreach ($this->data['annualContinent'] as $region => $values) :
echo ($first ? '' : ',');
echo($first ? '' : ',');
$first = false;
?>{
"label": "<?= $this->getHtml($region); ?>",
@ -1050,7 +1050,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i>
</label>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Region'); ?>
@ -1084,7 +1084,7 @@ echo $this->data['nav']->render();
<div class="row">
<div class="col-xs-12 col-lg-4">
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Profit') ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('Continent') ?></div>
<div class="portlet-head"><?= $this->getHtml('Profit'); ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('Continent'); ?></div>
<div class="portlet-body">
<canvas id="profit-continent-region" data-chart='{
"type": "pie",
@ -1116,7 +1116,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i>
</label>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Region'); ?>
@ -1159,7 +1159,7 @@ echo $this->data['nav']->render();
<?php
$first = true;
foreach ($this->data['annualContinent'] as $region => $values) :
echo ($first ? '' : ',');
echo($first ? '' : ',');
$first = false;
?>{
"label": "<?= $this->getHtml($region); ?>",
@ -1201,7 +1201,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i>
</label>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Region'); ?>
@ -1235,7 +1235,7 @@ echo $this->data['nav']->render();
<div class="row">
<div class="col-xs-12 col-lg-4">
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Clients') ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('Continent') ?></div>
<div class="portlet-head"><?= $this->getHtml('Clients'); ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('Continent'); ?></div>
<div class="portlet-body">
<canvas id="client-count-continent" data-chart='{
"type": "pie",
@ -1267,7 +1267,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i>
</label>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Region'); ?>
@ -1310,7 +1310,7 @@ echo $this->data['nav']->render();
<?php
$first = true;
foreach ($this->data['annualContinentCount'] as $region => $values) :
echo ($first ? '' : ',');
echo($first ? '' : ',');
$first = false;
?>{
"label": "<?= $this->printHtml($region); ?>",
@ -1342,7 +1342,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i>
</label>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Region'); ?>
@ -1381,7 +1381,7 @@ echo $this->data['nav']->render();
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Sales'); ?></div>
<div class="slider">
<table class="default">
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('Region'); ?>

View File

@ -21,7 +21,7 @@ echo $this->data['nav']->render();
<div class="tabview tab-2">
<div class="box">
<ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getHtml('General'); ?></label></li>
<li><label for="c-tab-1"><?= $this->getHtml('General'); ?></label>
</ul>
</div>
<div class="tab-content">