diff --git a/assets/modul-js/common/dashboard/dashboard.so.js b/assets/modul-js/common/dashboard/dashboard.so.js index 67a0dc5..616596f 100755 --- a/assets/modul-js/common/dashboard/dashboard.so.js +++ b/assets/modul-js/common/dashboard/dashboard.so.js @@ -106,12 +106,12 @@ $(document).ready(function() { }); }); - $(document).on("click", ".soDelete", function() { + $(document).on("click", ".soCancel", function() { var id = $(this).data('id'); var dataStringg = 'id=' + id; $.ajax({ type: "POST", - url: "/dashboard/shipping-order/delete", + url: "/dashboard/shipping-order/cancel", cache: false, data: dataStringg, success: function(data, statusText, xhr) { diff --git a/modul/common/dashboard/dashboard.func.php b/modul/common/dashboard/dashboard.func.php index 7170a5b..7e340af 100755 --- a/modul/common/dashboard/dashboard.func.php +++ b/modul/common/dashboard/dashboard.func.php @@ -39,10 +39,11 @@ function getGeneralStatus($so_id){ }elseif($daStatus == 5){ return "Delivery Request Rejected"; } - elseif($soStatus == 4 ){ - return "Order Canceled"; } - }else{ + elseif($soStatus == 4 ){ + return "Canceled"; + } + else{ return "Order Created"; } } \ No newline at end of file diff --git a/modul/common/dashboard/dashboard.so.list.php b/modul/common/dashboard/dashboard.so.list.php index 567719f..0517d95 100755 --- a/modul/common/dashboard/dashboard.so.list.php +++ b/modul/common/dashboard/dashboard.so.list.php @@ -48,26 +48,35 @@ $requestData= $_REQUEST; -