diff --git a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable1/BST1Payment.jsx b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable1/BST1Payment.jsx index 6af8c08..07327ae 100644 --- a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable1/BST1Payment.jsx +++ b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable1/BST1Payment.jsx @@ -220,6 +220,7 @@ import BSCustomerSelect from '../../UtillComponents/BSSelectCustomer.jsx'; import PozoAddCustomerIcon from '../../UtillComponents/Pozo retail icons/PozoAddCustomerIcon.jsx'; import PozoCartIcon from '../../UtillComponents/PozoCartIcon.jsx'; import BSBillingTable3 from '../BSBillingTable3/BSBillingTable3.jsx'; +import useCountUp from '../../UtillComponents/useCountUp.jsx'; const subDirectory = import.meta.env.ENV_BASE_URL; const MainHomeUrl = import.meta.env.ENV_MAIN_BASE_URL; @@ -3584,6 +3585,17 @@ export default function BST1Payment() { (arr) => Array.isArray(arr) && arr.some((err) => err) ); }; + + const CountUp = useCountUp( + safeRound( + OrderType === 'Failed' + ? FailedTotalAmt + : credit && overAllBal >= 0 + ? Math.max(0, TotalAmount - overAllBal) + : TotalAmount + ) + ); + return ( <>
{orderCardDetail?.length || 0}
-{orderCardDetail?.reduce((acc, data) => data?.OrderQty + acc, 0)}
-₹{orderCardDetail?.reduce((acc, data) => parseFloat(data?.TotalAmt || 0) + acc, 0)}
--₹{(OverAllSales > 0 ? OverAllSales : 0) + - (OverAllEstimate > 0 ? OverAllEstimate : 0) + - (Discount > 0 ? Discount : 0)}
-₹{orderCardDetail?.reduce((acc, data) => parseFloat(data?.TotalAmt || 0) + acc, 0) - ((OverAllSales > 0 ? OverAllSales : 0) + - (OverAllEstimate > 0 ? OverAllEstimate : 0) + - (Discount > 0 ? Discount : 0))}
-- {isMobile ? ( - `₹ ${safeRound(OrderType === 'Failed' ? FailedTotalAmt : TotalAmount)}` - ) : ( -