v.2.15
Обновление отчета по персоналу
This commit is contained in:
@@ -323,7 +323,7 @@
|
||||
$scope.total = data.total;
|
||||
});
|
||||
|
||||
smartRequest.get('dashboard/online/staff', function (data) {
|
||||
smartRequest.get('v1/onlinestaff?method=dashboard', function (data) {
|
||||
$scope.personals = data.staff;
|
||||
});
|
||||
|
||||
@@ -503,7 +503,7 @@
|
||||
$scope.total = data.total;
|
||||
});
|
||||
|
||||
smartRequest.get('dashboard/online/staff', function (data) {
|
||||
smartRequest.get('v1/onlinestaff?method=dashboard', function (data) {
|
||||
$scope.personals = data.staff;
|
||||
});
|
||||
|
||||
@@ -730,6 +730,14 @@
|
||||
});
|
||||
};
|
||||
|
||||
$scope.getItemsStaff = function (order) {
|
||||
$('#get-more-staff').modal('toggle');
|
||||
smartRequest.get('v1/onlinestaff?method=items&order=' + order.number, function (data) {
|
||||
$scope.order = data;
|
||||
$('#items-staff').modal('toggle');
|
||||
});
|
||||
};
|
||||
|
||||
$scope.getItemsDiscount = function (order) {
|
||||
$('#get-more-discount').modal('toggle');
|
||||
smartRequest.get('v1/discountitems?order=' + order.number, function (data) {
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
};
|
||||
|
||||
$scope.reportStaff = function() {
|
||||
smartRequest.get('report/staff?start_date=' + encodeURIComponent($scope.start_date) + '&end_date=' + encodeURIComponent($scope.end_date), function(data) {
|
||||
smartRequest.get('v1/datareport?type=staff&start_date=' + encodeURIComponent($scope.start_date) + '&end_date=' + encodeURIComponent($scope.end_date), function(data) {
|
||||
$scope.staffs = data.staffs;
|
||||
$('#report-staff').modal();
|
||||
}, function(data) {
|
||||
|
||||
@@ -150,7 +150,7 @@
|
||||
};
|
||||
|
||||
$scope.reportStaff = function (shift) {
|
||||
smartRequest.get('report/staff?shift_id=' + shift.id, function (data) {
|
||||
smartRequest.get('v1/datareport?type=staff&shift_id=' + shift.id, function (data) {
|
||||
$scope.staffs = data.staffs;
|
||||
$scope.start_date = shift.opened;
|
||||
$scope.end_date = shift.closed;
|
||||
|
||||
Reference in New Issue
Block a user