diff --git a/App/pelagia-portal/components/po/po-detail.tsx b/App/pelagia-portal/components/po/po-detail.tsx
index 558e15d..71ec1eb 100644
--- a/App/pelagia-portal/components/po/po-detail.tsx
+++ b/App/pelagia-portal/components/po/po-detail.tsx
@@ -194,8 +194,22 @@ export async function PoDetail({ po, currentUserId, currentRole, readOnly = fals
Vendor
- Name
- {po.vendor.name}
- - Vendor ID
- {po.vendor.vendorId ?? Not assigned}
- {po.vendor.gstin && - GSTIN
- {po.vendor.gstin}
}
+
+
- Vendor ID
+ -
+ {po.vendor.vendorId ?? (
+
+ Not assigned
+
+ )}
+
+
+ {po.vendor.gstin && (
+
+
- GSTIN
+ - {po.vendor.gstin}
+
+ )}
{po.vendor.address && - Address
- {po.vendor.address}
}
{(po.vendor.contactName || po.vendor.contactMobile || po.vendor.contactEmail) && (
diff --git a/App/pelagia-portal/lib/utils.ts b/App/pelagia-portal/lib/utils.ts
index 5ad136e..c79ea91 100644
--- a/App/pelagia-portal/lib/utils.ts
+++ b/App/pelagia-portal/lib/utils.ts
@@ -6,10 +6,12 @@ export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
-export function formatCurrency(amount: number | string, currency = "INR"): string {
- return new Intl.NumberFormat("en-IN", { style: "currency", currency }).format(
- Number(amount)
- );
+export function formatCurrency(amount: number | string, _currency = "INR"): string {
+ const formatted = new Intl.NumberFormat("en-IN", {
+ minimumFractionDigits: 2,
+ maximumFractionDigits: 2,
+ }).format(Number(amount));
+ return `₹${formatted}`;
}
export function formatDate(date: Date | string): string {