Merge pull request 'Fix #116 Remove Condition for Price change is less than selling price' (#115) from Feb-6-Newdeployment into main
Reviewed-on: Pozomind/pozo-retail-app#115
This commit is contained in:
commit
d75d106b2a
|
|
@ -3393,19 +3393,19 @@ const [RadioBtnSelection, setRadioBtnSelection] = useState(() => {
|
|||
const enteredDiscount = parseFloat(data?.target.value);
|
||||
|
||||
if (limit === null || limit === undefined || limit === 0) {
|
||||
if (
|
||||
parseFloat(enteredDiscount) < parseFloat(sellingPrice) ||
|
||||
parseFloat(enteredDiscount) === parseFloat(sellingPrice)
|
||||
) {
|
||||
// if (
|
||||
// parseFloat(enteredDiscount) < parseFloat(sellingPrice) ||
|
||||
// parseFloat(enteredDiscount) === parseFloat(sellingPrice)
|
||||
// ) {
|
||||
setEditedPrice(enteredDiscount);
|
||||
setDisableSubmitButton(true);
|
||||
} else {
|
||||
setMessageType('error');
|
||||
setMessageData('Please Give less than value for sell price');
|
||||
setDisableSubmitButton(false);
|
||||
setEditedPrice(0);
|
||||
formRef.current?.resetFields();
|
||||
}
|
||||
// } else {
|
||||
// setMessageType('error');
|
||||
// setMessageData('Please Give less than value for sell price');
|
||||
// setDisableSubmitButton(false);
|
||||
// setEditedPrice(0);
|
||||
// formRef.current?.resetFields();
|
||||
// }
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue