diff --git a/src/views/Inventory/Inventory.js b/src/views/Inventory/Inventory.js
index dee4892..181a182 100644
--- a/src/views/Inventory/Inventory.js
+++ b/src/views/Inventory/Inventory.js
@@ -39,7 +39,7 @@ const Inventory = () => {
id: entry._id,
uniqueId: entry.uniqueId,
tradeName: entry.tradeName || "N/A",
- designation: entry.addedFor === "PrincipalDistributor" ? "PD" : "RD",
+ designation: entry.addedFor === "PrincipalDistributor" ? "PD" : "Retailer",
products: entry.products.map((product) => ({
SKU: product.SKU,
ProductName: product.ProductName,
@@ -203,7 +203,7 @@ const Inventory = () => {
className="text-start"
style={{ border: "1px solid" }}
>
- PD/RD
+ PD/Retailer
{
inventoryData.map((entry, i) =>
entry.products.map((product, j) => (
- {/* Only show ID, Date, Time, Trade Name, PD/RD, and Actions on the first row of each entry */}
+ {/* Only show ID, Date, Time, Trade Name, PD/Retailer, and Actions on the first row of each entry */}
{j === 0 && (
<>
{
- PD or RD: {" "}
+ PD or Retailer: {" "}
{inventoryDetails.addedFor}
diff --git a/src/views/PrincipalDistributors/principalDistributor.js b/src/views/PrincipalDistributors/principalDistributor.js
index 3286c3b..dfa0313 100644
--- a/src/views/PrincipalDistributors/principalDistributor.js
+++ b/src/views/PrincipalDistributors/principalDistributor.js
@@ -316,7 +316,7 @@ const principalDistributor = () => {
type="button"
className="btn btn-primary btn-sm waves-effect waves-light btn-table ml-2"
>
- RD
+ Retailer
diff --git a/src/views/RetailDistributors/SingleRetailDistributor.js b/src/views/RetailDistributors/SingleRetailDistributor.js
index ee91692..49cc464 100644
--- a/src/views/RetailDistributors/SingleRetailDistributor.js
+++ b/src/views/RetailDistributors/SingleRetailDistributor.js
@@ -514,7 +514,7 @@ const SingleRetailDistributor = () => {
SL No.
Trade Name
- RD Name
+ Retailer Name
Address
Default
Action
@@ -535,7 +535,7 @@ const SingleRetailDistributor = () => {
- {address?.Name ? `${address.Name}` : "No RD Name"}
+ {address?.Name ? `${address.Name}` : "No Retailer Name"}
diff --git a/src/views/Sales/Sales.js b/src/views/Sales/Sales.js
index a8474f5..bfca585 100644
--- a/src/views/Sales/Sales.js
+++ b/src/views/Sales/Sales.js
@@ -39,7 +39,7 @@ const Sales = () => {
id: entry._id,
uniqueId: entry.uniqueId,
tradeName: entry.tradeName || "N/A",
- designation: entry.addedFor === "PrincipalDistributor" ? "PD" : "RD",
+ designation: entry.addedFor === "PrincipalDistributor" ? "PD" : "Retailer",
products: entry.products.map((product) => ({
SKU: product.SKU,
ProductName: product.ProductName,
@@ -203,7 +203,7 @@ const Sales = () => {
className="text-start"
style={{ border: "1px solid" }}
>
- PD/RD
+ PD/Retailer
{
SalesData.map((entry, i) =>
entry.products.map((product, j) => (
- {/* Only show ID, Date, Time, Trade Name, PD/RD, and Actions on the first row of each entry */}
+ {/* Only show ID, Date, Time, Trade Name, PD/Retailer, and Actions on the first row of each entry */}
{j === 0 && (
<>
{
- PD or RD: {" "}
+ PD or Retailer: {" "}
{SalesDetails.addedFor}
diff --git a/src/views/SalesCoOrdinators/SalesCoOrdinator.js b/src/views/SalesCoOrdinators/SalesCoOrdinator.js
index 1611ce2..81a4e39 100644
--- a/src/views/SalesCoOrdinators/SalesCoOrdinator.js
+++ b/src/views/SalesCoOrdinators/SalesCoOrdinator.js
@@ -5,7 +5,7 @@ import Button from "@material-ui/core/Button";
import { useNavigate } from "react-router-dom";
import { isAutheticated } from "src/auth";
import swal from "sweetalert";
-import debounce from 'lodash.debounce';
+import debounce from "lodash.debounce";
const SalesCoOrdinator = () => {
const token = isAutheticated();
@@ -57,10 +57,13 @@ const SalesCoOrdinator = () => {
getSalesCoOrdinatorsData();
}, [success, itemPerPage, currentPage]);
- const debouncedSearch = useCallback(debounce(() => {
- setCurrentPage(1);
- getSalesCoOrdinatorsData();
- }, 500), []);
+ const debouncedSearch = useCallback(
+ debounce(() => {
+ setCurrentPage(1);
+ getSalesCoOrdinatorsData();
+ }, 500),
+ []
+ );
const handleSearchChange = () => {
debouncedSearch();
@@ -119,7 +122,7 @@ const SalesCoOrdinator = () => {
Sales Coordinators
-
{
style={{ background: "#ecdddd" }}
>
- Unique Id
- Name
- Mobile No.
- Email
- Verify
- Register On
- Mapping
- Action
+ Unique Id
+ Name
+ Mobile No.
+ Email
+ Verify
+ Register On
+
+ Mapping
+
+
+ Action
+
{loading ? (
-
+
Loading...
@@ -283,46 +290,34 @@ const SalesCoOrdinator = () => {
})}
-
- PD
+ PD
- RD
+ Retailer
-
-
+
+
Edit
@@ -331,8 +326,10 @@ const SalesCoOrdinator = () => {
handleDelete(salescoordinator._id)}
+ className="btn btn-danger btn-sm waves-effect waves-light btn-table ml-1 md-mt-1 md-ml-0"
+ onClick={() =>
+ handleDelete(salescoordinator._id)
+ }
>
Delete
@@ -342,7 +339,7 @@ const SalesCoOrdinator = () => {
})
) : (
-
+
No Sales Coordinator found!
@@ -352,7 +349,8 @@ const SalesCoOrdinator = () => {
- Showing {salescoordinatorsData?.length} of {totalData} entries
+ Showing {salescoordinatorsData?.length} of {totalData}{" "}
+ entries
{
setCurrentPage(currentPage + 1)}
- disabled={salescoordinatorsData?.length < itemPerPage || loading}
+ disabled={
+ salescoordinatorsData?.length < itemPerPage || loading
+ }
className="btn btn-primary ml-2"
>
Next
diff --git a/src/views/TerritoryManager/TerritoryManager.js b/src/views/TerritoryManager/TerritoryManager.js
index 1f920a9..6416fed 100644
--- a/src/views/TerritoryManager/TerritoryManager.js
+++ b/src/views/TerritoryManager/TerritoryManager.js
@@ -219,21 +219,23 @@ const TerritoryManager = () => {
style={{ background: "#ecdddd" }}
>
- Unique Id
- Name
- Mobile No.
- Email
- Verify
- Register On
- Mapping
- Action
+ Unique Id
+ Name
+ Mobile No.
+ Email
+ Verify
+ Register On
+ Mapping
+
+ Action
+
{loading ? (
-
+
Loading...
@@ -290,12 +292,8 @@ const TerritoryManager = () => {
to={`/view/salescoordinator/${territorymanager._id}`}
>
SC
@@ -304,12 +302,8 @@ const TerritoryManager = () => {
to={`/view/principaldistributor/${territorymanager._id}`}
>
PD
@@ -318,28 +312,20 @@ const TerritoryManager = () => {
to={`/view/retaildistributor/${territorymanager._id}`}
>
- RD
+ Retailer
-
+
Edit
@@ -348,7 +334,7 @@ const TerritoryManager = () => {
handleDelete(territorymanager._id)
}
@@ -361,7 +347,7 @@ const TerritoryManager = () => {
})
) : (
-
+
No Territory Manager found!
diff --git a/src/views/configuration/MobileApp.js b/src/views/configuration/MobileApp.js
index 0f0a455..a30d5de 100644
--- a/src/views/configuration/MobileApp.js
+++ b/src/views/configuration/MobileApp.js
@@ -207,7 +207,7 @@
// className="label-100 mt-2 row ms-1"
// style={{ fontWeight: "bold" }}
// >
-// RD Mobile Application
+// Retailer Mobile Application
//
//
//