@bjsdistribution/dms-client-return 0.0.69 → 0.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dms-client-return.cjs.development.js +6 -7
- package/dist/dms-client-return.cjs.development.js.map +1 -1
- package/dist/dms-client-return.cjs.production.min.js +1 -1
- package/dist/dms-client-return.cjs.production.min.js.map +1 -1
- package/dist/dms-client-return.esm.js +6 -7
- package/dist/dms-client-return.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/order-daily-overview/return-after-table/table/OrderTable.tsx +0 -3
- package/src/index.tsx +17 -10
|
@@ -2838,11 +2838,6 @@ var OrderTable = function OrderTable() {
|
|
|
2838
2838
|
color: '#845ADF',
|
|
2839
2839
|
background: 'rgba(132, 90, 223, 0.15)'
|
|
2840
2840
|
};
|
|
2841
|
-
case 'Awaiting':
|
|
2842
|
-
return {
|
|
2843
|
-
color: '#845ADF',
|
|
2844
|
-
background: 'rgba(132, 90, 223, 0.15)'
|
|
2845
|
-
};
|
|
2846
2841
|
case 'Completed':
|
|
2847
2842
|
return {
|
|
2848
2843
|
color: '#1F9254',
|
|
@@ -2961,7 +2956,6 @@ var OrderTable = function OrderTable() {
|
|
|
2961
2956
|
OO: 'On Hold',
|
|
2962
2957
|
SC: 'Sub-Contracted',
|
|
2963
2958
|
'awaiting route': 'Awaiting route',
|
|
2964
|
-
'awaiting confirmation': 'Awaiting',
|
|
2965
2959
|
completed: 'completed',
|
|
2966
2960
|
outstanding: 'Outstanding',
|
|
2967
2961
|
routed: 'Routed'
|
|
@@ -11914,7 +11908,7 @@ function ReturnClient() {
|
|
|
11914
11908
|
};
|
|
11915
11909
|
var paths = splitPath(location.pathname);
|
|
11916
11910
|
React.useEffect(function () {
|
|
11917
|
-
if (paths.
|
|
11911
|
+
if (paths[paths.length - 1] === 'orders/view/return') {
|
|
11918
11912
|
setActionTypeOptions([]);
|
|
11919
11913
|
setLocationOptions([]);
|
|
11920
11914
|
setSelectedClient(null);
|
|
@@ -11922,6 +11916,11 @@ function ReturnClient() {
|
|
|
11922
11916
|
setSelectedLocationValue(null);
|
|
11923
11917
|
}
|
|
11924
11918
|
}, [location.pathname, searchParams]);
|
|
11919
|
+
// useEffect(() => {
|
|
11920
|
+
// if (selectedClientId) {
|
|
11921
|
+
// navigate(`filter/${selectedClientId}`);
|
|
11922
|
+
// }
|
|
11923
|
+
// }, [selectedClientId]);
|
|
11925
11924
|
//API for client data
|
|
11926
11925
|
var _useApiHook = dmsComponentLibrary.useApiHook({
|
|
11927
11926
|
endpoint: "/return_orders/customers/",
|