Description
When a Reimbursement Request is submitted, automatically link any selected materials to the RR and update their status to "Ready to Order".
Acceptance Criteria
-
When RR is created/submitted, for each product that has a materialId:
- Update the material's reimbursementRequestId to the created RR's ID
- Update the material's status to "READY_TO_ORDER"
-
Multiple materials can be linked to the same RR (multiple products)
-
Materials without a linked RR product remain unchanged
-
Non-project products (string-based) are not affected
-
Changes are transactional - if RR creation fails, material updates are rolled back