mirror of
https://github.com/Karaka-Management/oms-SalesAnalysis.git
synced 2026-01-11 19:38:39 +00:00
auto fixes + some impl.
This commit is contained in:
parent
479fd5b055
commit
91fe5b5af8
|
|
@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType;
|
||||||
use phpOMS\Router\RouteVerb;
|
use phpOMS\Router\RouteVerb;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'^.*/sales/analysis(\?.*|$)$' => [
|
'^.*/sales/analysis(\?.*$|$)' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewDashboard',
|
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewDashboard',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
|
|
@ -18,7 +18,7 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
'^.*/sales/analysis/bill(\?.*|$)$' => [
|
'^.*/sales/analysis/bill(\?.*$|$)' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewBillAnalysis',
|
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewBillAnalysis',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
|
|
@ -29,7 +29,7 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'^.*/sales/analysis/rep(\?.*|$)$' => [
|
'^.*/sales/analysis/rep(\?.*$|$)' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewSalesRepAnalysis',
|
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewSalesRepAnalysis',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
|
|
@ -40,7 +40,7 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'^.*/sales/analysis/region(\?.*|$)$' => [
|
'^.*/sales/analysis/region(\?.*$|$)' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewRegionAnalysis',
|
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewRegionAnalysis',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
|
|
@ -51,7 +51,7 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'^.*/sales/analysis/client(\?.*|$)$' => [
|
'^.*/sales/analysis/client(\?.*$|$)' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewClientAnalysis',
|
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewClientAnalysis',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
|
|
@ -62,7 +62,7 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'^.*/sales/analysis/item(\?.*|$)$' => [
|
'^.*/sales/analysis/item(\?.*$|$)' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewItemSalesAnalysis',
|
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewItemSalesAnalysis',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
|
|
|
||||||
|
|
@ -13,103 +13,103 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['SalesAnalysis' => [
|
return ['SalesAnalysis' => [
|
||||||
'ItemAttribute' => 'Item Attribute',
|
'ItemAttribute' => 'Item Attribute',
|
||||||
'ClientAttribute' => 'Client Attribute',
|
'ClientAttribute' => 'Client Attribute',
|
||||||
'SalesRegion' => 'Sales Region',
|
'SalesRegion' => 'Sales Region',
|
||||||
'Customers' => 'Customers',
|
'Customers' => 'Customers',
|
||||||
'Months' => 'Months',
|
'Months' => 'Months',
|
||||||
'Total' => 'Total',
|
'Total' => 'Total',
|
||||||
'Year' => 'Year',
|
'Year' => 'Year',
|
||||||
'Month' => 'Month',
|
'Month' => 'Month',
|
||||||
'A' => 'A',
|
'A' => 'A',
|
||||||
'PY' => 'PY',
|
'PY' => 'PY',
|
||||||
'B' => 'B',
|
'B' => 'B',
|
||||||
'All' => 'All',
|
'All' => 'All',
|
||||||
'New' => 'New',
|
'New' => 'New',
|
||||||
'Lost' => 'Lost',
|
'Lost' => 'Lost',
|
||||||
'Product' => 'Product',
|
'Product' => 'Product',
|
||||||
'Continent' => 'Continent',
|
'Continent' => 'Continent',
|
||||||
'SalesPY' => 'Sales PY',
|
'SalesPY' => 'Sales PY',
|
||||||
'SalesB' => 'Sales B',
|
'SalesB' => 'Sales B',
|
||||||
'SalesA' => 'Sales A',
|
'SalesA' => 'Sales A',
|
||||||
'ProfitPY' => 'Profit PY',
|
'ProfitPY' => 'Profit PY',
|
||||||
'ProfitB' => 'Profit B',
|
'ProfitB' => 'Profit B',
|
||||||
'ProfitA' => 'Profit A',
|
'ProfitA' => 'Profit A',
|
||||||
'DiffPY' => 'Δ PY',
|
'DiffPY' => 'Δ PY',
|
||||||
'DiffB' => 'Δ B',
|
'DiffB' => 'Δ B',
|
||||||
'Data' => 'Data',
|
'Data' => 'Data',
|
||||||
'Actual' => 'Actual',
|
'Actual' => 'Actual',
|
||||||
'Budget' => 'Budget',
|
'Budget' => 'Budget',
|
||||||
'Segment' => 'Segment',
|
'Segment' => 'Segment',
|
||||||
'Section' => 'Section',
|
'Section' => 'Section',
|
||||||
'Group' => 'Group',
|
'Group' => 'Group',
|
||||||
'Region' => 'Region',
|
'Region' => 'Region',
|
||||||
'Filter' => 'Filter',
|
'Filter' => 'Filter',
|
||||||
'Country' => 'Country',
|
'Country' => 'Country',
|
||||||
'Category' => 'Category',
|
'Category' => 'Category',
|
||||||
'General' => 'General',
|
'General' => 'General',
|
||||||
'MTD' => 'MTD',
|
'MTD' => 'MTD',
|
||||||
'Other' => 'Other',
|
'Other' => 'Other',
|
||||||
'YTD' => 'YTD',
|
'YTD' => 'YTD',
|
||||||
'GrossProfit' => 'Gross Profit',
|
'GrossProfit' => 'Gross Profit',
|
||||||
'SalesProfit' => 'Sales / Profit',
|
'SalesProfit' => 'Sales / Profit',
|
||||||
'monthly' => 'monthly',
|
'monthly' => 'monthly',
|
||||||
'annually' => 'annually',
|
'annually' => 'annually',
|
||||||
'Profit' => 'Profit',
|
'Profit' => 'Profit',
|
||||||
'Start' => 'Start',
|
'Start' => 'Start',
|
||||||
'End' => 'End',
|
'End' => 'End',
|
||||||
'Sales' => 'Sales',
|
'Sales' => 'Sales',
|
||||||
'Client' => 'Client',
|
'Client' => 'Client',
|
||||||
'Clients' => 'Clients',
|
'Clients' => 'Clients',
|
||||||
'Item' => 'Item',
|
'Item' => 'Item',
|
||||||
'World' => 'World',
|
'World' => 'World',
|
||||||
'Africa' => 'Africa',
|
'Africa' => 'Africa',
|
||||||
'America' => 'America',
|
'America' => 'America',
|
||||||
'DomesticExport' => 'Domestic & Export',
|
'DomesticExport' => 'Domestic & Export',
|
||||||
'Oceania' => 'Oceania',
|
'Oceania' => 'Oceania',
|
||||||
'Analysis' => 'Analysis',
|
'Analysis' => 'Analysis',
|
||||||
'Asia' => 'Asia',
|
'Asia' => 'Asia',
|
||||||
'Change' => 'Change',
|
'Change' => 'Change',
|
||||||
'ChangeAcc' => 'Change Acc.',
|
'ChangeAcc' => 'Change Acc.',
|
||||||
'Charts' => 'Charts',
|
'Charts' => 'Charts',
|
||||||
'Comparison' => 'Comparison',
|
'Comparison' => 'Comparison',
|
||||||
'Continents' => 'Continents',
|
'Continents' => 'Continents',
|
||||||
'CurrentMonth' => 'Current Month',
|
'CurrentMonth' => 'Current Month',
|
||||||
'CurrentYear' => 'Current Year',
|
'CurrentYear' => 'Current Year',
|
||||||
'CurrentYearAcc' => 'Current Year Acc.',
|
'CurrentYearAcc' => 'Current Year Acc.',
|
||||||
'Customers' => 'Customers',
|
'Customers' => 'Customers',
|
||||||
'Data' => 'Data',
|
'Data' => 'Data',
|
||||||
'Database' => 'Database',
|
'Database' => 'Database',
|
||||||
'Day' => 'Day',
|
'Day' => 'Day',
|
||||||
'Developed' => 'Developed',
|
'Developed' => 'Developed',
|
||||||
'Developed/Undeveloped' => 'Developed/Undeveloped',
|
'Developed/Undeveloped' => 'Developed/Undeveloped',
|
||||||
'Development' => 'Development',
|
'Development' => 'Development',
|
||||||
'Domestic' => 'Domestic',
|
'Domestic' => 'Domestic',
|
||||||
'Domestic/Export' => 'Domestic/Export',
|
'Domestic/Export' => 'Domestic/Export',
|
||||||
'Employees' => 'Employees',
|
'Employees' => 'Employees',
|
||||||
'Europe' => 'Europe',
|
'Europe' => 'Europe',
|
||||||
'Export' => 'Export',
|
'Export' => 'Export',
|
||||||
'Forecast' => 'Forecast',
|
'Forecast' => 'Forecast',
|
||||||
'Frequency' => 'Frequency',
|
'Frequency' => 'Frequency',
|
||||||
'Interval' => 'Interval',
|
'Interval' => 'Interval',
|
||||||
'Invoices' => 'Invoices',
|
'Invoices' => 'Invoices',
|
||||||
'LastMonth' => 'Last Month',
|
'LastMonth' => 'Last Month',
|
||||||
'LastYear' => 'Last Year',
|
'LastYear' => 'Last Year',
|
||||||
'LastYearAcc' => 'Last Year Acc.',
|
'LastYearAcc' => 'Last Year Acc.',
|
||||||
'Marketing' => 'Marketing',
|
'Marketing' => 'Marketing',
|
||||||
'Misc' => 'Misc',
|
'Misc' => 'Misc',
|
||||||
'Month' => 'Month',
|
'Month' => 'Month',
|
||||||
'Current' => 'Current',
|
'Current' => 'Current',
|
||||||
'Analyze' => 'Analyze',
|
'Analyze' => 'Analyze',
|
||||||
'Overview' => 'Overview',
|
'Overview' => 'Overview',
|
||||||
'Products' => 'Products',
|
'Products' => 'Products',
|
||||||
'Regions' => 'Regions',
|
'Regions' => 'Regions',
|
||||||
'To' => 'To',
|
'To' => 'To',
|
||||||
'Today' => 'Today',
|
'Today' => 'Today',
|
||||||
'Top10' => 'Top 10',
|
'Top10' => 'Top 10',
|
||||||
'Total' => 'Total',
|
'Total' => 'Total',
|
||||||
'Type' => 'Type',
|
'Type' => 'Type',
|
||||||
'Undeveloped' => 'Undeveloped',
|
'Undeveloped' => 'Undeveloped',
|
||||||
'Year' => 'Year',
|
'Year' => 'Year',
|
||||||
'Yesterday' => 'Yesterday',
|
'Yesterday' => 'Yesterday',
|
||||||
]];
|
]];
|
||||||
|
|
|
||||||
|
|
@ -661,7 +661,7 @@ echo $this->data['nav']->render();
|
||||||
<?php
|
<?php
|
||||||
$temp = [];
|
$temp = [];
|
||||||
foreach ($this->data['ytdADomesticExport'] as $values) {
|
foreach ($this->data['ytdADomesticExport'] as $values) {
|
||||||
$temp[] =$values['net_profit'] / 10000;
|
$temp[] = $values['net_profit'] / 10000;
|
||||||
}
|
}
|
||||||
echo \implode(',', $temp);
|
echo \implode(',', $temp);
|
||||||
?>
|
?>
|
||||||
|
|
@ -1097,7 +1097,7 @@ echo $this->data['nav']->render();
|
||||||
<?php
|
<?php
|
||||||
$temp = [];
|
$temp = [];
|
||||||
foreach ($this->data['ytdAContinent'] as $values) {
|
foreach ($this->data['ytdAContinent'] as $values) {
|
||||||
$temp[] =$values['net_profit'] / 10000;
|
$temp[] = $values['net_profit'] / 10000;
|
||||||
}
|
}
|
||||||
echo \implode(',', $temp);
|
echo \implode(',', $temp);
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user