mirror of
https://github.com/Karaka-Management/oms-SalesAnalysis.git
synced 2026-01-11 19:38:39 +00:00
update
This commit is contained in:
parent
91fe5b5af8
commit
680ef21f21
|
|
@ -64,8 +64,10 @@ final class BackendController extends Controller
|
||||||
$view->setTemplate('/Modules/SalesAnalysis/Theme/Backend/analysis-overview-dashboard');
|
$view->setTemplate('/Modules/SalesAnalysis/Theme/Backend/analysis-overview-dashboard');
|
||||||
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1005401001, $request, $response);
|
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1005401001, $request, $response);
|
||||||
|
|
||||||
// @todo limit bill type (invoice/credit note) (customers only)
|
// @bug Only analyze bills with a status and type that is relevant
|
||||||
// @todo limit bill status
|
// For types it should be $isAccounting = true
|
||||||
|
// For status it should be ARCHIVED
|
||||||
|
// https://github.com/Karaka-Management/oms-SalesAnalysis/issues/34
|
||||||
|
|
||||||
$businessStart = 1;
|
$businessStart = 1;
|
||||||
$startOfYear = SmartDateTime::createFromDateTime(SmartDateTime::startOfYear($businessStart));
|
$startOfYear = SmartDateTime::createFromDateTime(SmartDateTime::startOfYear($businessStart));
|
||||||
|
|
|
||||||
|
|
@ -288,7 +288,7 @@ class RegionMapper extends DataMapperFactory
|
||||||
}
|
}
|
||||||
|
|
||||||
// @todo remove businessStart, that should be baked into the historyStart
|
// @todo remove businessStart, that should be baked into the historyStart
|
||||||
// Explanation: in the past I had to compare periods which werent even business years!!!
|
// Explanation: in the past I had to compare periods which weren't even business years!!!
|
||||||
public static function salesProfitCountry(
|
public static function salesProfitCountry(
|
||||||
SmartDateTime $historyStart,
|
SmartDateTime $historyStart,
|
||||||
SmartDateTime $historyEnd,
|
SmartDateTime $historyEnd,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user