solidus icon indicating copy to clipboard operation
solidus copied to clipboard

Bug/backorder status when track inventory false

Open nspinazz89 opened this issue 5 years ago • 1 comments

Description

This PR resolves #2817 which makes orders permanently backordered when splitting. It simply checks when the config option track inventory levels is false and coerces the value of inventory units to be on hand.

Another potential option would be to have inventory on hand levels set to infinity (in the code, not the db) when the config option is false.

Checklist:

  • [x] I have followed Pull Request guidelines
  • [x] I have added a detailed description into each commit message
  • [x] I have updated Guides and README accordingly to this change (if needed)
  • [x] I have added tests to cover this change (if needed)

nspinazz89 avatar Sep 19 '19 16:09 nspinazz89

👍

octave avatar Mar 24 '20 22:03 octave

Checking if this is still a bug. Locally the provided specs are not failing to remove the change to the fulfillment changer class. Just pushed the spec only to see if we are still effected. If everything is green, we can close this without merging.

kennyadsl avatar Feb 17 '23 14:02 kennyadsl

Codecov Report

Merging #3338 (de85741) into master (5525671) will increase coverage by 0.01%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #3338      +/-   ##
==========================================
+ Coverage   86.70%   86.71%   +0.01%     
==========================================
  Files         578      578              
  Lines       14688    14700      +12     
==========================================
+ Hits        12735    12747      +12     
  Misses       1953     1953              
Impacted Files Coverage Δ
.../app/controllers/spree/api/shipments_controller.rb 93.13% <ø> (ø)
core/app/models/spree/fulfilment_changer.rb 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codecov[bot] avatar Feb 17 '23 14:02 codecov[bot]

I can reproduce the failing spec. Will push an update soon.

kennyadsl avatar Feb 17 '23 15:02 kennyadsl

I pushed an updated version with more unit specs and the implementation of this suggestion.

kennyadsl avatar Feb 17 '23 17:02 kennyadsl