Skip to content

[Maintenance] - Split Shipping for Reimbursement Requests #4027

@cielbellerose

Description

@cielbellerose

Description

Add a "split shipping" $ value input box in the create reimbursement request form. This will allow users to set one value for shipping costs and it will divide itself across projects. It will do this by onSubmit creating a product called "Shipping" for each existing project, and this will have the value of the split shipping input divided by the number of projects.

Currently if users have shipping costs for a reimbursement request (ex: they ordered a bunch of different items at once) they have to manually split up the shipping cost between each project.

Notes

When the user clicks submit on the split shipping input, then the "Shipping" products are created. If the user then adds more projects after submitting, it won't automatically calculate splits and make another "Shipping" product. The user would have to delete the already added ones and click submit again for it to recalculate.

Should be only a frontend feature

Acceptance Criteria

  • split shipping input box - below purchased items but above total cost in reimbursement request create form
  • also added to edit reimbursement request
  • adding a value to the input box and clicking submit creates 1 "Shipping" product for each project with that value divided by the number of projects
  • not a required field

Screenshots

Image

Imagine there was a box right above total cost. If we inputted 9 dollars for shipping, then each project above would add a 3 dollar item labeled "Shipping" and the values would now read 13, 8, 23.

Metadata

Metadata

Assignees

Type

Projects

Status

Under Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions