diff --git a/src/views/Inventory/Inventory.js b/src/views/Inventory/Inventory.js
index 5084ef3..dee4892 100644
--- a/src/views/Inventory/Inventory.js
+++ b/src/views/Inventory/Inventory.js
@@ -33,15 +33,12 @@ const Inventory = () => {
name: nameRef.current?.value || "",
},
});
-
+ // console.log("response", response);
const transformedData =
response.data?.inventories?.map((entry) => ({
id: entry._id,
uniqueId: entry.uniqueId,
- tradeName:
- entry.addedForData?.shippingAddress?.tradeName ||
- entry.addedForData?.trade_name ||
- "N/A",
+ tradeName: entry.tradeName || "N/A",
designation: entry.addedFor === "PrincipalDistributor" ? "PD" : "RD",
products: entry.products.map((product) => ({
SKU: product.SKU,
diff --git a/src/views/Inventory/SingleInventory.js b/src/views/Inventory/SingleInventory.js
index f62f98c..a2121a9 100644
--- a/src/views/Inventory/SingleInventory.js
+++ b/src/views/Inventory/SingleInventory.js
@@ -140,7 +140,7 @@ const SingleInventory = () => {
Unique Id | -SBU | -Name | -Profile Image | */} - -Date Registered | -Last Purchase | -Orders | -Mapping | -Action | +Unique Id | +SBU | +Name | +Date Registered | +Last Purchase | +Orders | +Mapping | ++ Action + | {user.uniqueId} | {user.SBU ? user.SBU : "N/A"} | {user.name} | -{user.email} | -+ | {user.email} | +{new Date(user.createdAt).toLocaleString( "en-IN", { @@ -268,20 +272,21 @@ const principalDistributor = () => { ) : "No purchase"} | -+ | - + | {/* {loading1 && ( @@ -295,7 +300,7 @@ const principalDistributor = () => { _id={user?._id} setLoading1={setLoading1} /> */} -+ | @@ -311,7 +316,7 @@ const principalDistributor = () => { | -+ | {/* @@ -381,7 +386,7 @@ const principalDistributor = () => { > @@ -392,14 +397,15 @@ const principalDistributor = () => { - {/* */} + |
---|