From 9d1496a3bf9ebcc6c8b1f5826354c9733b9af6a6 Mon Sep 17 00:00:00 2001 From: Hardik Date: Fri, 15 May 2026 00:21:18 +0530 Subject: [PATCH] fix(po): split T&C Others into editable + read-only fixed line TC_FIXED_LINE_2 added for the packaging/asbestos clause, rendered as read-only item 8 (same style as item 1) in both the New PO and Edit PO forms. Others (item 7) now initialises empty instead of carrying the fixed text. Co-Authored-By: Claude Sonnet 4.6 --- .../app/(portal)/po/[id]/edit/edit-po-form.tsx | 7 +++++-- App/pelagia-portal/app/(portal)/po/new/new-po-form.tsx | 7 +++++-- App/pelagia-portal/lib/validations/po.ts | 5 ++++- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/App/pelagia-portal/app/(portal)/po/[id]/edit/edit-po-form.tsx b/App/pelagia-portal/app/(portal)/po/[id]/edit/edit-po-form.tsx index 16d61d3..4f55793 100644 --- a/App/pelagia-portal/app/(portal)/po/[id]/edit/edit-po-form.tsx +++ b/App/pelagia-portal/app/(portal)/po/[id]/edit/edit-po-form.tsx @@ -6,7 +6,7 @@ import { updatePo } from "./actions"; import type { Vessel, Account, Vendor, PurchaseOrder } from "@prisma/client"; import { LineItemsEditor } from "@/components/po/po-line-items-editor"; import type { LineItemInput } from "@/lib/validations/po"; -import { TC_DEFAULTS, TC_FIXED_LINE } from "@/lib/validations/po"; +import { TC_DEFAULTS, TC_FIXED_LINE, TC_FIXED_LINE_2 } from "@/lib/validations/po"; const INPUT_CLS = "w-full rounded-lg border border-neutral-300 px-3 py-2.5 text-sm focus:border-primary-500 focus:outline-none focus:ring-2 focus:ring-primary-500/20"; @@ -231,10 +231,13 @@ export function EditPoForm({ po, vessels, accounts, vendors }: Props) {