You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working on #2014 we found that we would like to restore the old Spree API to access and modify count_on_hand values. Even though that database column doesn't exist any more, we can pass all calls to the new default stock location.
Expected Behavior
OFN code can still use the following methods on Variant:
count_on_hand
count_on_hand=
on_hand
on_hand=
Actual Behavior
With Spree 2, these methods are gone and our calls fail.
Steps to Reproduce
The following specs fail explicitly because of on_hand methods missing. But a lot of them because of Spree::Product.on_hand, not Varaint.
Description
Working on #2014 we found that we would like to restore the old Spree API to access and modify
count_on_hand
values. Even though that database column doesn't exist any more, we can pass all calls to the new default stock location.Expected Behavior
OFN code can still use the following methods on
Variant
:count_on_hand
count_on_hand=
on_hand
on_hand=
Actual Behavior
With Spree 2, these methods are gone and our calls fail.
Steps to Reproduce
The following specs fail explicitly because of on_hand methods missing. But a lot of them because of
Spree::Product.on_hand
, not Varaint.Here are the non-feature specs with Variant.on_hand failing:
The text was updated successfully, but these errors were encountered: