@bjsdistribution/dms-client-return 0.1.10-prod → 0.1.11-prod
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 +10 -6
- 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 +10 -6
- 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 +3 -0
- package/src/components/order-daily-overview/table/ReturnTable.tsx +6 -0
- package/src/components/order-view/order-details/expanded-content/services-section/ServiceLevel.tsx +3 -4
package/package.json
CHANGED
|
@@ -239,6 +239,7 @@ const OrderTable = () => {
|
|
|
239
239
|
<th>Consignment</th>
|
|
240
240
|
<th>Return Order No</th>
|
|
241
241
|
<th> Total Parts</th>
|
|
242
|
+
<th> Total Orders</th>
|
|
242
243
|
<th onClick={() => handleSort('weight')}>
|
|
243
244
|
<div className="sortIconClass">
|
|
244
245
|
Total Weight {renderSortIcon('weight')}
|
|
@@ -328,6 +329,8 @@ const OrderTable = () => {
|
|
|
328
329
|
<td>{displayValueOrNA(item?.order_number)}</td>
|
|
329
330
|
|
|
330
331
|
<td>{displayValueOrNA(item?.total_products)}</td>
|
|
332
|
+
<td>{displayValueOrNA(item?.total_orders)}</td>
|
|
333
|
+
|
|
331
334
|
<td>
|
|
332
335
|
{displayValueOrNA(item?.weight)}{' '}
|
|
333
336
|
{item?.weight && item?.weight > 0 ? 'KG' : ''}
|
|
@@ -158,6 +158,7 @@ const ReturnTable: React.FC = () => {
|
|
|
158
158
|
{ label: 'Products', key: 'return_order_products' },
|
|
159
159
|
{ label: 'RTS', key: 'RTS' },
|
|
160
160
|
{ label: 'Pending', key: 'PENDING' },
|
|
161
|
+
{ label: 'Claims Paid', key: 'CLAIMS PAID' },
|
|
161
162
|
{ label: 'Dispose', key: 'DISPOSE' },
|
|
162
163
|
{ label: 'Re-allocate', key: 'RE-ALLOCATE' },
|
|
163
164
|
{ label: 'Re-Del', key: 'RE-DEL' },
|
|
@@ -249,6 +250,11 @@ const ReturnTable: React.FC = () => {
|
|
|
249
250
|
<GreyBox>{key?.PENDING}</GreyBox>
|
|
250
251
|
</ColumStyle>
|
|
251
252
|
</td>
|
|
253
|
+
<td>
|
|
254
|
+
<ColumStyle>
|
|
255
|
+
<GreyBox>{key?.['CLAIMS PAID']}</GreyBox>
|
|
256
|
+
</ColumStyle>
|
|
257
|
+
</td>
|
|
252
258
|
<td>
|
|
253
259
|
<ColumStyle>
|
|
254
260
|
<GreyBox>{key?.DISPOSE}</GreyBox>
|
package/src/components/order-view/order-details/expanded-content/services-section/ServiceLevel.tsx
CHANGED
|
@@ -8,13 +8,12 @@ function ServiceLevel() {
|
|
|
8
8
|
const [orderStaticData] = useOrderStaticData();
|
|
9
9
|
const [orderData, setOrderData] = useOrderDetails();
|
|
10
10
|
|
|
11
|
-
const serviceLevelId =
|
|
12
|
-
orderData?.order_services_detail?.order_service_level_id;
|
|
11
|
+
const serviceLevelId = orderData?.order_services_detail?.order_service_level_id?.toString();
|
|
13
12
|
|
|
14
13
|
const serviceLevelOptions = orderStaticData?.order_service_levels?.map(
|
|
15
14
|
(option: any) => ({
|
|
16
15
|
label: capitalize(option.type.replaceAll('_', ' ')),
|
|
17
|
-
value: option
|
|
16
|
+
value: option?.id?.toString(),
|
|
18
17
|
})
|
|
19
18
|
);
|
|
20
19
|
|
|
@@ -32,7 +31,7 @@ function ServiceLevel() {
|
|
|
32
31
|
return (
|
|
33
32
|
<Container disabled={isDisabled}>
|
|
34
33
|
<RadioButtonGroup
|
|
35
|
-
selectedValue={serviceLevelId
|
|
34
|
+
selectedValue={serviceLevelId || ''}
|
|
36
35
|
heading="Service Level"
|
|
37
36
|
options={serviceLevelOptions || []}
|
|
38
37
|
onChange={radioGroupHandler}
|