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
|
6e7ee6481d
|
Fetch enterprises that are distributing a product via a product or order cycle distribution
|
2013-04-12 10:13:04 +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
|
5649a50e28
|
Add tests around Enterprise#available_variants, make it also show variants distributed via an order cycle
|
2013-04-05 16:49:27 +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
|
b25dcaa92b
|
Enterprise.active_distributors doesn't show distributors from inactive order cycles
|
2013-03-08 16:54:22 +11:00 |
|
Rohan Mitchell
|
2a890f80f4
|
Enterprise.active_distributors doesn't show distributors of out of stock products
|
2013-03-08 16:48:35 +11:00 |
|
Rohan Mitchell
|
13abf9ada7
|
Enterprise.active_distributors doesn't show distributors of unavailable products
|
2013-03-08 16:46:25 +11:00 |
|
Rohan Mitchell
|
cd61bad0b9
|
Enterprise.active_distributors doesn't show distributors of deleted products
|
2013-03-08 16:43:45 +11:00 |
|
Rohan Mitchell
|
00d7fcbfb6
|
Enterprise.active_distributors finds active distributors by order cycles
|
2013-03-08 16:39:42 +11:00 |
|
Rohan Mitchell
|
98cad56e7c
|
Enterprise.active_distributors finds active distributors by product distributions
|
2013-03-08 16:23:45 +11:00 |
|
Rohan Mitchell
|
4b642f8c90
|
Convert to 1.9 hash syntax
|
2013-03-08 15:18:53 +11:00 |
|
Rohan Mitchell
|
43843f05b1
|
WIP: Add edge case tests
|
2013-03-08 15:18:53 +11:00 |
|
Rohan Mitchell
|
d02e8fece5
|
WIP: Spec that no duplicates are shown
|
2013-03-08 15:18:53 +11:00 |
|
Rohan Mitchell
|
dd3c72199a
|
WIP: Add spec for in_order_cycle
|
2013-03-08 15:18:53 +11:00 |
|
Rohan Mitchell
|
6d6390b886
|
WIP: Spec in_supplier_or_distributor
|
2013-03-08 15:18:53 +11:00 |
|
Rohan Mitchell
|
5c64e18360
|
WIP: Refactor tests - positive and negative into single cases for easier managability
|
2013-03-08 15:18:53 +11:00 |
|
Rohan Mitchell
|
29a9526b3f
|
WIP: Add spec for in_distributor
|
2013-03-08 15:18:53 +11:00 |
|
Rohan Mitchell
|
8e1c9e7bcc
|
WIP: Add notes, put in Spree module, write in_supplier scope spec
|
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
|
a5c706d694
|
In test, create a global shipping method, which is required when creating orders
|
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
|
fe824c2d4e
|
Add order cycle active and inactive scopes
|
2013-03-08 15:15:15 +11:00 |
|
Rob H
|
2f1a9094bf
|
Fix StaleObjectError in order model test
|
2013-02-14 16:49:28 +11:00 |
|
Rohan Mitchell
|
83e3c6815d
|
Merge branch 'checkout-changes'
Conflicts:
.rvmrc
app/helpers/application_helper.rb
|
2013-01-22 10:30:51 +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 |
|
Rohan Mitchell
|
cd13ab4f77
|
Fix failing tests
|
2012-12-04 11:39:39 +11:00 |
|
Rohan Mitchell
|
cfa96c7615
|
Each order cycle may not have duplicate exchanges between the same enterprises
|
2012-11-30 16:37:29 +11:00 |
|
Rohan Mitchell
|
47c28e65a7
|
Add detailed order cycle factory, add methods to report on order cycle suppliers, distributors and products/variants exchanged
|
2012-11-27 10:09:40 +11:00 |
|
Rohan Mitchell
|
6b97872a25
|
Create OrderCycles, Exchanges, ExchangeFees and ExchangeVariants
|
2012-11-26 11:03:44 +11:00 |
|
Rohan Mitchell
|
192d4993a1
|
Add EnterpriseFee model
|
2012-11-15 13:42:55 +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
|
58d227e76a
|
Home controller and product model specs pass
|
2012-11-01 08:28:40 +11:00 |
|
Rohan Mitchell
|
4c2debba7e
|
Model specs pass
|
2012-10-28 18:00:15 +11:00 |
|
Rohan Mitchell
|
abe3feb996
|
Integrate functionality from distributor into enterprise
|
2012-10-28 17:46:45 +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
|
d09123eb22
|
Do not show suppliers with no products in stock
|
2012-10-17 07:36:18 +11:00 |
|
Rohan Mitchell
|
757456dd57
|
Set line item shipping method in callback so that Order#update shipping calcs run correctly
|
2012-09-20 10:45:50 +10:00 |
|
Rohan Mitchell
|
eaca160367
|
Set line item shipping method when added to cart, update specs for changes to line item shipping method
|
2012-09-19 15:01:50 +10:00 |
|
Rohan Mitchell
|
3794c00856
|
Upgrade Rails to 3.2.8 and Spree to 1.1.3
|
2012-09-14 10:20:52 +10:00 |
|
Rohan Mitchell
|
9dd94eaf57
|
Weight shipping calculator treats variants without weight defined as zero weight
|
2012-08-08 15:29:47 +10:00 |
|
Rohan Mitchell
|
9f013f0e37
|
When loading distributors for sidebar, only show those that have active products on hand
|
2012-08-04 17:51:08 +10:00 |
|
Rohan Mitchell
|
e6ee6b5164
|
Itemwise shipping calculator returns 0 instead of nil when there are no items
|
2012-08-03 08:44:53 +10:00 |
|
Rohan Mitchell
|
fe61b4aab1
|
Display shipping fee at all steps of the checkout process, not just after delivery method is chosen
|
2012-08-02 16:24:08 +10:00 |
|
Rohan Mitchell
|
2db2fbcade
|
Change set_variant_attribute to set_variant_attributes, implement it on Order
|
2012-08-02 14:45:27 +10:00 |
|