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;
|
||||
|
||||
return [
|
||||
'^.*/sales/analysis(\?.*|$)$' => [
|
||||
'^.*/sales/analysis(\?.*$|$)' => [
|
||||
[
|
||||
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewDashboard',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
@ -18,7 +18,7 @@ return [
|
|||
],
|
||||
],
|
||||
|
||||
'^.*/sales/analysis/bill(\?.*|$)$' => [
|
||||
'^.*/sales/analysis/bill(\?.*$|$)' => [
|
||||
[
|
||||
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewBillAnalysis',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
@ -29,7 +29,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^.*/sales/analysis/rep(\?.*|$)$' => [
|
||||
'^.*/sales/analysis/rep(\?.*$|$)' => [
|
||||
[
|
||||
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewSalesRepAnalysis',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
@ -40,7 +40,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^.*/sales/analysis/region(\?.*|$)$' => [
|
||||
'^.*/sales/analysis/region(\?.*$|$)' => [
|
||||
[
|
||||
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewRegionAnalysis',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
@ -51,7 +51,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^.*/sales/analysis/client(\?.*|$)$' => [
|
||||
'^.*/sales/analysis/client(\?.*$|$)' => [
|
||||
[
|
||||
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewClientAnalysis',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
@ -62,7 +62,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^.*/sales/analysis/item(\?.*|$)$' => [
|
||||
'^.*/sales/analysis/item(\?.*$|$)' => [
|
||||
[
|
||||
'dest' => '\Modules\SalesAnalysis\Controller\BackendController:viewItemSalesAnalysis',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
|
|||
|
|
@ -13,103 +13,103 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['SalesAnalysis' => [
|
||||
'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',
|
||||
'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',
|
||||
'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',
|
||||
'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',
|
||||
]];
|
||||
|
|
|
|||
|
|
@ -661,7 +661,7 @@ echo $this->data['nav']->render();
|
|||
<?php
|
||||
$temp = [];
|
||||
foreach ($this->data['ytdADomesticExport'] as $values) {
|
||||
$temp[] =$values['net_profit'] / 10000;
|
||||
$temp[] = $values['net_profit'] / 10000;
|
||||
}
|
||||
echo \implode(',', $temp);
|
||||
?>
|
||||
|
|
@ -1097,7 +1097,7 @@ echo $this->data['nav']->render();
|
|||
<?php
|
||||
$temp = [];
|
||||
foreach ($this->data['ytdAContinent'] as $values) {
|
||||
$temp[] =$values['net_profit'] / 10000;
|
||||
$temp[] = $values['net_profit'] / 10000;
|
||||
}
|
||||
echo \implode(',', $temp);
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user