Luis Ramos
|
ee66e37521
|
Move adjuster, estimator, packer and prioritizer to order management engine
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
83974a832c
|
Move Coordinator from Spree::Stock to OrderManagement::Stock
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
b487185a65
|
Remove package factory, it is no longer needed, we can just call the Package class in the two places where it is used
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
f0b3ed0d79
|
Merge Spree::Stock::Package into OrderManagement::Stock::Package
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
1b28592f58
|
Now that the stock code is on out side we can clean up!
Remove everything related to splitters (including bringing environment.rb so we remove the splitters variable from it
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
bdb40d68e9
|
Fix easy rubocop issues
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
b7255130b6
|
Bring Package from spree_core
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
0ca8b6aab6
|
Fix easy rubocop issue
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
3e14c9777e
|
Merge decorator with class brought from spree_core
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
d505fc2131
|
Bring availability validator from spree_core
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
feadbb086f
|
Adapt spec to OFN context
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
b16db2f40e
|
Fix easy rubocop issues
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
8c3b8c4db5
|
Bring estimator from spree_core
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
69b9cfbad2
|
Make packer use BasicSplitter by default
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
ccf928df12
|
Fix simple rubocop issues
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
e0f9894b7a
|
Bring packer from spree_core
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
ec50a788a6
|
Fix easy rubocop issues
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
c2ec34ab9f
|
Bring coordinator from spree_core
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
eb13595fd3
|
Fix simple rubocop issues
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
3ae2877d4e
|
Bring adjuster and prioritizer from spree_core
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
d18fec7125
|
Move Base splitter from main app models to order management engine services
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
735ee1e7ed
|
Fix simple rubocop issues
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
4fce506201
|
Bring splitter/base from spree
|
2020-07-02 21:24:14 +01:00 |
|
Matt-Yorkley
|
6afda87baf
|
Add explanatory comment on soft-deleted variant stock logic
|
2020-05-05 13:57:50 +02:00 |
|
Matt-Yorkley
|
0e429da377
|
Return zero available stock (total_on_hand) for variants that are soft-deleted
|
2020-05-05 13:57:50 +02:00 |
|
Matt-Yorkley
|
6afda141a1
|
Remove track_inventory_levels conditional
This value is always true in OFN
|
2020-04-09 09:19:37 +02:00 |
|
Matt-Yorkley
|
b3c968856b
|
Fix some rubocop issues
|
2020-04-09 09:19:37 +02:00 |
|
Matt-Yorkley
|
f959e632ea
|
Modify Spree::Stock::Quantifier to not re-fetch stock items if they are already eager-loaded
This helps to remove a big N+1 here, and will also be very helpful elsewhere in the app
|
2020-04-09 09:19:37 +02:00 |
|
Matt-Yorkley
|
f9cf826f1c
|
Bring Spree::Stock::Quantifier in to OFN
This is the original unmodified Class from Spree. Modifications added in subsequent commits.
|
2020-04-09 09:19:36 +02:00 |
|
luisramos0
|
86b0d71c7e
|
Result of rubocop auto-correct and rebuilding rubocop_manual_todo
|
2019-05-28 12:57:29 +01:00 |
|
luisramos0
|
d641705053
|
Add variant scoping to availability_validator_decorator by using line_item.scoper and moving Spree::Stock::Quantifier.can_supply? to VariantStock so that it becomes overridable
|
2018-12-21 11:33:07 +00:00 |
|
luisramos0
|
c1aeb2e9a3
|
Improve naming in availability_validator_decorator and cover it with tests
|
2018-12-20 14:26:34 +00:00 |
|
luisramos0
|
bc22b0a58e
|
Fix capping quantity to stock levels by always validating line items with quantity zero
Stock::Quantifier.can_supply? returns false for an input of zero when stock level is negative
|
2018-12-20 14:26:34 +00:00 |
|
luisramos0
|
3085e15961
|
Fix order factory by making line_item.skip_stock_check work in spree 2
|
2018-12-20 14:26:34 +00:00 |
|
luisramos0
|
88b1bb61d6
|
Fix availability validator to include inventory_units in it's validation
|
2018-12-20 14:26:34 +00:00 |
|