luisramos0
|
86b0d71c7e
|
Result of rubocop auto-correct and rebuilding rubocop_manual_todo
|
2019-05-28 12:57:29 +01:00 |
|
luisramos0
|
2cc8a0e9e3
|
Fix models/variant_override_spec by setting mandatory on_demand true when count_on_hand is nil
|
2019-01-08 15:32:10 +00:00 |
|
luisramos0
|
e28f9a7c84
|
Merge branch 'master' into 2-0-stable-jan-8th
|
2019-01-08 14:29:50 +00:00 |
|
Kristina Lim
|
34313c94ca
|
Make reset stock settings for VO force limited stock
|
2018-12-09 21:47:05 +08:00 |
|
Kristina Lim
|
83b6973bc2
|
Require compatible VO on_demand and count_on_hand
|
2018-12-07 14:39:36 +08:00 |
|
luisramos0
|
d962358f15
|
Fix rubocop and transpec models/variant_override and its spec
|
2018-11-30 00:43:55 +00:00 |
|
luisramos0
|
0577011f5b
|
Refactor variant override model and its spec: simplify move_stock and remove unused methods
|
2018-11-30 00:22:04 +00:00 |
|
niko
|
3ae38178a3
|
Move query from variant_overrides_controller to its model scope
|
2018-10-04 02:43:02 +02:00 |
|
Pierre de Lacroix
|
f67a8c1f2d
|
Add tests
|
2017-12-01 13:37:24 +11:00 |
|
Rob Harrington
|
348ab81c42
|
Overriding #increment! using variant overrides
|
2017-05-05 14:20:57 +10:00 |
|
Rohan Mitchell
|
422061f137
|
Merge branch 'master' into products-caching
Conflicts:
app/controllers/shop_controller.rb
app/models/enterprise_fee.rb
app/models/order_cycle.rb
app/models/variant_override.rb
db/schema.rb
lib/open_food_network/products_renderer.rb
spec/lib/open_food_network/products_renderer_spec.rb
|
2016-03-03 09:42:52 +11:00 |
|
Rob Harrington
|
4bf27982f4
|
Applying variant override permissions when they are added or removed
Also remove variant overrides with revoked permissions from the default scope
|
2016-03-02 12:10:49 +11:00 |
|
Rohan Mitchell
|
5f188650d8
|
Trigger cache refresh on VariantOverride save/destroy
|
2016-02-24 15:05:01 +11:00 |
|
Steve Pettitt
|
e423e890e0
|
Changed name enable_reset to resettable in Variant Overrides table & updated views, specs accordingly
|
2016-01-15 09:07:50 +11:00 |
|
Steve Pettitt
|
0ee078e232
|
Added toggle to enable/disable reset stock. Updated specs
|
2016-01-15 09:07:48 +11:00 |
|
Rob Harrington
|
53d97dab08
|
WIP: Adding view and routes for resetting variant_overrides count_on_hand
|
2016-01-15 09:07:48 +11:00 |
|
Rohan Mitchell
|
aa0a031fa0
|
Fetch indexed variant overrides in one go
|
2015-06-18 15:03:24 +10:00 |
|
Rohan Mitchell
|
97e49c2bdb
|
Replace 'array.sort.should == expected.sort' pattern with match_array
|
2015-05-28 10:46:08 +10:00 |
|
Rohan Mitchell
|
a4d4622521
|
Add VariantOverride.decrement_stock
|
2015-01-12 10:39:23 +11:00 |
|
Rohan Mitchell
|
20f650b472
|
Add VariantOverride.stock_overriden?
|
2015-01-12 09:32:02 +11:00 |
|
Rohan Mitchell
|
f5ee9ba2f3
|
VariantOverride looks up count_on_hand
|
2014-12-18 10:21:07 +11:00 |
|
Rohan Mitchell
|
91c500417b
|
Swap param order
|
2014-12-17 08:55:27 +11:00 |
|
Rohan Mitchell
|
ff28da345d
|
Find variant overrides for some hubs
|
2014-12-12 13:33:12 +11:00 |
|
Rohan Mitchell
|
f9b4c07219
|
Add initial VariantOverride model with price lookup
|
2014-11-21 13:49:09 +11:00 |
|