|
|
|
@ -711,7 +711,7 @@ define(['angular','decimal', 'uiRouter', 'uiBootstrap', 'angularEcharts'], funct
|
|
|
|
|
$scope.trade_type_chart = chartParser.parse(tradeInTypeConfig, resp.data);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
loadTradeAmountInTypes($scope.scales[4].params());
|
|
|
|
|
loadTradeAmountInTypes($scope.scales[2].params());
|
|
|
|
|
function getAvgOrderAndCustomer() {
|
|
|
|
|
$http.get('/dashboard/partner/' + $scope.clientMoniker + '/avg_order_customer').then(function (resp) {
|
|
|
|
|
$scope.avgOrderAndCustomer = resp.data;
|
|
|
|
@ -776,7 +776,7 @@ define(['angular','decimal', 'uiRouter', 'uiBootstrap', 'angularEcharts'], funct
|
|
|
|
|
$scope.trade_line = chartParser.parse(analysisConfig, resp.data);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
loadFeeAnalysis($scope.scales[4].params());
|
|
|
|
|
loadFeeAnalysis($scope.scales[2].params());
|
|
|
|
|
|
|
|
|
|
function getOrderCustomerChartAnalysis(params) {
|
|
|
|
|
$http.get('/dashboard/partner/customers',{params:params}).then(function (resp) {
|
|
|
|
@ -795,7 +795,7 @@ define(['angular','decimal', 'uiRouter', 'uiBootstrap', 'angularEcharts'], funct
|
|
|
|
|
$scope.customersHistory = customersHistoryConfig(dates, old_customers, new_customers, orders);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
getOrderCustomerChartAnalysis($scope.scales[4].params());
|
|
|
|
|
getOrderCustomerChartAnalysis($scope.scales[2].params());
|
|
|
|
|
var customersHistoryConfig = function (date, old_customers, new_customers, orders) {
|
|
|
|
|
return {
|
|
|
|
|
color: colors,
|
|
|
|
|