v.2.15
Добавлен журнал заказов Добавлены отчеты: по переносам, по объединениям, по разбиениям
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
$scope.currentPage = 1;
|
||||
$scope.statistic = {};
|
||||
$scope.staffs = [];
|
||||
$scope.parseFloat = parseFloat;
|
||||
|
||||
$scope.add = function() {
|
||||
$scope.reImport = {};
|
||||
@@ -76,6 +77,39 @@
|
||||
});
|
||||
};
|
||||
|
||||
$scope.reportMerged = function (shift) {
|
||||
smartRequest.get('v1/datareport?type=merge&shift_id=' + shift.id, function (data) {
|
||||
$scope.report_merge = data.data;
|
||||
$scope.report_merge.count = data.count;
|
||||
$scope.report_merge.shift_id = data.shift_id;
|
||||
$scope.start_date = shift.opened;
|
||||
$scope.end_date = shift.closed;
|
||||
$('#report-merge').modal();
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
$scope.reportMoved = function (shift) {
|
||||
smartRequest.get('v1/datareport?type=move&shift_id=' + shift.id, function (data) {
|
||||
$scope.report_move = data.data;
|
||||
$scope.report_move.count = data.count;
|
||||
$scope.start_date = shift.opened;
|
||||
$scope.end_date = shift.closed;
|
||||
$('#report-move').modal();
|
||||
});
|
||||
};
|
||||
|
||||
$scope.reportSliced = function (shift) {
|
||||
smartRequest.get('v1/datareport?type=slice&shift_id=' + shift.id, function (data) {
|
||||
$scope.report_slice = data.data;
|
||||
$scope.report_slice.count = data.count;
|
||||
$scope.report_slice.shift_id = data.shift_id;
|
||||
$scope.start_date = shift.opened;
|
||||
$scope.end_date = shift.closed;
|
||||
$('#report-slice').modal();
|
||||
});
|
||||
};
|
||||
|
||||
$scope.reportDelete = function (shift) {
|
||||
smartRequest.get('report/deleted?shift_id=' + shift.id, function (data) {
|
||||
$scope.report_delete = data.deleted;
|
||||
|
||||
Reference in New Issue
Block a user