diff --git a/src/app/api/v1/quotes/[id]/pdf/route.ts b/src/app/api/v1/quotes/[id]/pdf/route.ts index 497d701..4e6d962 100644 --- a/src/app/api/v1/quotes/[id]/pdf/route.ts +++ b/src/app/api/v1/quotes/[id]/pdf/route.ts @@ -345,10 +345,9 @@ export async function POST( // Pick partial vs full based on whether every priced item is // ready to send. `ready` is the array of priced, has-supplier // items (defined earlier in the validation block). - const targetStatus = - ready.length === allItems.length - ? "approval_pending" - : "partial_approval_pending"; + const targetStatus = !isNoQuote && ready.length !== allItems.length + ? "partial_approval_pending" + : "approval_pending"; await pb.collection("quotes").update(quoteId, { status: targetStatus, pdf_generated_at: pdfGeneratedAt,