pelagia-portal/App/app/(portal)/po/[id]
Claude (auto-fix) 9adc93e54a fix(receipt): upsert Receipt record on repeat confirmations with notes
Partial-receipt flows call confirmReceipt multiple times. The nested
`create` on the Receipt relation threw a unique-constraint error on the
second call when both confirmations supplied notes, preventing any
delivery from completing and blocking attachment uploads.

Changed to `upsert` so subsequent confirmations update the existing
Receipt row's notes instead of failing.

Adds integration tests covering full receipt, partial receipt, the
upsert scenario (two confirmations each with notes), and permission guards.

Fixes #9
2026-06-19 04:01:26 +05:30
..
edit feat(po): allow submitter to set an optional PO date 2026-06-16 13:06:12 +05:30
receipt fix(receipt): upsert Receipt record on repeat confirmations with notes 2026-06-19 04:01:26 +05:30
actions.ts fix(notifications): rationalise who gets which email 2026-05-27 03:45:40 +05:30
page.tsx refactor: revert cost centre to vessels only, remove vessel-site link 2026-05-30 18:14:24 +05:30
vendor-id-form.tsx fix(ui): reset pending state on success for all save/confirm buttons 2026-05-27 04:36:29 +05:30