Skip to content

4027-split-shipping#4091

Open
Steph375 wants to merge 5 commits intodevelopfrom
4027-split-shipping
Open

4027-split-shipping#4091
Steph375 wants to merge 5 commits intodevelopfrom
4027-split-shipping

Conversation

@Steph375
Copy link
Contributor

@Steph375 Steph375 commented Mar 25, 2026

Changes

Adding split shipping field to reimbursement requests. I left total cost the same it includes the shipping but I can also put like a separate shipping cost if wanted (last screenshot).

Screenshots

Screenshot 2026-03-25 224906 Screenshot 2026-03-25 224915

(updated photos)

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No yarn.lock changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #4027

@Steph375 Steph375 self-assigned this Mar 25, 2026
Copy link
Contributor

@cielbellerose cielbellerose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks so good but why light mode

<FormHelperText error>{errors.accountCodeId?.message}</FormHelperText>
</FormControl>

{/* Total Shipping */}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I imagined this down in the Purchased Items area but I agree with you - it does look better up here. maybe we could move it below description though so its a little closer to the products section? I feel like using this I would be scrolling back and forth a lot


const shippingCents = baseShippingCents + (index < remainderCents ? 1 : 0);

updatedProducts.push({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rn if we add two products to the same project it adds two shipping costs, I think Nathan wanted the cost split evenly over projects (and if it was huge difference in # of products they could fix $ manually)

onClick={() => removeProduct(product.index)}
onClick={() => {
removeProduct(product.index);
setTimeout(() => applySplitShippingToProducts(Number(totalShipping)), 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if a value is present for Total Shipping, we can't delete any of the split shipping items (might be useful if one project doesn't need the shipping costs). I think the issue happens when a shipping product is removed here, applySplitShippingToProducts is called again which then recreates the shipping items. they could always set the value to 0 but it might be nice to fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Maintenance] - Split Shipping for Reimbursement Requests

2 participants