Skip to content

[BUG]: Purchases. On correction screen, location should default to the location on the existing purchase, not the default location for the org. #5536

@cielf

Description

@cielf

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Currently, if you correct a purchase, the location is defaulting to the default location for the organization,

Expected Behavior

If you correct a purchase, the location should default to the location currently recorded for that purchase

Steps To Reproduce

In staging, I added an additional location, so we had 3, and changed the default donation/purchase location so that it is different from the default location.
I then entered a new purchase, using a location that was neither of the default locations.
It showed correctly in the list of purchases
I then viewed that purchase
The location showed correctly
I clicked on "correction'
The purchase showing in the drop-down as selected is the default location for the organization, not the location I entered.

Environment

Not relevant

Criteria for Completion

No response

Anything else?

If you are on the support channel, this refers to this thread: https://rubyforgood.slack.com/archives/C029TFH5873/p1769190300734459

Code of Conduct

  • I've read the Code of Conduct and understand my responsibilities as a member of the Ruby for Good community

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions