Files
admin-php-module/web/controllers/reimport.js
miroman-afk 3c8a6b2736 v.2.0
Clients file update
2021-11-16 15:43:14 +03:00

29 lines
853 B
JavaScript

(function () {
'use strict';
angular
.module('app')
.controller('ReImportCtrl', ReImportCtrl);
TestHelloCtrl.$inject = ['$scope', 'smartRequest', '$location', 'Notification'];
function TestHelloCtrl($scope, smartRequest, $location, Notification) {
$scope.orders = [];
$scope.total = [];
$scope.getOrders = function () {
smartRequest.get('v1/hello?start_date=' + encodeURIComponent($scope.start_date) + '&end_date=' + encodeURIComponent($scope.end_date), function (data) {
$scope.orders = data.orders;
$scope.total = data.total;
});
};
$scope.createReport = function () {
};
$scope.update = function () {
$scope.getOrders();
};
$scope.update();
}
})();