+ {preferenceshortcutkey && (
+
+
+
+ )}
+
+
{Customisebillno &&
}
{SessionData?.FeatureAddonData?.FeatureDtls?.find(
(item) => item?.FeatureAddonName?.toLowerCase() === 'kiosk sales'
diff --git a/src/Pages/Product/ProductForm.jsx b/src/Pages/Product/ProductForm.jsx
index 1ee090d..ce32a4d 100644
--- a/src/Pages/Product/ProductForm.jsx
+++ b/src/Pages/Product/ProductForm.jsx
@@ -127,7 +127,7 @@ const ProductForm = ({ formType }) => {
UomTypePreference?.some?.(
(e) =>
e?.PreferredSubCatName?.toLowerCase() ==
- item?.ConfigName?.toLowerCase() && e?.PreferredStatus == 'Y'
+ item?.ConfigName?.toLowerCase() && e?.PreferredStatus == 'Y'
)
);
console.log(UomTypePreference, 'UomTypePreference');
@@ -820,7 +820,10 @@ const ProductForm = ({ formType }) => {
};
const handleInput = async (val) => {
// normalize whether we receive an event (e.target.value) or a raw string
- const inputVal = val && val.target && typeof val.target.value === 'string' ? val.target.value : val;
+ const inputVal =
+ val && val.target && typeof val.target.value === 'string'
+ ? val.target.value
+ : val;
if (!inputVal) return;
if (inputVal.length >= 5) {
@@ -1138,7 +1141,7 @@ const ProductForm = ({ formType }) => {
(item) =>
parseFloat(item.MRP) === parseFloat(subVariantPriceData?.MRP) &&
parseFloat(item.SellPrice) ===
- parseFloat(subVariantPriceData?.SellPrice) &&
+ parseFloat(subVariantPriceData?.SellPrice) &&
//dhana 18-02-2025
item.ProdVariantName == subVariantPriceData?.ProdVariantName
);
@@ -1153,20 +1156,20 @@ const ProductForm = ({ formType }) => {
SellPrice: subVariantPriceData?.SellPrice,
WhSalePrice:
subVariantPriceData?.WhSalePrice == undefined ||
- subVariantPriceData?.WhSalePrice == null ||
- subVariantPriceData?.WhSalePrice == ''
+ subVariantPriceData?.WhSalePrice == null ||
+ subVariantPriceData?.WhSalePrice == ''
? 0
: subVariantPriceData?.WhSalePrice,
OfferPrice:
subVariantPriceData?.OfferPrice == undefined ||
- subVariantPriceData?.OfferPrice == null ||
- subVariantPriceData?.OfferPrice == ''
+ subVariantPriceData?.OfferPrice == null ||
+ subVariantPriceData?.OfferPrice == ''
? 0
: subVariantPriceData?.OfferPrice,
SpecialPrice:
subVariantPriceData?.SpecialPrice == undefined ||
- subVariantPriceData?.SpecialPrice == null ||
- subVariantPriceData?.SpecialPrice == ''
+ subVariantPriceData?.SpecialPrice == null ||
+ subVariantPriceData?.SpecialPrice == ''
? 0
: subVariantPriceData?.SpecialPrice,
InwardDtlId: null,
@@ -1222,20 +1225,20 @@ const ProductForm = ({ formType }) => {
SellPrice: subVariantPriceData?.SellPrice,
WhSalePrice:
subVariantPriceData?.WhSalePrice == undefined ||
- subVariantPriceData?.WhSalePrice == null ||
- subVariantPriceData?.WhSalePrice == ''
+ subVariantPriceData?.WhSalePrice == null ||
+ subVariantPriceData?.WhSalePrice == ''
? 0
: subVariantPriceData?.WhSalePrice,
OfferPrice:
subVariantPriceData?.OfferPrice == undefined ||
- subVariantPriceData?.OfferPrice == null ||
- subVariantPriceData?.OfferPrice == ''
+ subVariantPriceData?.OfferPrice == null ||
+ subVariantPriceData?.OfferPrice == ''
? 0
: subVariantPriceData?.OfferPrice,
SpecialPrice:
subVariantPriceData?.SpecialPrice == undefined ||
- subVariantPriceData?.SpecialPrice == null ||
- subVariantPriceData?.SpecialPrice == ''
+ subVariantPriceData?.SpecialPrice == null ||
+ subVariantPriceData?.SpecialPrice == ''
? 0
: subVariantPriceData?.SpecialPrice,
InwardDtlId: null,
@@ -1301,20 +1304,20 @@ const ProductForm = ({ formType }) => {
SellPrice: subVariantPriceData?.SellPrice,
WhSalePrice:
subVariantPriceData?.WhSalePrice == undefined ||
- subVariantPriceData?.WhSalePrice == null ||
- subVariantPriceData?.WhSalePrice == ''
+ subVariantPriceData?.WhSalePrice == null ||
+ subVariantPriceData?.WhSalePrice == ''
? 0
: subVariantPriceData?.WhSalePrice,
OfferPrice:
subVariantPriceData?.OfferPrice == undefined ||
- subVariantPriceData?.OfferPrice == null ||
- subVariantPriceData?.OfferPrice == ''
+ subVariantPriceData?.OfferPrice == null ||
+ subVariantPriceData?.OfferPrice == ''
? 0
: subVariantPriceData?.OfferPrice,
SpecialPrice:
subVariantPriceData?.SpecialPrice == undefined ||
- subVariantPriceData?.SpecialPrice == null ||
- subVariantPriceData?.SpecialPrice == ''
+ subVariantPriceData?.SpecialPrice == null ||
+ subVariantPriceData?.SpecialPrice == ''
? 0
: subVariantPriceData?.SpecialPrice,
InwardDtlId: null,
@@ -1369,20 +1372,20 @@ const ProductForm = ({ formType }) => {
SellPrice: subVariantPriceData?.SellPrice,
WhSalePrice:
subVariantPriceData?.WhSalePrice == undefined ||
- subVariantPriceData?.WhSalePrice == null ||
- subVariantPriceData?.WhSalePrice == ''
+ subVariantPriceData?.WhSalePrice == null ||
+ subVariantPriceData?.WhSalePrice == ''
? 0
: subVariantPriceData?.WhSalePrice,
OfferPrice:
subVariantPriceData?.OfferPrice == undefined ||
- subVariantPriceData?.OfferPrice == null ||
- subVariantPriceData?.OfferPrice == ''
+ subVariantPriceData?.OfferPrice == null ||
+ subVariantPriceData?.OfferPrice == ''
? 0
: subVariantPriceData?.OfferPrice,
SpecialPrice:
subVariantPriceData?.SpecialPrice == undefined ||
- subVariantPriceData?.SpecialPrice == null ||
- subVariantPriceData?.SpecialPrice == ''
+ subVariantPriceData?.SpecialPrice == null ||
+ subVariantPriceData?.SpecialPrice == ''
? 0
: subVariantPriceData?.SpecialPrice,
InwardDtlId: null,
@@ -1451,17 +1454,17 @@ const ProductForm = ({ formType }) => {
(item) =>
parseFloat(item.MRP) === parseFloat(subVariantPriceData?.MRP) &&
parseFloat(item.SellPrice) ===
- parseFloat(subVariantPriceData?.SellPrice)
+ parseFloat(subVariantPriceData?.SellPrice)
);
if (
existsData?.length == 0 ||
(parseFloat(variantPriceData[variantEditIndex]?.MRP) ===
parseFloat(subVariantPriceData?.MRP) &&
parseFloat(variantPriceData[variantEditIndex]?.SellPrice) ===
- parseFloat(subVariantPriceData?.SellPrice) &&
+ parseFloat(subVariantPriceData?.SellPrice) &&
//dhana 18-02-2025
variantPriceData[variantEditIndex]?.ProdVariantName ==
- subVariantPriceData?.ProdVariantName)
+ subVariantPriceData?.ProdVariantName)
) {
let editVariantData = [...variantPriceData];
if (
@@ -1479,20 +1482,20 @@ const ProductForm = ({ formType }) => {
SellPrice: subVariantPriceData?.SellPrice,
WhSalePrice:
subVariantPriceData?.WhSalePrice == undefined ||
- subVariantPriceData?.WhSalePrice == null ||
- subVariantPriceData?.WhSalePrice == ''
+ subVariantPriceData?.WhSalePrice == null ||
+ subVariantPriceData?.WhSalePrice == ''
? 0
: subVariantPriceData?.WhSalePrice,
OfferPrice:
subVariantPriceData?.OfferPrice == undefined ||
- subVariantPriceData?.OfferPrice == null ||
- subVariantPriceData?.OfferPrice == ''
+ subVariantPriceData?.OfferPrice == null ||
+ subVariantPriceData?.OfferPrice == ''
? 0
: subVariantPriceData?.OfferPrice,
SpecialPrice:
subVariantPriceData?.SpecialPrice == undefined ||
- subVariantPriceData?.SpecialPrice == null ||
- subVariantPriceData?.SpecialPrice == ''
+ subVariantPriceData?.SpecialPrice == null ||
+ subVariantPriceData?.SpecialPrice == ''
? 0
: subVariantPriceData?.SpecialPrice,
InwardDtlId: editVariantData[variantEditIndex]?.InwardDtlId,
@@ -1506,20 +1509,20 @@ const ProductForm = ({ formType }) => {
SellPrice: subVariantPriceData?.SellPrice,
WhSalePrice:
subVariantPriceData?.WhSalePrice == undefined ||
- subVariantPriceData?.WhSalePrice == null ||
- subVariantPriceData?.WhSalePrice == ''
+ subVariantPriceData?.WhSalePrice == null ||
+ subVariantPriceData?.WhSalePrice == ''
? 0
: subVariantPriceData?.WhSalePrice,
OfferPrice:
subVariantPriceData?.OfferPrice == undefined ||
- subVariantPriceData?.OfferPrice == null ||
- subVariantPriceData?.OfferPrice == ''
+ subVariantPriceData?.OfferPrice == null ||
+ subVariantPriceData?.OfferPrice == ''
? 0
: subVariantPriceData?.OfferPrice,
SpecialPrice:
subVariantPriceData?.SpecialPrice == undefined ||
- subVariantPriceData?.SpecialPrice == null ||
- subVariantPriceData?.SpecialPrice == ''
+ subVariantPriceData?.SpecialPrice == null ||
+ subVariantPriceData?.SpecialPrice == ''
? 0
: subVariantPriceData?.SpecialPrice,
InwardDtlId: editVariantData[variantEditIndex]?.InwardDtlId,
@@ -1647,20 +1650,20 @@ const ProductForm = ({ formType }) => {
SellPrice: row?.SellPrice,
WhSalePrice:
row?.WhSalePrice == undefined ||
- row?.WhSalePrice == null ||
- row?.WhSalePrice == ''
+ row?.WhSalePrice == null ||
+ row?.WhSalePrice == ''
? 0
: row?.WhSalePrice,
OfferPrice:
row?.OfferPrice == undefined ||
- row?.OfferPrice == null ||
- row?.OfferPrice == ''
+ row?.OfferPrice == null ||
+ row?.OfferPrice == ''
? 0
: row?.OfferPrice,
SpecialPrice:
row?.SpecialPrice == undefined ||
- row?.SpecialPrice == null ||
- row?.SpecialPrice == ''
+ row?.SpecialPrice == null ||
+ row?.SpecialPrice == ''
? 0
: row?.SpecialPrice,
InwardDtlId: row?.InwardDtlId,
@@ -1674,20 +1677,20 @@ const ProductForm = ({ formType }) => {
SellPrice: row?.SellPrice,
WhSalePrice:
row?.WhSalePrice == undefined ||
- row?.WhSalePrice == null ||
- row?.WhSalePrice == ''
+ row?.WhSalePrice == null ||
+ row?.WhSalePrice == ''
? 0
: row?.WhSalePrice,
OfferPrice:
row?.OfferPrice == undefined ||
- row?.OfferPrice == null ||
- row?.OfferPrice == ''
+ row?.OfferPrice == null ||
+ row?.OfferPrice == ''
? 0
: row?.OfferPrice,
SpecialPrice:
row?.SpecialPrice == undefined ||
- row?.SpecialPrice == null ||
- row?.SpecialPrice == ''
+ row?.SpecialPrice == null ||
+ row?.SpecialPrice == ''
? 0
: row?.SpecialPrice,
InwardDtlId: row?.InwardDtlId,
@@ -1824,14 +1827,14 @@ const ProductForm = ({ formType }) => {
postData['InwardDate'] = new Date().toJSON();
postData['AutoGenerateQr'] =
values?.QRCode === undefined ||
- values?.QRCode === null ||
- values?.QRCode === ''
+ values?.QRCode === null ||
+ values?.QRCode === ''
? QrcodeAuto
: 'N';
postData['AutoGenerateSingleQr'] =
values?.OnePcQR === undefined ||
- values?.OnePcQR === null ||
- values?.OnePcQR === ''
+ values?.OnePcQR === null ||
+ values?.OnePcQR === ''
? QrcodeAutoSingle
: 'N';
postData['CreatedBy'] = UserId;
@@ -2189,7 +2192,6 @@ const ProductForm = ({ formType }) => {