Merge pull request 'Item card Price display issue' (#186) from Uomdisplayinprint into main

Reviewed-on: Pozomind/pozo-retail-app#186
This commit is contained in:
karthikalakshmi 2026-02-26 12:30:21 +05:30
commit 3b569b5d84
1 changed files with 4 additions and 4 deletions

View File

@ -5182,7 +5182,7 @@ const BSItemCard = (props) => {
if (preferenceSingleSales && item.OnePcsAvailable === 'Y') {
return (
item?.ProductDetail?.[0]?.ProdVariantDetails?.[0]?.StockDetails?.[0]
?.OnePcsPrice || null
?.OnePcsPrice || 0
);
// OnePcsPrice
}
@ -5200,7 +5200,7 @@ const BSItemCard = (props) => {
return firstVariantDetails;
} else {
// Handle the case where no variant satisfies the condition
return null; // or any other value you want to return
return 0; // or any other value you want to return
}
};
const ItemMRP = (item) => {
@ -5209,7 +5209,7 @@ const BSItemCard = (props) => {
if (preferenceSingleSales && item.OnePcsAvailable === 'Y') {
return (
item?.ProductDetail?.[0]?.ProdVariantDetails?.[0]?.StockDetails?.[0]
?.OnePcsPrice || null
?.OnePcsPrice || 0
);
// OnePcsPrice
}
@ -5227,7 +5227,7 @@ const BSItemCard = (props) => {
return firstVariantDetails;
} else {
// Handle the case where no variant satisfies the condition
return null; // or any other value you want to return
return 0; // or any other value you want to return
}
};
const ItemSize = (item) => {