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:
commit
e1b9d1d83e
|
|
@ -3262,7 +3262,7 @@ const ComboEditQtyAndRate = (props) => {
|
||||||
min="0"
|
min="0"
|
||||||
onChange={(e) => quantityValidation(e.target.value)}
|
onChange={(e) => quantityValidation(e.target.value)}
|
||||||
onBlur={() => {
|
onBlur={() => {
|
||||||
if (Quantity && Quantity.trim() !== '') {
|
if (Quantity && String(Quantity || '').trim() !== '') {
|
||||||
AddProductQuantity();
|
AddProductQuantity();
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ import { DropDowns } from '../../../../Components/Forms/DropDown.jsx';
|
||||||
import { Messages } from '../../../../Components/Notifications/Messages.jsx';
|
import { Messages } from '../../../../Components/Notifications/Messages.jsx';
|
||||||
import '../../../../Styles/BookingScreen/Components/UtillComponents/BSNavBarDragItems.scss';
|
import '../../../../Styles/BookingScreen/Components/UtillComponents/BSNavBarDragItems.scss';
|
||||||
import { getTemplateData } from '../../../../Features/ThemeChange/ThemeChange.js';
|
import { getTemplateData } from '../../../../Features/ThemeChange/ThemeChange.js';
|
||||||
|
import { capitalizeFirstLetter } from '../../../../utils/calculations.js';
|
||||||
|
|
||||||
const BSNavBarDragItems = ({
|
const BSNavBarDragItems = ({
|
||||||
type,
|
type,
|
||||||
|
|
@ -199,7 +200,7 @@ const BSNavBarDragItems = ({
|
||||||
draggingComponent === item.name ? 'selected' : ''
|
draggingComponent === item.name ? 'selected' : ''
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{item.name}
|
{capitalizeFirstLetter(item.name)}
|
||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -319,7 +320,7 @@ const BSNavBarDragItems = ({
|
||||||
)}
|
)}
|
||||||
</Draggable>
|
</Draggable>
|
||||||
))
|
))
|
||||||
: 'NO data Found'}
|
: 'No Data Found'}
|
||||||
{provided.placeholder}
|
{provided.placeholder}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@ function PaymentOptions({ setModalOpen }) {
|
||||||
const [paymentMode, setPaymentMode] = useState([]);
|
const [paymentMode, setPaymentMode] = useState([]);
|
||||||
const [BusinessUpiModes, setBusinessUpiModes] = useState([]);
|
const [BusinessUpiModes, setBusinessUpiModes] = useState([]);
|
||||||
const [paymentGatewayMode, setPaymentGatewayMode] = useState([]);
|
const [paymentGatewayMode, setPaymentGatewayMode] = useState([]);
|
||||||
|
console.log(paymentOptions, "paymentOptions", BusinessUpiModes)
|
||||||
const [paymentDeviceMode, setPaymentDeviceMode] = useState([]);
|
const [paymentDeviceMode, setPaymentDeviceMode] = useState([]);
|
||||||
const [selectedConfigs, setSelectedConfigs] = useState({
|
const [selectedConfigs, setSelectedConfigs] = useState({
|
||||||
salesDetails: [],
|
salesDetails: [],
|
||||||
|
|
@ -421,7 +422,6 @@ function PaymentOptions({ setModalOpen }) {
|
||||||
BranchId: BranchId,
|
BranchId: BranchId,
|
||||||
DetailType: 'BU',
|
DetailType: 'BU',
|
||||||
};
|
};
|
||||||
ALERT('HIH');
|
|
||||||
const Businessupidetails = await dispatch(
|
const Businessupidetails = await dispatch(
|
||||||
getPaymentUPIDetails(BusiData)
|
getPaymentUPIDetails(BusiData)
|
||||||
).unwrap();
|
).unwrap();
|
||||||
|
|
@ -864,8 +864,7 @@ function PaymentOptions({ setModalOpen }) {
|
||||||
{configDetails?.some((detail) =>
|
{configDetails?.some((detail) =>
|
||||||
detail?.optionDetails?.some((opt) => opt.optionName === configName)
|
detail?.optionDetails?.some((opt) => opt.optionName === configName)
|
||||||
) &&
|
) &&
|
||||||
modeOptions.length > 0 &&
|
modeOptions.length > 0 ? (configName === 'Business Upi' && section === 'kioskSales' ? (
|
||||||
(configName === 'Business Upi' && section === 'kioskSales' ? (
|
|
||||||
<Radio.Group
|
<Radio.Group
|
||||||
value={getSelectedRadioValue()}
|
value={getSelectedRadioValue()}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
|
|
@ -951,7 +950,7 @@ function PaymentOptions({ setModalOpen }) {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
))}
|
)) : <div style={{ color: '#c71b1d' }}>No payment methods available</div>}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ const StockReceived = ({ productDetails, editable = true, onDataChange }) => {
|
||||||
<th className="tableheaderSR">Products</th>
|
<th className="tableheaderSR">Products</th>
|
||||||
<th className="tableheaderSR">Category</th>
|
<th className="tableheaderSR">Category</th>
|
||||||
<th className="tableheaderSR">Sub 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">Received Qty</th>
|
||||||
<th className="tableheaderSR-accepted">Accepted Qty</th>
|
<th className="tableheaderSR-accepted">Accepted Qty</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
|
|
@ -333,6 +333,7 @@
|
||||||
width: 8rem !important;
|
width: 8rem !important;
|
||||||
height: 6rem !important;
|
height: 6rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.BSItemCard-itemName {
|
.BSItemCard-itemName {
|
||||||
width: 60px !important;
|
width: 60px !important;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
|
|
@ -407,6 +408,7 @@
|
||||||
.BkPrdCardDeActive {
|
.BkPrdCardDeActive {
|
||||||
// pointer-events: none;
|
// pointer-events: none;
|
||||||
border: 1px solid #f10000;
|
border: 1px solid #f10000;
|
||||||
|
|
||||||
// border-radius: 8px;
|
// border-radius: 8px;
|
||||||
.BSItemCard-container-smallimage {
|
.BSItemCard-container-smallimage {
|
||||||
width: 10.9rem;
|
width: 10.9rem;
|
||||||
|
|
@ -816,6 +818,7 @@
|
||||||
|
|
||||||
.Payment-loader1 {
|
.Payment-loader1 {
|
||||||
.Payment-loader {
|
.Payment-loader {
|
||||||
|
|
||||||
// column-gap: 1rem;
|
// column-gap: 1rem;
|
||||||
.contener_mixte {
|
.contener_mixte {
|
||||||
top: 5px;
|
top: 5px;
|
||||||
|
|
@ -1019,6 +1022,7 @@
|
||||||
gap: 1.7rem !important;
|
gap: 1.7rem !important;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
scrollbar-width: none;
|
||||||
|
|
||||||
@media (max-width: 500px) {
|
@media (max-width: 500px) {
|
||||||
gap: 0.5rem !important;
|
gap: 0.5rem !important;
|
||||||
|
|
@ -1660,6 +1664,7 @@
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
border-color: #f44336;
|
border-color: #f44336;
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: #c90b0b;
|
color: #c90b0b;
|
||||||
background-color: #ffff;
|
background-color: #ffff;
|
||||||
|
|
@ -1676,6 +1681,7 @@
|
||||||
background-color: #ffe8bf;
|
background-color: #ffe8bf;
|
||||||
color: #5f4204;
|
color: #5f4204;
|
||||||
border-color: #ff9800;
|
border-color: #ff9800;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: #5f4204;
|
background-color: #5f4204;
|
||||||
color: #ffe8bf;
|
color: #ffe8bf;
|
||||||
|
|
|
||||||
|
|
@ -3,3 +3,8 @@ export const calculateOverAllQtyLimit = (orders) => {
|
||||||
return acc + (cartItem?.OrderQty || 0);
|
return acc + (cartItem?.OrderQty || 0);
|
||||||
}, 0)
|
}, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const capitalizeFirstLetter = (text) => {
|
||||||
|
if (!text) return '';
|
||||||
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue