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
|
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
|
d8c4e292c8
|
Adding method for determining variant override hubs
|
2015-03-27 16:09:45 +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
|
00821a60cc
|
More specific references to enterprise id in permissions querying methods
|
2015-03-27 16:07:37 +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
|
22161bfd6e
|
rewriting permissions query functions in permissions library, to make scoping easier
|
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
|
d8656a36c6
|
Consistency in tax calculations, remove some unneeded local vars
|
2015-03-25 16:31:15 +11:00 |
|
Rohan Mitchell
|
89d4a59e9d
|
Extract order total tax calculations to model
|
2015-03-25 16:27:29 +11:00 |
|
Rohan Mitchell
|
84f3097217
|
Calculate total tax from the tax included in all the adjustments on the order
|
2015-03-25 16:27:29 +11:00 |
|
Rohan Mitchell
|
333a4ecf2f
|
Include enterprise fee tax on sales tax report
|
2015-03-25 16:27:29 +11:00 |
|
Rohan Mitchell
|
d489e06009
|
Retrieve line item sales tax from included_tax rather than tax amount
|
2015-03-25 16:27:29 +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
|
1a97df1d21
|
Fix whitespace issues
|
2015-03-12 12:17:15 +11:00 |
|
Rohan Mitchell
|
a5716cf2c2
|
Merge branch 'ordercyclemanagementreports2' of https://github.com/lin-d-hop/openfoodnetwork into lin-d-hop-ordercyclemanagementreports2
|
2015-03-12 12:15:22 +11:00 |
|
Rohan Mitchell
|
381bfd383b
|
Allow enterprise fee with no tax category
|
2015-03-06 12:12:33 +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
|
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
|
10e5d09416
|
Use ReportsHelper for currency_symbol
|
2015-03-05 10:43:56 +11:00 |
|
Rohan Mitchell
|
3b4d73760b
|
Break up sales tax report into methods
|
2015-03-05 10:43:55 +11:00 |
|
Rohan Mitchell
|
89199ef30a
|
Use map instead of each and var
|
2015-03-05 10:43:55 +11:00 |
|
Matt-Yorkley
|
d194e74eda
|
Rohan's suggested changes
|
2015-03-05 10:43:51 +11:00 |
|
Matt-Yorkley
|
0f3723a923
|
Added currency symbols to sales tax report
|
2015-03-05 10:43:51 +11:00 |
|
Matt-Yorkley
|
623882a2a1
|
Config option for tax rate on shipping
|
2015-03-05 10:43:50 +11:00 |
|
Matt-Yorkley
|
be55f461d0
|
Report: sales tax on orders
|
2015-03-05 10:43:50 +11:00 |
|
Paul Mackay
|
ca665dc6bc
|
Merge master into producer-emails.
|
2015-03-04 19:09:43 +00:00 |
|
Lynne Davis
|
3279003fd3
|
Updating logic on temperature_controlled lookup
|
2015-03-03 16:01:42 +11:00 |
|
Lynne Davis
|
87b1ab9a1a
|
LD: Adding additional functionality for order cycle management reports - adding hub code model, adding temp_controlled bool, adding delivery report
|
2015-03-03 16:01:42 +11:00 |
|
Rohan Mitchell
|
4554c0555d
|
Change locking to use postgres syntax, fixes 'must be first statement in transaction' error
|
2015-02-20 11:31:39 +11:00 |
|
Maikel Linke
|
c01d45e3af
|
Serialize move_up and move_down methods of groups
There have been race conditions in other projects using the acts_as_list
gem which could be solved by serializing.
|
2015-02-19 16:51:58 +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 |
|
Maikel Linke
|
6b5a1255f8
|
fixing a bunch of tests
|
2015-02-12 16:36:18 +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
|
25189d190b
|
Shift method
|
2015-02-04 09:30:01 +11:00 |
|
Rohan Mitchell
|
fafbfe8735
|
Simplify, simplify
|
2015-01-30 15:56:10 +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
|
20bde803c8
|
Display overridden prices when products are in the cart
|
2015-01-12 14:58:35 +11:00 |
|