diff --git a/App/pelagia-portal/app/api/po/[id]/export/route.ts b/App/pelagia-portal/app/api/po/[id]/export/route.ts index 7e13578..f018790 100644 --- a/App/pelagia-portal/app/api/po/[id]/export/route.ts +++ b/App/pelagia-portal/app/api/po/[id]/export/route.ts @@ -355,8 +355,8 @@ export async function GET(request: NextRequest, { params }: Props) { ws.getRow(SIG_ROW + 1).height = 14; ws.getRow(SIG_ROW + 2).height = 14; - // Left sig block (submitter) - sc(SIG_ROW, 1, po.submitter.name, { font: fBold, border: { top: thin(), left: thin(), right: thin() }, align: alignC }); + // Left sig block (approver — the manager who authorized the PO) + sc(SIG_ROW, 1, approvedBy || po.submitter.name, { font: fBold, border: { top: thin(), left: thin(), right: thin() }, align: alignC }); ws.mergeCells(`A${SIG_ROW}:D${SIG_ROW}`); sc(SIG_ROW + 1, 1, "Authorized Signatory & Stamp", { font: fSmall, border: { left: thin(), right: thin() }, align: alignC }); ws.mergeCells(`A${SIG_ROW + 1}:D${SIG_ROW + 1}`); @@ -636,7 +636,7 @@ export async function GET(request: NextRequest, { params }: Props) {