Skip to content

[BOM Improvements] - Add "Create RR" Button for Materials Without Linked RR #3893

@wavehassman

Description

@wavehassman

Description

In the BOM table's "RR #" column, for materials that don't have a linked Reimbursement Request, display a "Create RR" button that navigates to the RR creation form with pre-filled data.

Acceptance Criteria

  • For materials without reimbursementRequestId: shows "Create RR" button in RR # column

  • Button styling is consistent

  • Clicking button navigates to the Reimbursement Request creation page

  • RR form is pre-filled with:

    • Project selected as the category
    • Material selected in the autocomplete
    • Price pre-filled as quantity * unit price (if both fields exist)
    • If quantity or price is missing, price field is left empty
  • User can modify any pre-filled values before submitting

  • Form validation still works normally

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions