Rob Harrington
|
6ac45f3dc8
|
Renaming order_cycle_exchanges as visible_exchanges
|
2015-04-11 22:26:55 +10:00 |
|
Rob Harrington
|
e3138c3cd2
|
Renaming order_cycle_enterprises_for as visible_enterprises
|
2015-04-11 22:25:23 +10:00 |
|
Rob Harrington
|
26d55baa35
|
Moving order cycle permissions to their own permissions class
|
2015-04-11 21:11:10 +10:00 |
|
Rob Harrington
|
02f8f293da
|
Only allow managers or coordinator to add/remove fees from exchanges
|
2015-04-11 18:32:04 +10:00 |
|
Rob Harrington
|
c28ebf63ab
|
As participating Hub, I cannot edit incoming exchanges despite being granted P-OC by the producer
|
2015-04-09 13:41:43 +10:00 |
|
Rob Harrington
|
b1624a733e
|
Editable variants for incoming exchanges for hubs include those for producers that have granted my hub P-OC
|
2015-04-08 13:38:37 +10:00 |
|
Rob Harrington
|
b8ce6ed0fc
|
Coordinator can see any enterprises that are already in the order cycle
|
2015-04-08 13:28:49 +10:00 |
|
Rob Harrington
|
104a8ddecf
|
Refactor order_cycle_enterpises_for permission method, now requires an order cycle
|
2015-04-08 13:00:17 +10:00 |
|
Rob Harrington
|
4dcfec1de9
|
make enterprises_for_order_cycle permissions more correct
|
2015-04-08 12:12:02 +10:00 |
|
Rob Harrington
|
24062e5585
|
Adding permissions for outgoing hubs to see producers whose variants they are distributing, despite P-OC not existing
|
2015-04-08 10:15:50 +10:00 |
|
Rob Harrington
|
4a87798bb4
|
Variants belonging to a producer I manager that are already in an outgoing an exchange need not be editable
|
2015-04-06 23:30:43 +10:00 |
|
Rob Harrington
|
f20844c2a0
|
Adding editable scope for variants in outgoing exchanges
|
2015-04-05 15:25:44 +10:00 |
|
Rob Harrington
|
009b25a491
|
Adding an editable variants scope for incoming exchanges
|
2015-04-05 13:59:00 +10:00 |
|
Rob Harrington
|
d28fc7e42d
|
Hubs can see incoming exchanges of producers who have given them P-OC or whose variants they are actively distributing
|
2015-04-03 14:58:01 +11:00 |
|
Rob Harrington
|
74b7feda53
|
coordinator of a simple order cycle has permission to add their own variants to outgoing exchanges
|
2015-03-27 16:16:13 +11:00 |
|
Rob Harrington
|
f5bacf71b7
|
Permissions for OrderCycleFormApplicator are determined internally
|
2015-03-27 16:16:13 +11:00 |
|
Rob Harrington
|
193a061c44
|
Order cycle form applicator only updates visible variants, should add an 'editable variants' scope to permissions
|
2015-03-27 16:16:11 +11:00 |
|
Rob Harrington
|
524645aff4
|
Replacing visible_variants_for(exchange) with more general methods for determining visbility based on the enterprises involced and the current order cyclegs
|
2015-03-27 16:16:11 +11:00 |
|
Rob Harrington
|
35b27fcfd2
|
Delegating responsibility for returning an empty scope when no options are passed to order_cycle_enterprises_for
|
2015-03-27 16:16:10 +11:00 |
|
Rob Harrington
|
b747f61eb1
|
P-OC permissions don't apply when determining which enterprises are loaded for order cycle interface
|
2015-03-27 16:16:10 +11:00 |
|
Rob Harrington
|
7e24e6743e
|
enterprises_for is now order_cycle_enterprises_for, and can be passed an order_cycle or a coordinator (for new order_cycles)
|
2015-03-27 16:16:09 +11:00 |
|
Rob Harrington
|
81765de7a7
|
Building a permission method to determine which enterprises are visible to the user for a given OC
|
2015-03-27 16:07:38 +11:00 |
|
Rob Harrington
|
252ddf9beb
|
Adding method to permissions library for scoping the list of visible variants in a given exchange to a particular user
|
2015-03-27 16:07:37 +11:00 |
|
Rob Harrington
|
6c4db7fc22
|
Adding permission to view outgoing exchanges to producers who have granted P-OC to the relevant outgoing hub
|
2015-03-27 16:07:37 +11:00 |
|
Rob Harrington
|
df4437ecfe
|
Altering permissions for exchanges, so the exchange is visible to managers of at least one of the enterprises invloved
|
2015-03-27 16:07:37 +11:00 |
|
Rohan Mitchell
|
daa30ed518
|
Retrieve the shipping tax on the order instead of calculating it from scratch
|
2015-03-25 16:27:29 +11:00 |
|
Rohan Mitchell
|
98ff895f5f
|
Record the tax included in per-order EnterpriseFees
|
2015-03-06 10:38:55 +11:00 |
|
Rohan Mitchell
|
dd61034908
|
Fix fractional cents appearing on sales tax report totals
|
2015-03-05 10:43:57 +11:00 |
|
Rohan Mitchell
|
ec22f4c09f
|
Sales tax report pulls sales tax from adjustments instead of recalculating it at report-time
|
2015-03-05 10:43:57 +11:00 |
|
Rohan Mitchell
|
11f59c9f59
|
Add spec for calculating shipping tax. Fix incorrect formula.
|
2015-03-05 10:43:56 +11:00 |
|
Rohan Mitchell
|
27a730ef6c
|
Add spec for sales tax report totals calcs
|
2015-03-05 10:43:56 +11:00 |
|
Rohan Mitchell
|
a7bb04b890
|
Find all producers for which we can create variant overrides
|
2015-02-04 10:13:35 +11:00 |
|
Rohan Mitchell
|
4c586d1b7e
|
Fetching enterprises for which hubs can create variant overrides: allow all hubs that we can add to order cycle, find producers via create_variant_overrides permission
|
2015-02-04 10:04:57 +11:00 |
|
Rohan Mitchell
|
7ea143d19a
|
Provide AR relation instead of array in stub
|
2015-02-04 09:42:04 +11:00 |
|
Rob Harrington
|
cbae7dcc8e
|
Adding visible to user and enterprises report, and sorting by confirmation date
|
2015-01-29 10:46:44 +11:00 |
|
Rohan Mitchell
|
cfb69ae7d2
|
Add Permissions#editable_enterprises
|
2015-01-15 13:43:38 +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
|
7e55262ce9
|
Extract most everything to private methods - neatly groups concerns together
|
2015-01-09 11:28:39 +11:00 |
|
Rohan Mitchell
|
bbc887a692
|
Test the exact value, not the truncated value
|
2015-01-09 11:26:25 +11:00 |
|
Rohan Mitchell
|
6f36c0463c
|
Separate data preparation from test conditions
|
2015-01-09 11:26:25 +11:00 |
|
Rohan Mitchell
|
592ac7856a
|
Variable naming
|
2015-01-09 11:26:25 +11:00 |
|
Rohan Mitchell
|
261dea37e9
|
Spec formatting
|
2015-01-09 11:26:25 +11:00 |
|
Lynne Davis
|
1ad13f0359
|
Cleanup of git to remove unnecessary commits from pull request
|
2015-01-09 11:26:24 +11:00 |
|
Rohan Mitchell
|
1e1a070b2b
|
Scope Variant#price_in
|
2014-12-19 16:51:10 +11:00 |
|
Rohan Mitchell
|
e9f04c3c15
|
Clean up whitespace
|
2014-12-19 10:01:21 +11:00 |
|
Rohan Mitchell
|
6e0576235d
|
Use create\! instead of build - more concise, raises exception on error
|
2014-12-19 09:51:32 +11:00 |
|
Rohan Mitchell
|
27d646c0e8
|
Tweak indentation, remove some blank lines
|
2014-12-19 09:51:32 +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
|
e6eecd3ae2
|
Replace proxies with modules
|
2014-12-18 10:20:31 +11:00 |
|
Lynne Davis
|
7e49bd634e
|
Updated the specs with Rohans suggestions
|
2014-12-12 18:23:43 +00:00 |
|