diff --git a/src/components/DailyProgressRport/TaskReportList.jsx b/src/components/DailyProgressRport/TaskReportList.jsx index f812937c..5e9cf12d 100644 --- a/src/components/DailyProgressRport/TaskReportList.jsx +++ b/src/components/DailyProgressRport/TaskReportList.jsx @@ -147,13 +147,13 @@ const TaskReportList = () => { data-bs-placement="left" data-bs-html="true" data-bs-content={` -
+
${task.teamMembers .map( (m) => ` -
-
- +
+
+ ${m?.firstName?.charAt(0) || ""}${m?.lastName?.charAt(0) || "" } diff --git a/src/components/Expenses/Filelist.jsx b/src/components/Expenses/Filelist.jsx index 36a48565..eb606e7b 100644 --- a/src/components/Expenses/Filelist.jsx +++ b/src/components/Expenses/Filelist.jsx @@ -119,7 +119,7 @@ export const FileView = ({ file, viewFile }) => { {file.fileName} - + {" "} {file.fileSize ? formatFileSize(file.fileSize) : ""} diff --git a/src/components/Expenses/PreviewDocument.jsx b/src/components/Expenses/PreviewDocument.jsx index 142ee65c..5d5b1b59 100644 --- a/src/components/Expenses/PreviewDocument.jsx +++ b/src/components/Expenses/PreviewDocument.jsx @@ -110,7 +110,7 @@ const PreviewDocument = ({ files = [] }) => {
{ label: "Name", getValue: (org) => (
- + { onOpen({ startStep: 3, orgData: row }) } > - +
diff --git a/src/components/PaymentRequest/ActionPaymentRequest.jsx b/src/components/PaymentRequest/ActionPaymentRequest.jsx index 52222b55..3c380d0a 100644 --- a/src/components/PaymentRequest/ActionPaymentRequest.jsx +++ b/src/components/PaymentRequest/ActionPaymentRequest.jsx @@ -191,16 +191,16 @@ const ActionPaymentRequest = ({ requestId }) => { {IsPaymentProcess && nextStatusWithPermission?.length > 0 && ( <> {isProccesed ? ( -
-

+
+

diff --git a/src/components/PaymentRequest/PaymentRequestList.jsx b/src/components/PaymentRequest/PaymentRequestList.jsx index 1cd1b3bb..e7def165 100644 --- a/src/components/PaymentRequest/PaymentRequestList.jsx +++ b/src/components/PaymentRequest/PaymentRequestList.jsx @@ -307,7 +307,7 @@ const PaymentRequestList = ({ filters, filterData, removeFilterChip, clearFilter data-bs-toggle="tooltip" data-bs-offset="0,8" data-bs-placement="top" - data-bs-custom-class="tooltip-dark" + data-bs-custom-className="tooltip-dark" title="More Action" > diff --git a/src/components/Project/ProjectOrganization/ProjectAssignedOrgs.jsx b/src/components/Project/ProjectOrganization/ProjectAssignedOrgs.jsx index e8281dfe..2c7b8859 100644 --- a/src/components/Project/ProjectOrganization/ProjectAssignedOrgs.jsx +++ b/src/components/Project/ProjectOrganization/ProjectAssignedOrgs.jsx @@ -15,7 +15,7 @@ const ProjectAssignedOrgs = () => { label: "Organization Name", getValue: (org) => (
- + { data-bs-trigger="focus" data-bs-placement="right" data-bs-html="true" - data-bs-content={`
${perm.description}
`} + data-bs-content={`
${perm.description}
`} >   { +const DeliverChallanList = ({ purchaseId, viewDocuments }) => { const { data, isLoading, isError, error } = useDeliverChallane(purchaseId); if (isLoading) { return ( -
+
); @@ -56,7 +56,7 @@ const DeliverChallanList = ({ purchaseId }) => {

{item.attachment?.preSignedUrl && ( - + )}
diff --git a/src/components/purchase/DeliveryChallane.jsx b/src/components/purchase/DeliveryChallane.jsx index 834f049d..d3448977 100644 --- a/src/components/purchase/DeliveryChallane.jsx +++ b/src/components/purchase/DeliveryChallane.jsx @@ -21,9 +21,11 @@ import SingleFileUploader from "../common/SigleFileUploader"; import { localToUtc } from "../../utils/appUtils"; import WarningBlock from "../InfoBlock/WarningBlock"; import { FILE_UPLOAD_INFO } from "../../utils/staticContent"; +import { usePurchaseContext } from "../../pages/purchase/PurchasePage"; const DeliveryChallane = ({ purchaseId }) => { const [file, setFile] = useState(null); + const {setDocumentView} = usePurchaseContext() const { register, @@ -174,14 +176,16 @@ const DeliveryChallane = ({ purchaseId }) => { />
-
- {!isUploaded && ( - - )} + {!isUploaded && }
@@ -190,7 +194,7 @@ const DeliveryChallane = ({ purchaseId }) => {

History

- +

diff --git a/src/components/purchase/PurchaseList.jsx b/src/components/purchase/PurchaseList.jsx index 5d7715b1..efbaf910 100644 --- a/src/components/purchase/PurchaseList.jsx +++ b/src/components/purchase/PurchaseList.jsx @@ -123,7 +123,16 @@ const PurchaseList = ({ searchString, isActive }) => { data?.data?.map((item, index) => ( {visibleColumns.map((col) => ( - + + setViewPurchase({ + isOpen: true, + purchaseId: item.id, + }) + } + > {col.render ? col.render(item) : item[col.key] || "NA"} ))} diff --git a/src/components/purchase/PurchasePayment.jsx b/src/components/purchase/PurchasePayment.jsx index 530110a0..121f77a5 100644 --- a/src/components/purchase/PurchasePayment.jsx +++ b/src/components/purchase/PurchasePayment.jsx @@ -20,7 +20,7 @@ import { SpinnerLoader } from "../common/Loader"; import { formatUTCToLocalTime } from "../../utils/dateUtils"; import Avatar from "../common/Avatar"; -const PurchasePayment = ({onClose, purchaseId }) => { +const PurchasePayment = ({ onClose, purchaseId }) => { const { data: Purchase, isLoading: isPurchaseLoading, @@ -93,16 +93,6 @@ const PurchasePayment = ({onClose, purchaseId }) => { size="md" name="paymentReceivedDate" control={control} - minDate={ - Purchase?.createdAt - ? new Date( - new Date(Purchase?.createdAt).setDate( - new Date(Purchase?.createdAt).getDate() + 1 - ) - ) - : null - } - maxDate={new Date()} /> {errors.paymentReceivedDate && ( @@ -283,9 +273,10 @@ const PurchasePayment = ({onClose, purchaseId }) => { {data?.length === 0 && (
- - -

You don't have any payment yet.

+ +

+ You don't have any payment yet. +

)} diff --git a/src/components/purchase/ViewPurchase.jsx b/src/components/purchase/ViewPurchase.jsx index 6cb07df8..3d5c7507 100644 --- a/src/components/purchase/ViewPurchase.jsx +++ b/src/components/purchase/ViewPurchase.jsx @@ -38,11 +38,11 @@ const ViewPurchase = ({ purchaseId }) => {

Purchase Details

-

Title:

+

Title:

{data?.title}

-

Description:

+

Description:

{data?.description}

@@ -56,31 +56,31 @@ const ViewPurchase = ({ purchaseId }) => {
{/* Project Name */}
-

Project Name:

+

Project Name:

{data?.project?.name}

{/* Organization Name */}
-

Organization:

+

Organization:

{data?.organization?.name}

{/* Email */}
-

Email:

+

Email:

{data?.organization?.email}

{/* Contact Number */}
-

Contact:

+

Contact:

{data?.organization?.contactNumber}

{/* Address */}
-

Address:

+

Address:

{data?.organization?.address}

@@ -93,31 +93,31 @@ const ViewPurchase = ({ purchaseId }) => { {/* Supplier Name */}
-

Name:

+

Name:

{data?.supplier?.name}

{/* Contact Person */}
-

Contact Person:

+

Contact Person:

{data?.supplier?.contactPerson}

{/* Email */}
-

Email:

+

Email:

{data?.supplier?.email}

{/* Contact Number */}
-

Contact:

+

Contact:

{data?.supplier?.contactNumber}

{/* Address */}
-

Address:

+

Address:

{data?.supplier?.address}

diff --git a/src/layouts/AuthLayout.jsx b/src/layouts/AuthLayout.jsx index 346fdec6..04fb22c9 100644 --- a/src/layouts/AuthLayout.jsx +++ b/src/layouts/AuthLayout.jsx @@ -24,25 +24,25 @@ const AuthLayout = () => { > {" "} {" "} diff --git a/src/pages/Home/FeatureCard.jsx b/src/pages/Home/FeatureCard.jsx index 340434b7..2f0bf5c4 100644 --- a/src/pages/Home/FeatureCard.jsx +++ b/src/pages/Home/FeatureCard.jsx @@ -10,7 +10,7 @@ const FeatureCard = ({ imagesrc, title, description }) => { alt={title} className="w-14 mb-4 feature-icon-image" /> - +
{title}
diff --git a/src/pages/Home/LandingPageOld.jsx b/src/pages/Home/LandingPageOld.jsx index df546e60..c4e3ae8f 100644 --- a/src/pages/Home/LandingPageOld.jsx +++ b/src/pages/Home/LandingPageOld.jsx @@ -67,14 +67,14 @@ const LandingPageOld = () => { -
{/* Menu logo wrapper: End */} @@ -404,11 +404,11 @@ const LandingPageOld = () => { {/* */}