Rob H
|
c80cba7fa5
|
BPUR: Don't use master variant to update attributes. Changes to product filtering.
|
2013-07-23 10:37:50 +10:00 |
|
Rob H
|
fbb3657bdc
|
BPUR: can update master price. Test refactor and added angular ng-decimal directive
|
2013-07-23 10:37:50 +10:00 |
|
Rob H
|
731127d55c
|
WIP: Bulk Product Update Rewrite: initial acceptance testing
|
2013-07-23 10:37:50 +10:00 |
|
Rohan Mitchell
|
37a4ad3372
|
Don't 500 when setting cart order cycle to nil
|
2013-06-21 17:04:47 +10:00 |
|
Rohan Mitchell
|
ae43fd1333
|
Set distributor and order cycle in one step, avoiding validation errors. Update spec with new error messages.
|
2013-06-21 11:36:24 +10:00 |
|
Rohan Mitchell
|
72f1c52b3e
|
Update Order model distribution validation - make fully inclusive of order cycles
|
2013-06-21 11:35:42 +10:00 |
|
Rohan Mitchell
|
3386da4b4c
|
Validate distribution combination for new products added to cart
|
2013-06-21 10:39:08 +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
|
b8d0e3f49a
|
OrderPopulator decorator checks cart contents against order cycle as well as distributor
|
2013-06-20 15:13:59 +10:00 |
|
Rohan Mitchell
|
1d977de328
|
Order validation performed over both product distribution and order cycle distribution
|
2013-06-17 15:06:41 +10:00 |
|
Rohan Mitchell
|
95de78f24e
|
Tidy-ups
|
2013-06-17 10:03:00 +10:00 |
|
Rohan Mitchell
|
4e5f0b9963
|
Set potential distributor and order cycle before attempting add to cart, revert on failure
|
2013-06-14 14:57:08 +10:00 |
|
Rohan Mitchell
|
4bcae29553
|
Add specs for OrderPopulator#check_distribution_provided_for and distribution_provided_for
|
2013-06-05 15:50:20 +10:00 |
|
Rohan Mitchell
|
f4df69765d
|
Add spec for OrderPopulator#distributor_can_supply_products_in_cart
|
2013-06-05 15:09:11 +10:00 |
|
Rohan Mitchell
|
fb4f533976
|
Refactor OrderPopulator, add outside level spec
|
2013-06-05 14:44:57 +10:00 |
|
Rohan Mitchell
|
98f3197c08
|
WIP Move orders#populate logic to OrderPopulator class
|
2013-06-05 11:47:47 +10:00 |
|
Rohan Mitchell
|
54fe63e7f3
|
User can add subsequent order cycles product to cart, show order cycle selection in page header along with distributor
|
2013-05-28 16:20:58 +10:00 |
|
Rohan Mitchell
|
1b25364160
|
Cherry-pick c3b2f52: Cache DistributorChangeValidator#all_available_distributors, move Enterprise#available_variants into SQLland - massive render speed improvement
Conflicts:
app/models/enterprise.rb
lib/open_food_web/distribution_change_validator.rb
|
2013-05-28 13:01:07 +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
|
e3a419993c
|
Work around order cycles not having fees / shipping methods yet - notify bugsnag and provide an undefined shipping method
|
2013-05-27 13:00:12 +10:00 |
|
Rohan Mitchell
|
c3b2f52b7a
|
Cache DistributorChangeValidator#all_available_distributors, move Enterprise#available_variants into SQLland - massive render speed improvement
|
2013-05-20 21:16:43 +10:00 |
|
Rohan Mitchell
|
cc2e8694f0
|
Move LineItem update to source of change (order update). On empty cart, re-instanciate shipping method adjustment, fixing no shipping fees after empty cart bug.
|
2013-05-20 15:01:04 +10:00 |
|
Rohan Mitchell
|
d65dda4dc5
|
When order distributor changes, update line item shipping method
|
2013-05-18 19:21:01 +10:00 |
|
Rohan Mitchell
|
234b2d26e9
|
Add MiGS payment gateway
|
2013-04-29 15:37:48 +10:00 |
|
Rohan Mitchell
|
32629a27e7
|
Remove explicit class specification
|
2013-04-05 16:57:53 +11:00 |
|
Rohan Mitchell
|
3aa48907a6
|
Add per-product tests for membership of distributor or order cycle
|
2013-04-05 12:45:01 +11:00 |
|
Rohan Mitchell
|
a9a58db137
|
Add spec for viewing product counts when both a distributor and an order cycle are selected, scope Spree::Product.with_order_cycles_outer joins to avoid clash when using both in_distributor and in_order_cycle in the same query
|
2013-03-15 12:17:29 +11:00 |
|
Rohan Mitchell
|
bcd545c13f
|
Alias spree_variants join to avoid name clash when loading products for home page
|
2013-03-08 17:21:18 +11:00 |
|
Rohan Mitchell
|
e326e590db
|
Implement and use scopes for finding products by distributor via order cycle or product distribution
|
2013-03-08 15:18:53 +11:00 |
|
Rohan Mitchell
|
884dbd5de6
|
Keep old methods available for product distribution queries
|
2013-03-08 15:18:52 +11:00 |
|
Rohan Mitchell
|
ebf1c8602f
|
Write new query for Product#in_distributor that queries order cycles instead of product_distributions
|
2013-03-08 15:18:52 +11:00 |
|
Rohan Mitchell
|
3aa44c3e9a
|
Setting a remote distributor clears the order cycle, and vice versa
|
2013-03-08 15:17:23 +11:00 |
|
Rohan Mitchell
|
63f3504b81
|
Add order cycle reference to orders
|
2013-03-08 15:15:15 +11:00 |
|
Rob H
|
612017f143
|
WIP Upgrade to Spree 1.3
|
2013-02-05 15:01:45 +11:00 |
|
Rob H
|
f7890bd94d
|
Fixes following code review for checkout changes
|
2013-01-18 19:17:55 +11:00 |
|
Rob H
|
8a37b4e918
|
Push validation logic for changing distributor down into lib class
|
2012-12-14 11:02:01 +11:00 |
|
Rob H
|
46abc2fc42
|
Add ability to change distributor based on whether products in the cart are available
|
2012-12-07 11:56:40 +11:00 |
|
Rob H
|
43248aee99
|
Add can_change_distributor validation to the Order model
|
2012-11-28 09:17:05 +11:00 |
|
Rohan Mitchell
|
580486a347
|
Do not show duplicate products with in_supplier_or_distributor scope
|
2012-11-10 12:26:41 +11:00 |
|
Rohan Mitchell
|
3a116dc13d
|
Fix product filtering on supplier and distributor pages
|
2012-11-01 16:37:12 +11:00 |
|
Rohan Mitchell
|
d927906934
|
Update admin views, tests pass
|
2012-11-01 08:36:40 +11:00 |
|
Rohan Mitchell
|
4c2debba7e
|
Model specs pass
|
2012-10-28 18:00:15 +11:00 |
|
Rohan Mitchell
|
c700d9e71b
|
Create enterprise model, integrate functionality from supplier
|
2012-10-28 13:24:26 +11:00 |
|
Rohan Mitchell
|
c46019d68c
|
WIP: Move Supplier, Distributor, DistributorSet and ProductDistribution models out of Spree namespace
|
2012-10-25 10:45:39 +11:00 |
|
Rohan Mitchell
|
5b025a6cba
|
Make group_buy_unit_size accessible
|
2012-10-18 15:15:54 +11:00 |
|
Rohan Mitchell
|
d09123eb22
|
Do not show suppliers with no products in stock
|
2012-10-17 07:36:18 +11:00 |
|
Rob H
|
1709083d8f
|
Merge branch 'master' of github.com:andrewspinks/openfoodweb
|
2012-10-10 15:45:42 +11:00 |
|
Rohan Mitchell
|
2535e3965b
|
When merging orders, set distributor when target order distributor is nil
|
2012-10-09 08:42:29 +11:00 |
|
Rohan Mitchell
|
568d948cbe
|
Destroy incomplete orders if they can't be merged, prevents that order unexpectedly appearing in cart after checkout. Also ensure all orders have a shipping method.
|
2012-10-05 12:09:53 +10:00 |
|
Rob H
|
3b8c41840f
|
Merge branch 'master' of github.com:andrewspinks/openfoodweb
Conflicts:
app/models/spree/line_item_decorator.rb
db/migrate/20120919013335_add_shipping_method_to_line_items.rb
|
2012-10-03 10:27:19 +10:00 |
|