pelagia-portal/App/app/(portal)
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
..
admin fix(profile+vendors): profile reachable for all roles incl SSO; submitter vendor creation 2026-06-08 18:53:33 +05:30
approvals fix(inventory): add items to inventory on PO approval, not on closure 2026-06-19 03:15:56 +05:30
dashboard refactor: revert cost centre to vessels only, remove vessel-site link 2026-05-30 18:14:24 +05:30
history refactor: revert cost centre to vessels only, remove vessel-site link 2026-05-30 18:14:24 +05:30
inventory fix(profile+vendors): profile reachable for all roles incl SSO; submitter vendor creation 2026-06-08 18:53:33 +05:30
my-orders fix(my-orders): correct closed PO filters for manager and submitter 2026-06-19 03:34:21 +05:30
payments feat(payments): compulsory payment date when Accounts records payment 2026-06-10 08:59:25 +05:30
po fix(receipt): upsert Receipt record on repeat confirmations with notes 2026-06-19 04:01:26 +05:30
profile fix(profile+vendors): profile reachable for all roles incl SSO; submitter vendor creation 2026-06-08 18:53:33 +05:30
layout.tsx chore: restructure repo — flatten App/pelagia-portal to App, rename Prototype→Wireframe and Spec→Design 2026-05-18 23:18:58 +05:30