Rob Harrington
2310a6a7db
Splitting out order cycle abilities from general order management abilities
2015-03-27 16:07:37 +11:00
Rohan Mitchell
89d4a59e9d
Extract order total tax calculations to model
2015-03-25 16:27:29 +11:00
Rohan Mitchell
40b4edeca1
Replace zoned_order factory with zone_with_member. In practice, former had issues with circular dependencies.
2015-03-25 16:27:29 +11:00
Rohan Mitchell
9650692699
Calculate total tax on enterprise fees for an order
2015-03-25 16:27:29 +11:00
Rohan Mitchell
69dc92dec1
Create factories zoned_order and taxed_product
2015-03-25 16:27:29 +11:00
Rohan Mitchell
7fb8370c36
Look up shipping tax on an order
2015-03-25 16:27:29 +11:00
Rohan Mitchell
e38772ada0
Enterprise user can delete unreferenced order cycles
2015-03-16 12:41:06 +11:00
Rohan Mitchell
8d3f25bb39
Fix intermittent 500 error when updating the cart
2015-03-13 17:50:01 +11:00
Rohan Mitchell
d9f90be38a
Fix indentation
2015-03-13 10:52:44 +11:00
Rohan Mitchell
008b43b1fc
Merge branch 'ordercyclemanagementreports2' of https://github.com/lin-d-hop/openfoodnetwork into lin-d-hop-ordercyclemanagementreports2
2015-03-13 10:47:49 +11:00
Lynne Davis
d9e8ce2f0e
Fix bug in report that selecting multiple payment methods didn't work. Added spec as well
2015-03-12 17:16:51 +11:00
Rohan Mitchell
381bfd383b
Allow enterprise fee with no tax category
2015-03-06 12:12:33 +11:00
Rohan Mitchell
1e18f773f5
Switch context -> describe, clarify test grammar
2015-03-06 11:15:07 +11:00
Rohan Mitchell
41792395aa
Record the tax included in per-item EnterpriseFees
2015-03-06 11:13:47 +11:00
Rohan Mitchell
98ff895f5f
Record the tax included in per-order EnterpriseFees
2015-03-06 10:38:55 +11:00
Rohan Mitchell
b5ce056d06
Fix tax calculations for determining tax included in an amount
2015-03-05 13:03:53 +11:00
Rohan Mitchell
dfb855bd14
Record the tax included in shipping.
2015-03-05 10:44:27 +11:00
Rohan Mitchell
9395f6c808
Record the tax included in adjustments. TaxRate adjustments consist of 100% tax.
2015-03-05 10:44:26 +11:00
Matt-Yorkley
d194e74eda
Rohan's suggested changes
2015-03-05 10:43:51 +11:00
Maikel Linke
379b702b9b
spec: testing array of owned groups without order
2015-02-26 16:22:15 +11:00
Maikel Linke
8e83c6679a
extended test of owned groups
2015-02-19 11:25:31 +11:00
Maikel Linke
903bd21577
Merge remote-tracking branch 'origin/master' into group-pages-merge
...
Conflicts:
README.markdown
db/schema.rb
2015-02-13 15:42:36 +11:00
Rob Harrington
ad1f837c44
Admin users can access all users through known_users
2015-02-12 11:34:58 +11:00
Rob Harrington
b73619d168
Adding known_users method to Spree::User
2015-02-12 11:34:58 +11:00
Rob Harrington
dde1a27d3a
Adding ability to search for known users
2015-02-12 11:34:57 +11:00
Rohan Mitchell
7ca9670073
Admin can access variant override only when it can add hub to order cycle and it can create variant overrides for the producer of the variant
2015-02-04 11:09:48 +11:00
Maikel Linke
91b35d068c
Adding owner to groups
...
Groups have owners and users own groups. The owners are displayed and
changable on the group's page by admin users.
2015-02-02 15:58:34 +11:00
Rohan Mitchell
fafbfe8735
Simplify, simplify
2015-01-30 15:56:10 +11:00
Rohan Mitchell
2d82f76a43
Fix changed var in ability spec
2015-01-15 13:43:39 +11:00
Rohan Mitchell
d5437e1508
edit_profile permission no longer shows links to manage shipping methods, payment methods and enterprise fees for an enterprise
2015-01-15 13:43:39 +11:00
Rohan Mitchell
90ad2e2b7d
Allow enterprises with 'edit profile' permission to edit enterprises
2015-01-15 13:43:39 +11:00
Rohan Mitchell
307cc313df
Stub scope_to_hub in spec that wasn't expecting it
2015-01-13 11:46:41 +11:00
Rohan Mitchell
0431e0048c
Merge branch 'master' into variant-overrides-frontend
...
Conflicts:
app/controllers/shop_controller.rb
app/views/shop/products/_form.html.haml
spec/controllers/shop_controller_spec.rb
2015-01-12 16:48:51 +11:00
Rohan Mitchell
ac59665e3c
Test validations without creating models in database
2015-01-08 09:48:33 +11:00
Rohan Mitchell
e4efda2f96
Move model spec into validations block
2015-01-08 09:37:35 +11:00
Rohan Mitchell
087ccb52f9
Merge branch 'tax_cat_dropdown' of https://github.com/Matt-Yorkley/openfoodnetwork into Matt-Yorkley-tax_cat_dropdown
2015-01-08 09:09:20 +11:00
Rohan Mitchell
e9f04c3c15
Clean up whitespace
2014-12-19 10:01:21 +11:00
Rohan Mitchell
4a30f27b3d
Merge branch '266reportsbranch' of https://github.com/lin-d-hop/openfoodnetwork into lin-d-hop-266reportsbranch
...
Conflicts:
app/controllers/spree/admin/reports_controller_decorator.rb
spec/models/spree/order_spec.rb
2014-12-19 09:38:02 +11:00
Rohan Mitchell
c4b45bdbbf
Fix line items returning prices with fractional cents
2014-12-18 16:24:59 +11:00
Rohan Mitchell
6c300431d2
Move Product#variants_for to Variant.for_distribution scope
2014-12-17 13:42:30 +11:00
Rohan Mitchell
c38686c820
Create new variant overrides
2014-12-12 13:33:14 +11:00
Rohan Mitchell
27444c6589
Extract variant overrides to own controller - permissions
2014-12-12 13:33:14 +11:00
Rohan Mitchell
51d2805de9
WIP: Rename override_variants to variant_overrides
2014-12-12 13:33:13 +11:00
Rohan Mitchell
500b5ce347
Enterprise managers can access override variants
2014-12-12 13:33:12 +11:00
Rob Harrington
6a226e4f92
Fixing typos and changing delivery address display in order confirmation email
2014-12-12 12:00:15 +11:00
Rohan Mitchell
e607c9855f
Add Pin Payments gateway
2014-12-12 10:59:23 +11:00
Rob Harrington
dfb9e5bde5
Order reports now present the price of line items with adjustments included
2014-12-11 15:48:29 +11:00
Lynne Davis
633a8a49e2
updating spec based on the wise advice of Rohan
2014-12-03 00:35:53 +00:00
Maikel Linke
ccd03bfa84
Using simple_order_cycle
...
Test timings were not accurate. Output:
4 order_cycles: 9.94 seconds
2 order_cycles: 9.87 seconds
0 order_cycles: 9.9 seconds
Felt execution was much higher
2014-11-28 13:20:05 +11:00
Lynne Davis
35c27bf516
First specs for additional scope to order model. Not liking the repeated code so would appreciate feedback to get rid of it. Thanks!
2014-11-27 20:36:41 +00:00