Commit Graph

390 Commits

Author SHA1 Message Date
Rohan Mitchell
4f1e4fc223 Compute itemwise shipping cost for a line item 2012-06-29 08:46:31 +10:00
Rohan Mitchell
eae05ea59c Add itemwise shipping cost calculator 2012-06-29 07:52:29 +10:00
Rohan Mitchell
c09d4c98c8 Product distributions now editable 2012-06-28 15:38:26 +10:00
Rohan Mitchell
474c049f0d Set up basic form for admin editing product distributions (not yet functional) 2012-06-28 15:13:26 +10:00
Rohan Mitchell
1d3b7de5c6 Require ProductDistribution to be unique on [product, distributor] 2012-06-28 15:12:15 +10:00
Rohan Mitchell
3f08c2a9b0 Convert distributors_products join table into ProductDistribution explicit join model 2012-06-27 11:55:10 +10:00
Rohan Mitchell
5930363fa2 Validate presence of address on supplier and distributor 2012-06-27 09:25:14 +10:00
Rohan Mitchell
c5270d6fa1 Set shipping address from distributor, fix zone init in checkout spec 2012-06-27 09:06:18 +10:00
Rohan Mitchell
e0e566e625 Display distributor information on checkout address page 2012-06-26 16:04:59 +10:00
Rohan Mitchell
ba3c02346d Extract distributor and supplier address to spree address model 2012-06-26 14:52:55 +10:00
Rohan Mitchell
9258d47e55 When adding subsequent products, add valid products to cart 2012-06-26 07:52:45 +10:00
Rohan Mitchell
f4108921ed When adding subsequent product to cart, do not allow the user to add a product from another distributor 2012-06-25 08:45:08 +10:00
Rohan Mitchell
24ad4f53fc Raise error if distributor changed illegally 2012-06-24 19:23:44 +10:00
Rohan Mitchell
a41c5d4735 Move distributor permissions onto order class, do not show links to change distributor if the action is invalid 2012-06-24 15:15:53 +10:00
Rohan Mitchell
a91722a593 Display distributor choice on add to cart form 2012-06-24 11:28:06 +10:00
Rohan Mitchell
4b118a26ff Show distributor-scoped product counts next to taxons 2012-06-22 13:40:43 +10:00
Rohan Mitchell
03b87225d0 Add spec for selecting a distributor, add distributor to order model, add controller method for selecting distributor 2012-06-22 11:25:32 +10:00
Rohan Mitchell
4c6486e66f Product requires a supplier 2012-06-21 14:59:22 +10:00
Rohan Mitchell
65d39e5867 Display supplier/distributor search results 2012-06-21 07:31:33 +10:00
Rohan Mitchell
412eb4365e Provide searching by supplier or distributor via spree searcher class 2012-06-20 17:44:58 +10:00
Rohan Mitchell
d656898ecb Disable filtering distributors using spree filters 2012-06-20 17:43:14 +10:00
Rohan Mitchell
1207062f7c Filter products by distributor 2012-06-20 14:20:07 +10:00
Rohan Mitchell
b89562823b Add distributors to admin product forms 2012-06-19 10:39:08 +10:00
Rohan Mitchell
cb899575b7 Product requires at least one distributor 2012-06-18 19:53:53 +10:00
Rohan Mitchell
3b075a7c14 Change product-distributor relation to *..* 2012-06-18 19:43:30 +10:00
Rohan Mitchell
82ca7112c2 Remove distributor association from orders and from the checkout process 2012-06-18 17:01:08 +10:00
Andrew Spinks
d089500a5e Added product request spec and fixed bug when setting supplier. 2012-06-10 16:54:38 +10:00
Andrew Spinks
1288760839 Added first working acceptance spec for supplier. 2012-06-09 14:41:09 +10:00
Andrew Spinks
5088363c84 add supplier to product on admin views. 2012-04-29 18:35:14 +10:00
Andrew Spinks
3b2ae5bca1 add supplier validations 2012-04-29 17:39:30 +10:00
Andrew Spinks
c9effe5926 Add seperate address fields - don't become too attached to spree. 2012-04-29 17:31:47 +10:00
Andrew Spinks
e4fd20b807 Add default supplier view and relationship to address. 2012-04-29 16:32:38 +10:00
Andrew Spinks
7ea0f73398 begin adding suppliers 2012-04-22 14:51:24 +10:00
Andrew Spinks
c3f7a7fd2c fix default country and state selection. 2012-04-22 12:45:05 +10:00
Andrew Spinks
48c6f4d7cc default states to current zone. 2012-04-22 12:10:35 +10:00
Andrew Spinks
f7372a80c2 add distributor to checkout 2012-04-09 09:56:37 +10:00
Andrew Spinks
b2b8bd0112 add selector for distributor in checkout. Not saving relation as yet. 2012-04-07 16:34:27 +10:00
Andrew Spinks
3f1ed0ca06 make distributors work in spree admin framework. 2012-04-07 12:10:44 +10:00
Andrew Spinks
0a6852616d added distributors. 2012-03-31 19:16:57 +11:00
Andrew Spinks
b6ca20beee new rails 3.1.4 app 2012-03-27 10:10:26 +11:00