diff --git a/Admin/Install/Media/bill.pdf.php b/Admin/Install/Media/bill.pdf.php
index fe0100b..3ba00e9 100755
--- a/Admin/Install/Media/bill.pdf.php
+++ b/Admin/Install/Media/bill.pdf.php
@@ -13,11 +13,11 @@ $mpdf = new Mpdf([
'format' => 'A4-L',
'orientation' => 'L',
'margin_left' => 20,
- 'margin_right' => 15,
- 'margin_top' => 48,
- 'margin_bottom' => 25,
- 'margin_header' => 10,
- 'margin_footer' => 10,
+ 'margin_right' => 15,
+ 'margin_top' => 48,
+ 'margin_bottom' => 25,
+ 'margin_header' => 10,
+ 'margin_footer' => 10,
]);
$mpdf->SetDisplayMode('fullpage');
@@ -27,65 +27,65 @@ $mpdf->SetAuthor('Orange Management');
$html = '
-
+
-
request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
+
request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
-
-
-
-
- Sales per Region - Current
-
-
- getData('currentCustomerRegion'); ?>
-
-
,
- = (int) ($customerRegion['America'] ?? 0); ?>,
- = (int) ($customerRegion['Asia'] ?? 0); ?>,
- = (int) ($customerRegion['Africa'] ?? 0); ?>,
- = (int) ($customerRegion['CIS'] ?? 0); ?>,
- = (int) ($customerRegion['Other'] ?? 0); ?>
- ],
- "backgroundColor": [
- "rgb(255, 99, 132)",
- "rgb(255, 159, 64)",
- "rgb(255, 205, 86)",
- "rgb(75, 192, 192)",
- "rgb(54, 162, 235)",
- "rgb(153, 102, 255)"
- ]
- }]
- },
- "options": {
- "title": {
- "display": false,
- "text": "Customers per Region - Currently"
- }
- }
- }'>
+
+
+
+
+ Sales per Region - Current
+
+
+ getData('currentCustomerRegion'); ?>
+
+
,
+ = (int) ($customerRegion['America'] ?? 0); ?>,
+ = (int) ($customerRegion['Asia'] ?? 0); ?>,
+ = (int) ($customerRegion['Africa'] ?? 0); ?>,
+ = (int) ($customerRegion['CIS'] ?? 0); ?>,
+ = (int) ($customerRegion['Other'] ?? 0); ?>
+ ],
+ "backgroundColor": [
+ "rgb(255, 99, 132)",
+ "rgb(255, 159, 64)",
+ "rgb(255, 205, 86)",
+ "rgb(75, 192, 192)",
+ "rgb(54, 162, 235)",
+ "rgb(153, 102, 255)"
+ ]
+ }]
+ },
+ "options": {
+ "title": {
+ "display": false,
+ "text": "Customers per Region - Currently"
+ }
+ }
+ }'>
-
-
-
- Data
-
-
-
-
-
-
- Region
- Customer count
-
- $values) : $sum += $values; ?>
-
- = $region; ?>
- = $values; ?>
-
-
- Total
- = $sum; ?>
-
-
-
-
-
-
+
+
+
+ Data
+
+
+
+
+
+
+ Region
+ Customer count
+
+ $values) : $sum += $values; ?>
+
+ = $region; ?>
+ = $values; ?>
+
+
+ Total
+ = $sum; ?>
+
+
+
+
+
+
-
-
-
- Sales per Region - Annual
-
-
- getData('annualCustomerRegion'); ?>
-
-
- = '"' . \implode('", "', $temp) . '"'; ?>
- ],
- "datasets": [
- {
- "label": "= $this->getHtml('Total'); ?>",
- "type": "line",
- "data": [
-
- = \implode(',', $temp); ?>
- ],
- "fill": false,
- "borderColor": "rgb(139, 139, 139)",
- "backgroundColor": "rgb(139, 139, 139)",
- "tension": 0.0
- },
- {
- "label": "= $this->getHtml('Europe'); ?>",
- "type": "line",
- "data": [
-
- = \implode(',', $temp); ?>
- ],
- "fill": false,
- "borderColor": "rgb(255, 99, 132)",
- "backgroundColor": "rgb(255, 99, 132)",
- "tension": 0.0
- },
- {
- "label": "= $this->getHtml('America'); ?>",
- "type": "line",
- "data": [
-
- = \implode(',', $temp); ?>
- ],
- "fill": false,
- "borderColor": "rgb(255, 159, 64)",
- "backgroundColor": "rgb(255, 159, 64)",
- "tension": 0.0
- },
- {
- "label": "= $this->getHtml('Asia'); ?>",
- "type": "line",
- "data": [
-
- = \implode(',', $temp); ?>
- ],
- "fill": false,
- "borderColor": "rgb(255, 205, 86)",
- "backgroundColor": "rgb(255, 205, 86)",
- "tension": 0.0
- },
- {
- "label": "= $this->getHtml('Africa'); ?>",
- "type": "line",
- "data": [
-
- = \implode(',', $temp); ?>
- ],
- "fill": false,
- "borderColor": "rgb(75, 192, 192)",
- "backgroundColor": "rgb(75, 192, 192)",
- "tension": 0.0
- },
- {
- "label": "= $this->getHtml('CIS'); ?>",
- "type": "line",
- "data": [
-
- = \implode(',', $temp); ?>
- ],
- "fill": false,
- "borderColor": "rgb(54, 162, 235)",
- "backgroundColor": "rgb(54, 162, 235)",
- "tension": 0.0
- },
- {
- "label": "= $this->getHtml('Other'); ?>",
- "type": "line",
- "data": [
-
- = \implode(',', $temp); ?>
- ],
- "fill": false,
- "borderColor": "rgb(153, 102, 255)",
- "backgroundColor": "rgb(153, 102, 255)",
- "tension": 0.0
- }
- ]
- },
- "options": {
- "title": {
- "display": false,
- "text": "Sales per Region - Annual"
- },
- "scales": {
- "yAxes": [
- {
- "id": "axis-1",
- "display": true,
- "position": "left"
- }
- ]
- }
- }
- }'>
+
+
+
+ Sales per Region - Annual
+
+
+ getData('annualCustomerRegion'); ?>
+
+
+ = '"' . \implode('", "', $temp) . '"'; ?>
+ ],
+ "datasets": [
+ {
+ "label": "= $this->getHtml('Total'); ?>",
+ "type": "line",
+ "data": [
+
+ = \implode(',', $temp); ?>
+ ],
+ "fill": false,
+ "borderColor": "rgb(139, 139, 139)",
+ "backgroundColor": "rgb(139, 139, 139)",
+ "tension": 0.0
+ },
+ {
+ "label": "= $this->getHtml('Europe'); ?>",
+ "type": "line",
+ "data": [
+
+ = \implode(',', $temp); ?>
+ ],
+ "fill": false,
+ "borderColor": "rgb(255, 99, 132)",
+ "backgroundColor": "rgb(255, 99, 132)",
+ "tension": 0.0
+ },
+ {
+ "label": "= $this->getHtml('America'); ?>",
+ "type": "line",
+ "data": [
+
+ = \implode(',', $temp); ?>
+ ],
+ "fill": false,
+ "borderColor": "rgb(255, 159, 64)",
+ "backgroundColor": "rgb(255, 159, 64)",
+ "tension": 0.0
+ },
+ {
+ "label": "= $this->getHtml('Asia'); ?>",
+ "type": "line",
+ "data": [
+
+ = \implode(',', $temp); ?>
+ ],
+ "fill": false,
+ "borderColor": "rgb(255, 205, 86)",
+ "backgroundColor": "rgb(255, 205, 86)",
+ "tension": 0.0
+ },
+ {
+ "label": "= $this->getHtml('Africa'); ?>",
+ "type": "line",
+ "data": [
+
+ = \implode(',', $temp); ?>
+ ],
+ "fill": false,
+ "borderColor": "rgb(75, 192, 192)",
+ "backgroundColor": "rgb(75, 192, 192)",
+ "tension": 0.0
+ },
+ {
+ "label": "= $this->getHtml('CIS'); ?>",
+ "type": "line",
+ "data": [
+
+ = \implode(',', $temp); ?>
+ ],
+ "fill": false,
+ "borderColor": "rgb(54, 162, 235)",
+ "backgroundColor": "rgb(54, 162, 235)",
+ "tension": 0.0
+ },
+ {
+ "label": "= $this->getHtml('Other'); ?>",
+ "type": "line",
+ "data": [
+
+ = \implode(',', $temp); ?>
+ ],
+ "fill": false,
+ "borderColor": "rgb(153, 102, 255)",
+ "backgroundColor": "rgb(153, 102, 255)",
+ "tension": 0.0
+ }
+ ]
+ },
+ "options": {
+ "title": {
+ "display": false,
+ "text": "Sales per Region - Annual"
+ },
+ "scales": {
+ "yAxes": [
+ {
+ "id": "axis-1",
+ "display": true,
+ "position": "left"
+ }
+ ]
+ }
+ }
+ }'>
-
-
-
- Data
-
-
-
-
-
-
- Region
- $values) : ?>
- = $values; ?>
-
-
-
-
- = $region; ?>
- $annual) : ?>
- = $annual[$region] ?? 0; ?>
-
-
-
-
-
-
-
-
+
+
+
+ Data
+
+
+
+
+
+
+ Region
+ $values) : ?>
+ = $values; ?>
+
+
+
+
+ = $region; ?>
+ $annual) : ?>
+ = $annual[$region] ?? 0; ?>
+
+
+
+
+
+
+
+
-
-
-
-
- Profit per Region - Current
-
-
- getData('currentCustomerRegion'); ?>
-
-
,
- = (int) ($customerRegion['America'] ?? 0); ?>,
- = (int) ($customerRegion['Asia'] ?? 0); ?>,
- = (int) ($customerRegion['Africa'] ?? 0); ?>,
- = (int) ($customerRegion['CIS'] ?? 0); ?>,
- = (int) ($customerRegion['Other'] ?? 0); ?>
- ],
- "backgroundColor": [
- "rgb(255, 99, 132)",
- "rgb(255, 159, 64)",
- "rgb(255, 205, 86)",
- "rgb(75, 192, 192)",
- "rgb(54, 162, 235)",
- "rgb(153, 102, 255)"
- ]
- }]
- },
- "options": {
- "title": {
- "display": false,
- "text": "Customers per Region - Currently"
- }
- }
- }'>
+
+
+
+
+ Profit per Region - Current
+
+
+ getData('currentCustomerRegion'); ?>
+
+
,
+ = (int) ($customerRegion['America'] ?? 0); ?>,
+ = (int) ($customerRegion['Asia'] ?? 0); ?>,
+ = (int) ($customerRegion['Africa'] ?? 0); ?>,
+ = (int) ($customerRegion['CIS'] ?? 0); ?>,
+ = (int) ($customerRegion['Other'] ?? 0); ?>
+ ],
+ "backgroundColor": [
+ "rgb(255, 99, 132)",
+ "rgb(255, 159, 64)",
+ "rgb(255, 205, 86)",
+ "rgb(75, 192, 192)",
+ "rgb(54, 162, 235)",
+ "rgb(153, 102, 255)"
+ ]
+ }]
+ },
+ "options": {
+ "title": {
+ "display": false,
+ "text": "Customers per Region - Currently"
+ }
+ }
+ }'>
-
-
-
- Data
-
-
-
-
-
-
- Region
- Customer count
-
- $values) : $sum += $values; ?>
-
- = $region; ?>
- = $values; ?>
-
-
- Total
- = $sum; ?>
-
-
-
-
-
-
+
+
+
+ Data
+
+
+
+
+
+
+ Region
+ Customer count
+
+ $values) : $sum += $values; ?>
+
+ = $region; ?>
+ = $values; ?>
+
+
+ Total
+ = $sum; ?>
+
+
+
+
+
+
-
-
-
- Profit per Region - Annual
-
-
- getData('annualCustomerRegion'); ?>
-
-
- = '"' . \implode('", "', $temp) . '"'; ?>
- ],
- "datasets": [
- {
- "label": "= $this->getHtml('Total'); ?>",
- "type": "line",
- "data": [
-
- = \implode(',', $temp); ?>
- ],
- "fill": false,
- "borderColor": "rgb(139, 139, 139)",
- "backgroundColor": "rgb(139, 139, 139)",
- "tension": 0.0
- },
- {
- "label": "= $this->getHtml('Europe'); ?>",
- "type": "line",
- "data": [
-
- = \implode(',', $temp); ?>
- ],
- "fill": false,
- "borderColor": "rgb(255, 99, 132)",
- "backgroundColor": "rgb(255, 99, 132)",
- "tension": 0.0
- },
- {
- "label": "= $this->getHtml('America'); ?>",
- "type": "line",
- "data": [
-
- = \implode(',', $temp); ?>
- ],
- "fill": false,
- "borderColor": "rgb(255, 159, 64)",
- "backgroundColor": "rgb(255, 159, 64)",
- "tension": 0.0
- },
- {
- "label": "= $this->getHtml('Asia'); ?>",
- "type": "line",
- "data": [
-
- = \implode(',', $temp); ?>
- ],
- "fill": false,
- "borderColor": "rgb(255, 205, 86)",
- "backgroundColor": "rgb(255, 205, 86)",
- "tension": 0.0
- },
- {
- "label": "= $this->getHtml('Africa'); ?>",
- "type": "line",
- "data": [
-
- = \implode(',', $temp); ?>
- ],
- "fill": false,
- "borderColor": "rgb(75, 192, 192)",
- "backgroundColor": "rgb(75, 192, 192)",
- "tension": 0.0
- },
- {
- "label": "= $this->getHtml('CIS'); ?>",
- "type": "line",
- "data": [
-
- = \implode(',', $temp); ?>
- ],
- "fill": false,
- "borderColor": "rgb(54, 162, 235)",
- "backgroundColor": "rgb(54, 162, 235)",
- "tension": 0.0
- },
- {
- "label": "= $this->getHtml('Other'); ?>",
- "type": "line",
- "data": [
-
- = \implode(',', $temp); ?>
- ],
- "fill": false,
- "borderColor": "rgb(153, 102, 255)",
- "backgroundColor": "rgb(153, 102, 255)",
- "tension": 0.0
- }
- ]
- },
- "options": {
- "title": {
- "display": false,
- "text": "Sales per Region - Annual"
- },
- "scales": {
- "yAxes": [
- {
- "id": "axis-1",
- "display": true,
- "position": "left"
- }
- ]
- }
- }
- }'>
+
+
+
+ Profit per Region - Annual
+
+
+ getData('annualCustomerRegion'); ?>
+
+
+ = '"' . \implode('", "', $temp) . '"'; ?>
+ ],
+ "datasets": [
+ {
+ "label": "= $this->getHtml('Total'); ?>",
+ "type": "line",
+ "data": [
+
+ = \implode(',', $temp); ?>
+ ],
+ "fill": false,
+ "borderColor": "rgb(139, 139, 139)",
+ "backgroundColor": "rgb(139, 139, 139)",
+ "tension": 0.0
+ },
+ {
+ "label": "= $this->getHtml('Europe'); ?>",
+ "type": "line",
+ "data": [
+
+ = \implode(',', $temp); ?>
+ ],
+ "fill": false,
+ "borderColor": "rgb(255, 99, 132)",
+ "backgroundColor": "rgb(255, 99, 132)",
+ "tension": 0.0
+ },
+ {
+ "label": "= $this->getHtml('America'); ?>",
+ "type": "line",
+ "data": [
+
+ = \implode(',', $temp); ?>
+ ],
+ "fill": false,
+ "borderColor": "rgb(255, 159, 64)",
+ "backgroundColor": "rgb(255, 159, 64)",
+ "tension": 0.0
+ },
+ {
+ "label": "= $this->getHtml('Asia'); ?>",
+ "type": "line",
+ "data": [
+
+ = \implode(',', $temp); ?>
+ ],
+ "fill": false,
+ "borderColor": "rgb(255, 205, 86)",
+ "backgroundColor": "rgb(255, 205, 86)",
+ "tension": 0.0
+ },
+ {
+ "label": "= $this->getHtml('Africa'); ?>",
+ "type": "line",
+ "data": [
+
+ = \implode(',', $temp); ?>
+ ],
+ "fill": false,
+ "borderColor": "rgb(75, 192, 192)",
+ "backgroundColor": "rgb(75, 192, 192)",
+ "tension": 0.0
+ },
+ {
+ "label": "= $this->getHtml('CIS'); ?>",
+ "type": "line",
+ "data": [
+
+ = \implode(',', $temp); ?>
+ ],
+ "fill": false,
+ "borderColor": "rgb(54, 162, 235)",
+ "backgroundColor": "rgb(54, 162, 235)",
+ "tension": 0.0
+ },
+ {
+ "label": "= $this->getHtml('Other'); ?>",
+ "type": "line",
+ "data": [
+
+ = \implode(',', $temp); ?>
+ ],
+ "fill": false,
+ "borderColor": "rgb(153, 102, 255)",
+ "backgroundColor": "rgb(153, 102, 255)",
+ "tension": 0.0
+ }
+ ]
+ },
+ "options": {
+ "title": {
+ "display": false,
+ "text": "Sales per Region - Annual"
+ },
+ "scales": {
+ "yAxes": [
+ {
+ "id": "axis-1",
+ "display": true,
+ "position": "left"
+ }
+ ]
+ }
+ }
+ }'>
-
-
-
- Data
-
-
-
-
-
-
- Region
- $values) : ?>
- = $values; ?>
-
-
-
-
- = $region; ?>
- $annual) : ?>
- = $annual[$region] ?? 0; ?>
-
-
-
-
-
-
-
-
+
+
+
+ Data
+
+
+
+
+
+
+ Region
+ $values) : ?>
+ = $values; ?>
+
+
+
+
+ = $region; ?>
+ $annual) : ?>
+ = $annual[$region] ?? 0; ?>
+
+
+
+
+
+
+
+
-
-
-
-
- Sales / Region
-
-
-
-
-
- Country
- Sales PY
- Sales B
- Sales A
- Diff PY
- Diff B
-
-
-
-
-
+
+
+
+
+ Sales / Region
+
+
+
+
+
+ Country
+ Sales PY
+ Sales B
+ Sales A
+ Diff PY
+ Diff B
+
+
+
+
+
request->uri->fragment === 'c-tab-3' ? ' checked' : ''; ?>>
-
+
-
+
@@ -1750,7 +1750,7 @@ echo $this->getData('nav')->render();
-
+
\ No newline at end of file
diff --git a/Theme/Backend/rep-analysis.tpl.php b/Theme/Backend/rep-analysis.tpl.php
index 1d8c1df..c8f49ab 100644
--- a/Theme/Backend/rep-analysis.tpl.php
+++ b/Theme/Backend/rep-analysis.tpl.php
@@ -319,12 +319,12 @@ echo $this->getData('nav')->render();