feat(catalog): display MRP and pre-tax base prices in catalog list and modal
This commit is contained in:
parent
3c179e62d7
commit
876cf3e057
3 changed files with 10 additions and 2 deletions
|
|
@ -450,3 +450,4 @@ export default function DelhiveryLogisticsPage() {
|
|||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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">₹{v.price}</span>
|
||||
<span className="block text-green-600 font-bold">₹{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: ₹{(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: ₹{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>
|
||||
|
|
|
|||
|
|
@ -65,3 +65,4 @@ export const LogisticsHeaderNav: React.FC = () => {
|
|||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue