feat(catalog): display MRP and pre-tax base prices in catalog list and modal

This commit is contained in:
iFixKart Dev 2026-11-18 19:34:10 +05:30
parent 3c179e62d7
commit 876cf3e057
3 changed files with 10 additions and 2 deletions

View file

@ -450,3 +450,4 @@ export default function DelhiveryLogisticsPage() {
</div>
);
}

View file

@ -1291,7 +1291,8 @@ export default function ProductsPage() {
</div>
<div>
<span className="block text-xs text-muted-foreground font-semibold uppercase">Pricing Details</span>
<span className="block text-green-600 font-bold">&#8377;{v.price}</span>
<span className="block text-green-600 font-bold">&#8377;{v.price} <span className="text-[11px] font-normal text-muted-foreground">(MRP)</span></span>
<span className="block text-[11px] text-muted-foreground font-medium">Base: &#8377;{(Number(v.price) * 0.82).toFixed(2)} <span className="text-[10px]">(Excl. 18% GST)</span></span>
<div className="text-[10px] text-muted-foreground flex gap-2">
{v.compare_price && <span>Compare: &#8377;{v.compare_price}</span>}
</div>
@ -3095,7 +3096,7 @@ export default function ProductsPage() {
/>
</div>
<div>
<label className="block text-[10px] text-muted-foreground mb-1 font-semibold uppercase">Price (₹) *</label>
<label className="block text-[10px] text-muted-foreground mb-1 font-semibold uppercase">Price (₹) [MRP] *</label>
<input
type="number"
placeholder="699"
@ -3103,6 +3104,11 @@ export default function ProductsPage() {
onChange={(e) => updateVariantRow(vIdx, 'price', e.target.value)}
className="w-full px-2.5 py-1.5 bg-muted/50 border border-primary/30 crm-radius-control text-xs text-foreground font-bold"
/>
{v.price ? (
<span className="block text-[10px] text-muted-foreground mt-0.5">
Base: ₹{(Number(v.price) * 0.82).toFixed(2)} (+18% GST)
</span>
) : null}
</div>
<div>
<label className="block text-[10px] text-muted-foreground mb-1">Compare Price (₹)</label>

View file

@ -65,3 +65,4 @@ export const LogisticsHeaderNav: React.FC = () => {
</div>
);
};