Will Marshall
6e36142809
Making some changes to the data on the products inventory page
2013-12-13 11:39:45 +11:00
Will Marshall
7bc754a598
Adding filtering to the products page
2013-11-28 13:44:21 +11:00
Will Marshall
fbe0e2cc29
Basic plumbing for the Customers in place
2013-11-22 16:22:44 +11:00
Will Marshall
beb6110bc3
Fixing up a bug in the aggregate filtering
2013-11-21 15:04:33 +11:00
Will Marshall
612a80ec15
A little refactoring, some comment removal
2013-11-21 14:28:23 +11:00
Will Marshall
d703e1836f
Working build of P&I report
2013-11-21 14:06:24 +11:00
Will Marshall
e853c1275e
Working filters for Product&Inventory Report
2013-11-21 11:25:37 +11:00
Will Marshall
ca16314535
Working scopes for child variant and master variants
2013-11-20 14:11:22 +11:00
Will Marshall
84346c7fbd
Starting specing P&I Report
2013-11-20 13:59:02 +11:00
Rohan Mitchell
59935619e3
Rename OrderCycle#distributed_variants_by to variants_distributed_by
2013-11-15 14:34:05 +11:00
Rohan Mitchell
d73af509e0
When removing exchanges from an order cycle, compare by id only. Avoids erroneously removing exchanges where another attr has changed in an unimportant way.
2013-11-15 12:09:26 +11:00
Rohan Mitchell
89f93cae77
Rename namespaced includes from open_food_web to open_food_network
2013-10-18 17:43:18 +11:00
Rohan Mitchell
57f7d489ff
Rename OpenFoodWeb namespace to OpenFoodNetwork
2013-10-18 17:29:55 +11:00
Rohan Mitchell
8e269353a8
Rename all open_food_web dirs to open_food_network
2013-10-18 17:19:47 +11:00
Rohan Mitchell
2f73161421
Move patch to address class - much simpler
2013-09-18 07:14:21 +10:00
Rohan Mitchell
56590e2f4a
Instrument saving spree addresses with invalid values in an attempt to track down the cause of some invalid records finding their way into the database
2013-09-17 18:06:06 +10:00
David Cook
4f9c7fb601
Remove distributor_id from payment method and update tests
2013-09-13 16:58:19 +10:00
David Cook
bf3c5c6dd6
Merge branch 'master' into reports-completed-only
...
Conflicts:
app/controllers/spree/admin/reports_controller_decorator.rb
2013-08-30 16:42:00 +10:00
David Cook
b2878ddc40
Payment Method must belong to a Distributor
2013-08-21 15:14:01 +10:00
Rohan Mitchell
7fc0787e36
OrderCycleFormApplicator sets exchange fees
2013-08-16 10:22:29 +10:00
Rohan Mitchell
f3447f2898
Remove shipping method field from product distributions
2013-08-13 10:14:51 +10:00
Rohan Mitchell
43f482a803
Remove use of deprecated rspec syntax
2013-08-13 09:11:26 +10:00
Rohan Mitchell
ec3e00c128
Refactor LineItem and clients for new fields
2013-08-06 13:47:17 +10:00
Andrew Spinks
7cb054f430
Merge branch 'master' into order-cycle-selection
...
Conflicts:
Gemfile
Gemfile.lock
app/controllers/spree/orders_controller_decorator.rb
app/models/enterprise.rb
app/models/spree/order_decorator.rb
app/views/spree/checkout/_other_available_distributors.html.erb
app/views/spree/products/_add_to_cart.html.haml
lib/open_food_web/distributor_change_validator.rb
spec/spec_helper.rb
2013-07-23 14:42:57 +10:00
David Cook
8017d79de4
remove report tests (will test scope not_state instead)
2013-07-22 17:17:18 +10:00
Rohan Mitchell
7b1d1f1d42
Add FeatureToggle config to replace ENV['OFW_DEPLOYMENT']
2013-07-22 12:11:52 +10:00
Rohan Mitchell
cfcc8c3fb2
Fix DistributionChangeValidator#variants_available_for_distribution: Do not show products distributed through a different order cycle
2013-06-21 10:34:39 +10:00
Rohan Mitchell
12fb43e268
DistributionChangeValidator returns an empty array when distributor and order cycle are both nil
2013-06-17 16:01:10 +10:00
Rohan Mitchell
705af41684
DistributionChangeValidator finds variants distributed by product distribution when order cycle is nil
2013-06-17 15:06:20 +10:00
Rohan Mitchell
be29974dd8
DistributionChangeValidator checks if an order can change to a specified new distributION
2013-06-17 15:00:19 +10:00
Rohan Mitchell
17103a8b0c
Remove DistributionChangeValidator#can_change_distributor? method
2013-06-17 14:00:39 +10:00
David Cook
7381163023
test for cancelled orders in order and distributor report
2013-06-12 15:19:45 +10:00
Rohan Mitchell
cbeffaced1
Configure Travis, remove spork, add simplecov, add turbo sprokets.
...
Add travis config
(cherry picked from commit e3fdb12289 )
Only build on Ruby 1.9.3
(cherry picked from commit 719ef386bf )
Exclude pry from CI build
(cherry picked from commit d60935c800 )
Conflicts:
Gemfile
Attempt 2
(cherry picked from commit 2b19253895 )
Conflicts:
Gemfile.lock
Configure travis for postgres
(cherry picked from commit 3a441cd7d9 )
Fix migrations that fail because of coupling to changed/removed models
(cherry picked from commit b030793f15 )
Set up xvfb for Travis
(cherry picked from commit cdc3ab09a1 )
Add a failing test to test travis
(cherry picked from commit 72aa8fe5e5 )
Revert "Add a failing test to test travis"
This reverts commit 72aa8fe5e5 .
(cherry picked from commit bd5533e2b1 )
Add simplecov
(cherry picked from commit 5089d3bb22 )
Conflicts:
Gemfile.lock
Add turbo sprockets for faster asset precompile
(cherry picked from commit 3e6c56a638 )
Remove spork
(cherry picked from commit ed7bded642 )
Conflicts:
spec/spec_helper.rb
Remove more spork-specific things, remove unused cuc config from zeus
(cherry picked from commit fa11ff8982 )
Ensure order decorator is required, fix test fragility
(cherry picked from commit 1e94f88c5e )
2013-06-07 16:23:24 +10:00
Rohan Mitchell
1e94f88c5e
Ensure order decorator is required, fix test fragility
2013-06-07 15:40:03 +10:00
Rohan Mitchell
661ce4e597
Add to cart page does not allow the user to add a product from an order cycle that cannot supply the cart's products
2013-06-04 10:26:13 +10:00
Rohan Mitchell
fbac41b060
Add DistributionChangeValidator#available_order_cycles, analagous to available_distributors
2013-05-28 13:51:52 +10:00
Rohan Mitchell
fb5c050b48
Refactor DistributionChangeValidator#available_distributors specs
2013-05-28 13:44:17 +10:00
Rohan Mitchell
11755346ce
DistributionChangeValidator finds available order cycles for a product
2013-05-28 13:40:13 +10:00
Rohan Mitchell
46fd94eded
Fix minor test fail
2013-05-28 13:01:48 +10:00
Rohan Mitchell
0e08829a29
Rename DistributorChangeValidator to DistributionChangeValidator in preparation for expansion to include order cycles
2013-05-28 12:32:52 +10:00
Rohan Mitchell
a2abcaf7bd
Push product_compatible_with_current_order and available_distributors_for down to DistributorChangeValidator, add tests
2013-05-27 13:50:33 +10:00
Rohan Mitchell
a21783c814
Allow changing distributor when there are alternate distributors available that can service the cart's order
2013-05-27 13:11:30 +10:00
Rohan Mitchell
f66ff0f8b1
Rename Enterprise#available_variants to distributed_variants to remove ambiguity between supplied/distributed variants
2013-04-05 16:51:51 +11:00
Rohan Mitchell
f95c6a2386
Extract stub building into private method
2013-04-05 14:11:31 +11:00
Rohan Mitchell
e735a709bf
SplitProductsByDistribution deals with order cycles, and is tested by stubs
2013-04-05 14:05:30 +11:00
Rohan Mitchell
cf4fe269d1
Add specs for splitting products by various distribution options
2013-04-05 11:41:37 +11:00
Rohan Mitchell
b3976bfbd0
Rename SplitProductsByDistributor to SplitProductsByDistribution
2013-04-05 11:08:19 +11:00
Rohan Mitchell
711f769bcd
Remove QueriesProductDistribution - replaced by Product and Enterprise scopes
2013-03-08 16:57:54 +11:00
Rohan Mitchell
265336b70c
When looking up distributors for sidebar, include both those in ProductDistributions and in OrderCycles
2013-03-08 15:18:53 +11:00
Rohan Mitchell
bd5533e2b1
Revert "Add a failing test to test travis"
...
This reverts commit 72aa8fe5e5 .
2013-02-24 20:22:37 +11:00