Merge pull request 'fixed bugs' (#177) from temp/bug-fix-250226 into main

Reviewed-on: Pozomind/pozo-retail-app#177
This commit is contained in:
karthikalakshmi 2026-02-25 16:27:53 +05:30
commit e1b9d1d83e
7 changed files with 166 additions and 155 deletions

View File

@ -3262,7 +3262,7 @@ const ComboEditQtyAndRate = (props) => {
min="0"
onChange={(e) => quantityValidation(e.target.value)}
onBlur={() => {
if (Quantity && Quantity.trim() !== '') {
if (Quantity && String(Quantity || '').trim() !== '') {
AddProductQuantity();
}
}}

View File

@ -33,6 +33,7 @@ import { DropDowns } from '../../../../Components/Forms/DropDown.jsx';
import { Messages } from '../../../../Components/Notifications/Messages.jsx';
import '../../../../Styles/BookingScreen/Components/UtillComponents/BSNavBarDragItems.scss';
import { getTemplateData } from '../../../../Features/ThemeChange/ThemeChange.js';
import { capitalizeFirstLetter } from '../../../../utils/calculations.js';
const BSNavBarDragItems = ({
type,
@ -199,7 +200,7 @@ const BSNavBarDragItems = ({
draggingComponent === item.name ? 'selected' : ''
}
>
{item.name}
{capitalizeFirstLetter(item.name)}
</button>
))}
</div>
@ -319,7 +320,7 @@ const BSNavBarDragItems = ({
)}
</Draggable>
))
: 'NO data Found'}
: 'No Data Found'}
{provided.placeholder}
</div>
)}

View File

@ -55,6 +55,7 @@ function PaymentOptions({ setModalOpen }) {
const [paymentMode, setPaymentMode] = useState([]);
const [BusinessUpiModes, setBusinessUpiModes] = useState([]);
const [paymentGatewayMode, setPaymentGatewayMode] = useState([]);
console.log(paymentOptions, "paymentOptions", BusinessUpiModes)
const [paymentDeviceMode, setPaymentDeviceMode] = useState([]);
const [selectedConfigs, setSelectedConfigs] = useState({
salesDetails: [],
@ -421,7 +422,6 @@ function PaymentOptions({ setModalOpen }) {
BranchId: BranchId,
DetailType: 'BU',
};
ALERT('HIH');
const Businessupidetails = await dispatch(
getPaymentUPIDetails(BusiData)
).unwrap();
@ -864,8 +864,7 @@ function PaymentOptions({ setModalOpen }) {
{configDetails?.some((detail) =>
detail?.optionDetails?.some((opt) => opt.optionName === configName)
) &&
modeOptions.length > 0 &&
(configName === 'Business Upi' && section === 'kioskSales' ? (
modeOptions.length > 0 ? (configName === 'Business Upi' && section === 'kioskSales' ? (
<Radio.Group
value={getSelectedRadioValue()}
onChange={(e) => {
@ -951,7 +950,7 @@ function PaymentOptions({ setModalOpen }) {
</div>
);
})
))}
)) : <div style={{ color: '#c71b1d' }}>No payment methods available</div>}
</div>
);
};

View File

@ -121,7 +121,7 @@ const StockReceived = ({ productDetails, editable = true, onDataChange }) => {
<th className="tableheaderSR">Products</th>
<th className="tableheaderSR">Category</th>
<th className="tableheaderSR">Sub Category</th>
<th className="tableheaderSR">Varient</th>
<th className="tableheaderSR">Variant</th>
<th className="tableheaderSR">Received Qty</th>
<th className="tableheaderSR-accepted">Accepted Qty</th>
</tr>

View File

@ -333,6 +333,7 @@
width: 8rem !important;
height: 6rem !important;
}
.BSItemCard-itemName {
width: 60px !important;
font-size: 10px;
@ -407,6 +408,7 @@
.BkPrdCardDeActive {
// pointer-events: none;
border: 1px solid #f10000;
// border-radius: 8px;
.BSItemCard-container-smallimage {
width: 10.9rem;
@ -816,6 +818,7 @@
.Payment-loader1 {
.Payment-loader {
// column-gap: 1rem;
.contener_mixte {
top: 5px;
@ -1019,6 +1022,7 @@
gap: 1.7rem !important;
overflow: scroll;
height: 100%;
scrollbar-width: none;
@media (max-width: 500px) {
gap: 0.5rem !important;
@ -1660,6 +1664,7 @@
color: #ffffff;
border-color: #f44336;
cursor: not-allowed;
&:hover {
color: #c90b0b;
background-color: #ffff;
@ -1676,6 +1681,7 @@
background-color: #ffe8bf;
color: #5f4204;
border-color: #ff9800;
&:hover {
background-color: #5f4204;
color: #ffe8bf;

View File

@ -3,3 +3,8 @@ export const calculateOverAllQtyLimit = (orders) => {
return acc + (cartItem?.OrderQty || 0);
}, 0)
}
export const capitalizeFirstLetter = (text) => {
if (!text) return '';
return text.charAt(0).toUpperCase() + text.slice(1);
};