Skip to content
Extraits de code Groupes Projets
Valider c6c615ed rédigé par chaimaa hassoune's avatar chaimaa hassoune
Parcourir les fichiers

add price range to varible product

parent c47e8ec0
Branches
1 requête de fusion!486MS-67/add price range to variable product
Pipeline #14497 réussi avec l'étape
in 4 minutes et 52 secondes
......@@ -212,7 +212,7 @@ export default function UserCartTableRow({
<Box sx={{ marginTop: 1 }}>
{item.source === "LIVE"
? `Session de Vente: #${item.sessionOrderId}`
: "Source inconue"}
: " "}
</Box>
</>
}
......
......@@ -19,9 +19,15 @@ type ParamsProps = {
};
export function RenderCellPrice({ params }: ParamsProps) {
return <>{fCurrency(params.row.regularPrice)}</>;
const { minPrice, maxPrice, regularPrice } = params.row;
if (minPrice !== undefined && maxPrice !== undefined && minPrice !== maxPrice) {
return <>{`${fCurrency(minPrice)}${fCurrency(maxPrice)}`}</>;
}
else {
return <>{fCurrency(regularPrice)}</>;
}
}
export function RenderCellPuchasePrice({ params }: ParamsProps) {
return <>{fCurrency(params.row.purchasePrice)}</>;
}
......
......@@ -220,6 +220,9 @@ export interface IProductListItem {
material: string;
supplierName : string;
supplierRef : string;
priceRangeDisplay : string;
minPrice : number;
maxPrice : number;
}
export type ProductWithCustomResponse = {
......
0% ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter