Order history
This commit is contained in:
miroman-afk
2022-03-25 00:03:43 +03:00
parent 4ad154c65a
commit 85fd6af04f
10 changed files with 256 additions and 26 deletions

View File

@@ -722,6 +722,17 @@
});
};
$scope.getTotalItems = function (order) {
$('#get-more-total').modal('toggle');
smartRequest.get('dashboard/total/items?order=' + order.number, function (data) {
$scope.order = data;
smartRequest.get('v1/orderhistory?order_id=' + order.number, function (actions) {
$scope.actions = actions;
});
$('#items-total').modal('toggle');
});
};
$scope.getStaffMore = function (staff) {
smartRequest.get('dashboard/more/staff?code=' + staff.code, function (data) {
$scope.staff = data;