Skip to content

[1.7.x] Record the quantity actually moved when a transfer exceeds stock (#13295) - #13300

Merged
SchrodingersGat merged 1 commit into
1.7.xfrom
backport/1.7.x/pr-13295
Nov 16, 2026
Merged

SchrodingersGat merged 1 commit into
1.7.xfrom
backport/1.7.x/pr-13295

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from master to 1.7.x:

Questions ?

Please refer to the Backport tool documentation

)

Requesting a transfer quantity larger than the stock item quantity moves
the entire item, but the tracking entry recorded the requested quantity.
Clamp the quantity to the item quantity before recording the event.

Fixes #13259

Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit dfc5ca9)
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed stock Related to Stock models labels Nov 16, 2026
@SchrodingersGat SchrodingersGat added this to the 1.7.3 milestone Nov 16, 2026
@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.02%. Comparing base (3701f52) to head (ffc1c54).
⚠️ Report is 1 commits behind head on 1.7.x.

Additional details and impacted files
@@           Coverage Diff           @@
##            1.7.x   #13300   +/-   ##
=======================================
  Coverage   87.01%   87.02%           
=======================================
  Files        1566     1566           
  Lines      111584   111597   +13     
  Branches    12071    12071           
=======================================
+ Hits        97097    97113   +16     
+ Misses      14421    14418    -3     
  Partials       66       66           
Flag Coverage Δ
backend 91.35% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 92.85% <100.00%> (+<0.01%) ⬆️
Backend General 94.96% <ø> (ø)
Frontend 79.66% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat
SchrodingersGat merged commit de4ce76 into 1.7.x Nov 16, 2026
41 of 42 checks passed
@SchrodingersGat
SchrodingersGat deleted the backport/1.7.x/pr-13295 branch November 16, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Identifies a bug which needs to be addressed stock Related to Stock models

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants