Luis Ramos
44872844ed
Make ship methods in sample data have the name of the enterprise so it's easier to distinguish them
2020-05-03 16:36:12 +01:00
Luis Ramos
2e4f8003b6
Fix group factory in rails 4
...
params[:address] was breaking the creation of the EnterpriseGroup
2020-03-25 15:32:16 +00:00
luisramos0
9404aacfb2
run rubocop --auto-correct
2019-11-10 18:42:43 +00:00
luisramos0
f396f6bebd
Add tax category to sample products
2019-10-27 19:59:35 +00:00
Dan Ingenthron
560fa6b949
Update shipping category factory with default
2019-10-08 18:37:16 -05:00
luisramos0
07854cf372
Fix a few problems introduced by rubocop auto correct
2019-05-28 12:57:29 +01:00
luisramos0
e2f5515412
Fix sample data by setting on_demand in the product variant, setting product.on_demand is not possible in v2
2019-03-21 13:13:50 +00:00
luisramos0
88335c7f6c
Fix sample data in v2 by adapting to the fact that shipping methods can now have multiple zones
2019-03-21 13:12:44 +00:00
luisramos0
98a262f86e
Fix sample data in v2 by setting a Default shipping category in both products and shipping methods
2019-03-21 13:12:03 +00:00
Maikel Linke
42ee4b9f42
Remove usage of ProductDistribution which is dead
...
Sample data was failing since:
https://github.com/openfoodfoundation/openfoodnetwork/pull/3570
2019-03-21 13:11:05 +00:00
luisramos0
9644fcf67c
Improve payment method factory in sample data by removing constantize
2019-03-06 10:01:17 +00:00
luisramos0
03d242c061
Fix typo in sample_data zone creation (zonEable) and added clause to avoid re-adding the same country to the zone
2019-02-27 23:19:39 +00:00
luisramos0
ad5c379771
Make sample data zone read from the environment variable CHECKOUT_ZONE
2019-02-27 09:46:18 +00:00
luisramos0
d418ca1b1f
Add mandatory payment method provider to sample data payment methods
2019-02-27 09:45:21 +00:00
Maikel Linke
6790e8895d
Create sample payment methods with current environment
2019-02-15 16:44:55 +11:00
Maikel Linke
cc46bfd002
Rename namespace to ofn
2019-02-05 16:30:46 +11:00
Maikel Linke
659aa269de
Fix creation of sample payment methods on staging
...
Due to an unknown reason my chosen way of creating calculator and
assigning it to a payment method didn't work in staging environment even
though it was working in development.
Without diving deeper into the cause of this, I decided to change the
record assignments and fix the problem that way.
2019-02-05 16:24:30 +11:00
Maikel Linke
c3029c612a
Fix sample product creation and use bang methods
...
Mistakes like the missing fee when creating product distributions were
hidden, because I didn't use the bang methods to create records.
2019-02-05 16:23:17 +11:00
Maikel Linke
1d07327325
Add descriptions to enterprises
2019-02-05 16:23:17 +11:00
Maikel Linke
4b389ba357
Move sample data factories into their own files
2019-02-05 16:23:17 +11:00
Maikel Linke
3ab02d90df
Move sample data address module to own file
2019-02-05 16:23:17 +11:00
Maikel Linke
bec9f5eb2e
Move sample data logger to own module
2019-02-05 16:23:17 +11:00