Merge branch 'upgrade_Expense' of https://git.marcoaiot.com/admin/marco.pms.web into Issues_Expense_2W
This commit is contained in:
commit
697b9ec6bf
@ -152,14 +152,22 @@ const EmpAttendance = ({ employee }) => {
|
|||||||
</form>
|
</form>
|
||||||
</FormProvider>
|
</FormProvider>
|
||||||
</>
|
</>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="table-responsive text-nowrap">
|
<div className="table-responsive text-nowrap">
|
||||||
{!loading && data.length === 0 && (
|
{!loading && data.length === 0 && (
|
||||||
<span style={{ fontSize: "0.9rem" }}>
|
<div
|
||||||
No attendance record found in selected date range
|
className="d-flex justify-content-center align-items-center"
|
||||||
</span>
|
style={{ minHeight: "40vh" }}
|
||||||
|
>
|
||||||
|
<p className="text-secondary mb-0">
|
||||||
|
No data for this date range. Please choose another.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
||||||
{isError && <div className="text-center">{error.message}</div>}
|
{isError && <div className="text-center">{error.message}</div>}
|
||||||
{loading && !data && <div className="text-center">Loading...</div>}
|
{loading && !data && <div className="text-center">Loading...</div>}
|
||||||
{data && data.length > 0 && (
|
{data && data.length > 0 && (
|
||||||
|
|||||||
@ -519,7 +519,7 @@ function ManagePaymentRequest({ closeModal, requestToEdit = null }) {
|
|||||||
? "Please Wait..."
|
? "Please Wait..."
|
||||||
: requestToEdit
|
: requestToEdit
|
||||||
? "Update"
|
? "Update"
|
||||||
: "Submit"}
|
: "Save as Draft"}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@ -145,7 +145,7 @@ export const defaultPRActionValues = {
|
|||||||
paidById: null,
|
paidById: null,
|
||||||
tdsPercentage: "0",
|
tdsPercentage: "0",
|
||||||
baseAmount: null,
|
baseAmount: null,
|
||||||
taxAmount: null,
|
taxAmount: "0",
|
||||||
};
|
};
|
||||||
|
|
||||||
export const RequestedExpenseSchema = z.object({
|
export const RequestedExpenseSchema = z.object({
|
||||||
|
|||||||
@ -416,7 +416,6 @@ const ViewPaymentRequest = ({ requestId }) => {
|
|||||||
name="paidAt"
|
name="paidAt"
|
||||||
control={control}
|
control={control}
|
||||||
minDate={data?.createdAt}
|
minDate={data?.createdAt}
|
||||||
maxDate={new Date()}
|
|
||||||
/>
|
/>
|
||||||
{errors.paidAt && (
|
{errors.paidAt && (
|
||||||
<small className="danger-text">
|
<small className="danger-text">
|
||||||
@ -522,7 +521,7 @@ const ViewPaymentRequest = ({ requestId }) => {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
) : (!data?.isExpenseCreated && data?.expenseStatus.id === EXPENSE_PROCESSED) ? (
|
) : (!data?.isExpenseCreated && !data?.isAdvancePayment) && (data?.expenseStatus.id === EXPENSE_PROCESSED) ? (
|
||||||
<div className="text-end flex-wrap gap-2 my-2 mt-3">
|
<div className="text-end flex-wrap gap-2 my-2 mt-3">
|
||||||
<button
|
<button
|
||||||
className="btn btn-sm btn-primary"
|
className="btn btn-sm btn-primary"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user