Commit Graph

56 Commits

Author SHA1 Message Date
Rohan Mitchell
d8a7570a61 Display accurate counts for distributed products 2013-01-18 12:21:35 +11:00
Rohan Mitchell
0a2ce30bb6 Only show variants for distribution that are supplied to the order cycle 2013-01-18 11:52:01 +11:00
Rohan Mitchell
8e9845be12 Functionalise 2013-01-17 11:03:15 +11:00
Rohan Mitchell
3991199c30 Only show products for distribution that have been supplied to the order cycle 2013-01-17 10:49:59 +11:00
Rohan Mitchell
850d65958b Build Enterprise.supplied_products, an array of all products supplied by any enterprise 2013-01-15 12:21:13 +11:00
Rohan Mitchell
a10eb0d0c7 List and add distributor exchanges 2013-01-11 15:53:51 +11:00
Rohan Mitchell
9e59dead07 Tidy up coffee 2013-01-11 15:52:45 +11:00
Rohan Mitchell
d3fca565a3 Fix file naming and controller definition/testing 2013-01-11 14:09:56 +11:00
Rohan Mitchell
f971958042 Port order cycles js to coffeescript 2013-01-11 13:39:26 +11:00
Rohan Mitchell
3e06220b7f WIP: Rename order_cycle to coffee 2013-01-11 10:57:02 +11:00
Rohan Mitchell
3694321f66 Use angular's extend instead of jquery's 2013-01-11 10:54:53 +11:00
Rohan Mitchell
24a48a9b33 Move enterpriseTotalVariants to Enterprise service 2013-01-11 10:50:03 +11:00
Rohan Mitchell
bb13ec0e02 Rename methods 2013-01-11 10:40:56 +11:00
Rohan Mitchell
d3189e333b Count selected variants on an exchange 2013-01-11 10:36:27 +11:00
Rohan Mitchell
d27ef76ead Load exchange variants from correct attr 2013-01-10 11:27:39 +11:00
Rohan Mitchell
5129e31f21 Remove unneeded exchange_variants init 2013-01-10 11:00:09 +11:00
Rohan Mitchell
6a666dd7ec Move preventDefault from service to controller 2013-01-08 17:51:08 +11:00
Rohan Mitchell
f705926c72 Display check boxes for products and variants, bind to model 2013-01-08 15:16:28 +11:00
Rohan Mitchell
19e55428b8 Test fetching enterprises 2012-12-13 16:24:59 +11:00
Rohan Mitchell
8d8c2f04d8 Add test for removesInactiveExchanges 2012-12-13 14:55:11 +11:00
Rohan Mitchell
2382de946f Test OrderCycle service create order cycle, use $window for testability 2012-12-13 14:37:35 +11:00
Rohan Mitchell
0f5d51423b Provide jQuery to tests, test loading an order cycle 2012-12-08 17:24:57 +11:00
Rohan Mitchell
91e3ddb93c Begin writing test for OrderCycle service 2012-12-07 16:24:40 +11:00
Rohan Mitchell
8cfce57730 Add unit tests for AdminEditOrderCycleCtrl 2012-12-07 15:30:49 +11:00
Rohan Mitchell
1d4d7d064b Add exchange products form, shown/hidden by button press 2012-12-04 12:26:18 +11:00
Rohan Mitchell
a4d3cc5417 Display exchange variants in JSON, load data client side 2012-12-04 12:07:58 +11:00
Rohan Mitchell
9880c45313 Perform all XHR with instead of 2012-12-04 11:07:44 +11:00
Rohan Mitchell
5afb2bb8f9 Extract Enterprise fetching into service 2012-12-04 10:51:14 +11:00
Rohan Mitchell
aefa06b67d Edit works with service 2012-12-04 10:31:45 +11:00
Rohan Mitchell
7d84803bad Extract OrderCycle into service, create works 2012-12-04 10:18:31 +11:00
Rohan Mitchell
fee64a5764 Datetime recognises input datetime format 2012-12-04 09:43:39 +11:00
Rohan Mitchell
34ef8a1deb Datetime pickers interact with angular model 2012-12-04 09:38:12 +11:00
Rohan Mitchell
97401ca370 Remove exchanges in both create and edit 2012-12-02 14:32:52 +11:00
Rohan Mitchell
8e4b729351 Load correct order cycle, prep for saving order cycle 2012-12-02 13:53:35 +11:00
Rohan Mitchell
34120730cd Load enterprises, all data displays 2012-11-30 15:46:53 +11:00
Rohan Mitchell
31735d3d10 Add edit order cycle controller, load basic data 2012-11-30 15:44:07 +11:00
Rohan Mitchell
6e4638b12d Upgrade angular to 1.0.3, move form to partial, use angular resource 2012-11-30 15:17:21 +11:00
Rohan Mitchell
243e1ccd93 Add supplier to order cycle 2012-11-29 11:16:59 +11:00
Rohan Mitchell
ac66bf4871 Add client-side validation to order cycle form 2012-11-29 10:40:19 +11:00
Rohan Mitchell
64d4e405dd Add datetimepicker for order cycle opening and closing times 2012-11-29 10:25:33 +11:00
Rohan Mitchell
aacc36ea44 Create order cycle basic fields 2012-11-29 10:02:23 +11:00
Rohan Mitchell
6106f1b469 Calculator type change works, enterprise fee tests pass 2012-11-26 09:45:06 +11:00
Rohan Mitchell
5e0a5654ff Correctly index calculator fields. Adds ng-bind-html-unsafe-compiled. 2012-11-23 17:02:58 +11:00
Rohan Mitchell
fd0cc93e68 Add delete link 2012-11-22 16:19:10 +11:00
Rohan Mitchell
dd155532f8 Add angular include, basic controller for listing enterprise fees, display fee ids using angular 2012-11-21 14:59:02 +11:00
Rohan Mitchell
77b78f5bbb Edit enterprise fee 2012-11-21 11:50:37 +11:00
Rohan Mitchell
c5941d6cb5 Update distributor details when distributor is changed 2012-10-27 18:50:09 +11:00
Rohan Mitchell
bc408d8b6e Add jquery and jquery_ujs includes to admin/all.js, as these have been removed from spree/admin/spree_core.js 2012-09-22 09:20:27 +10:00
Rohan Mitchell
62d6067c1a Do not truncate cents for product price update on add to cart JS 2012-09-21 12:44:38 +10:00
Rohan Mitchell
9d33ef460c Max quantity field doesn't affect JS price calcs on products without variants 2012-08-04 16:51:43 +10:00