Skip to content

#5568 Fix kit allocation/deallocation history display direction (fixes #5568)#5628

Open
rodrigovirgilio wants to merge 2 commits into
rubyforgood:mainfrom
rodrigovirgilio:fix/kit-allocation-history-display
Open

#5568 Fix kit allocation/deallocation history display direction (fixes #5568)#5628
rodrigovirgilio wants to merge 2 commits into
rubyforgood:mainfrom
rodrigovirgilio:fix/kit-allocation-history-display

Conversation

@rodrigovirgilio

Copy link
Copy Markdown

Resolves #5568

Description

KitAllocateEvent/KitDeallocateEvent mix directions within a single event (components move one way, the kit item moves the other), and the kit's own line item is always last in the array. The history view derived From/To and quantity sign from the first item, which picked the component's direction instead of the kit's — showing kit counts negative and under the wrong location column. Now derives direction from the kit's line item for these two event types; underlying inventory math is untouched.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Screenshots

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.

Rework history for kit allocations to be more intuitive

1 participant