Rohan Mitchell
|
422061f137
|
Merge branch 'master' into products-caching
Conflicts:
app/controllers/shop_controller.rb
app/models/enterprise_fee.rb
app/models/order_cycle.rb
app/models/variant_override.rb
db/schema.rb
lib/open_food_network/products_renderer.rb
spec/lib/open_food_network/products_renderer_spec.rb
|
2016-03-03 09:42:52 +11:00 |
|
Rob Harrington
|
f280b96215
|
Hiding a variant from inventory prevents it being available on the shopfront
User preferences around inventory-only product selection immediately affect the shopfront
|
2016-03-02 12:10:22 +11:00 |
|
Rob Harrington
|
77e74c5642
|
OC Coordinators can opt to restrict products in an order cycle to those in their inventory only
|
2016-03-02 12:10:22 +11:00 |
|
Rohan Mitchell
|
0a90a48b04
|
Refresh products cache when coordinator fees are changed or destroyed
|
2016-02-24 15:05:03 +11:00 |
|
Rohan Mitchell
|
540687515e
|
Reify coordinator_fees HABTM join table as CoordinatorFee model using HMT
|
2016-02-24 15:05:03 +11:00 |
|
Rohan Mitchell
|
fe41430d1e
|
Rerefesh products cache when an order cycle is changed
|
2016-02-24 15:05:02 +11:00 |
|
Rohan Mitchell
|
5d20b4fb51
|
Add OrderCycle scopes: not_closed, dated
|
2016-02-24 15:05:01 +11:00 |
|
Rohan Mitchell
|
48b02db70d
|
Order cycles are undated unless they have both open and close dates defined
|
2016-02-05 09:27:25 +11:00 |
|
Continuous Integration
|
b7edf5e046
|
Auto-merge from CI [skip ci]
|
2015-12-16 10:58:03 +11:00 |
|
Rohan Mitchell
|
80ebaece2d
|
Sort distribution choices by name
|
2015-12-11 13:06:57 +11:00 |
|
Continuous Integration
|
ae945ace9d
|
Auto-merge from CI [skip ci]
|
2015-12-11 11:09:54 +11:00 |
|
Maikel Linke
|
cd7721a127
|
Using date and time of current timezone
Using Time.zone.now and Date.current instead of Time.now and Date.today.
This should make all specs timezone independent.
|
2015-12-10 11:38:41 +11:00 |
|
Rohan Mitchell
|
ea6974d438
|
Add OrderCycle#supplied_variants
|
2015-12-10 09:17:25 +11:00 |
|
Rohan Mitchell
|
bd854bf2dd
|
Remove receival_time from exchange, just use receival_instructions
|
2015-12-02 15:05:49 +11:00 |
|
Rob Harrington
|
7e6b43266f
|
Making sure that price and final_weight_volume can be updated (by distributor or coordinator)
|
2015-11-25 14:23:55 +11:00 |
|
Rob Harrington
|
a96cdd5ee7
|
Merge branch 'master' into line_item_naming
Conflicts:
app/views/admin/order_cycles/edit.html.haml
|
2015-11-13 09:54:26 +11:00 |
|
Rob Harrington
|
2483eef4be
|
WIP: BOM Refactor, removing obsolete OrderCycle.recently_closed scope, ordering closed OCs
|
2015-11-05 14:02:04 +11:00 |
|
Rohan Mitchell
|
ecc3bad8c8
|
Merge branch 'master' into folklabs-producer-emails
|
2015-10-16 12:38:54 +11:00 |
|
Rohan Mitchell
|
be66769999
|
SELECT DISTINCT results in inconsistent #count value. Work around this with to_a.
|
2015-08-05 11:05:29 +10:00 |
|
Rohan Mitchell
|
012b0517a5
|
Fetch order cycle variants in SQL
|
2015-07-31 16:57:47 +10:00 |
|
Rohan Mitchell
|
d908701b59
|
Merge branch 'master' into folklabs-producer-emails
Conflicts:
Gemfile
|
2015-06-11 17:02:34 +10:00 |
|
Rohan Mitchell
|
e3085d9224
|
Merge branch 'producer-emails' of https://github.com/folklabs/openfoodnetwork into folklabs-producer-emails
|
2015-05-29 17:36:56 +10:00 |
|
Rohan Mitchell
|
769edbe9d5
|
Find the earliest closing times for each distributor in an active order cycle
|
2015-05-27 15:44:01 +10:00 |
|
Paul Mackay
|
2f05fc3824
|
#275: Insert receival time and instructions into email.
|
2015-05-24 10:38:49 +01:00 |
|
Rob Harrington
|
8d73b2f532
|
involving... order cycle scopes return distinct OCs
|
2015-05-20 13:47:01 +10:00 |
|
Rob Harrington
|
9ab16d8cec
|
Allowing calls to Api::OrderCyclesController#accessible to specify :as => 'distributor' or 'producer'
|
2015-05-07 12:50:54 +10:00 |
|
Victor Nava
|
d6c30ae1ef
|
OrderCycle#recently_closed doesn't return orders that are open
|
2015-03-05 17:28:24 +11:00 |
|
Victor Nava
|
1b709a3e03
|
Do not load Order Cycles that closed more than a month a go
|
2015-03-05 16:04:36 +11:00 |
|
Rob Harrington
|
21e4f40616
|
Implementing primary taxon ordering on the shopfront
|
2014-12-19 14:05:23 +11:00 |
|
Rob Harrington
|
4b353fa27b
|
Ammending comments to make slightly more clear
|
2014-12-19 14:04:01 +11:00 |
|
Rohan Mitchell
|
66cece5903
|
WIP: Extract order cycle fee calculations to EnterpriseFeeCalculator
|
2014-07-31 11:36:53 +10:00 |
|
Will Marshall
|
c33fa03736
|
Merging into master
|
2014-04-29 10:35:05 +10:00 |
|
Rohan Mitchell
|
d0585b4d05
|
Admin order cycle listing does not show order cycles that enterprise users don't have access to
|
2014-04-24 14:43:33 +10:00 |
|
Will Marshall
|
0479a0a55d
|
Fixing bugs, improving dates
|
2014-04-23 15:46:14 +10:00 |
|
Rohan Mitchell
|
47ac097eb7
|
Do not show deleted variants on shopfront
|
2014-04-11 19:08:55 +10:00 |
|
Rohan Mitchell
|
f184f0c246
|
Fix inappropriate intimacy: Extract exchange-specific queries from OrderCycle back into exchange
|
2014-03-26 11:43:32 +11:00 |
|
Rohan Mitchell
|
ac92d0919a
|
Add incoming boolean field to Exchange, determine exchange direction from this field rather than sender/receiver roles
|
2014-03-26 11:19:35 +11:00 |
|
Rohan Mitchell
|
638e922ae2
|
Do not allow customer to purchase the obsolete master of a product
|
2014-03-20 10:56:46 +11:00 |
|
Rohan Mitchell
|
98776caa51
|
Rename Exchange.any_variant to with_any_variant for clarity
|
2014-03-14 11:18:59 +11:00 |
|
Rohan Mitchell
|
a8373b7bef
|
Fix specs: stale data
|
2014-03-12 13:34:05 +11:00 |
|
Rohan Mitchell
|
637ccc113b
|
Do not show products that have no stock available to the current distribution
|
2014-03-05 13:54:02 +11:00 |
|
Rohan Mitchell
|
ec6f70c145
|
On product list view, only show variants that are a member of the current order cycle
|
2014-03-05 13:54:02 +11:00 |
|
Rohan Mitchell
|
11fb6c96a1
|
Charge per-order fees on orders exactly once
|
2014-02-26 14:34:30 +11:00 |
|
Rohan Mitchell
|
75c8da1774
|
Rename create_adjustments_for to create_line_item_adjustments_for, only show per-item fees
|
2014-02-26 12:07:38 +11:00 |
|
Rohan Mitchell
|
da8a8e8a1a
|
Rename method
|
2014-02-21 15:49:10 +11:00 |
|
Rohan Mitchell
|
08009d4020
|
Extract application of enterprise fees as adjustments into its own class
|
2014-02-21 15:48:58 +11:00 |
|
Will Marshall
|
202f95a8fc
|
Fix for broken percentage Enterprise Fees in place, no test yet
|
2014-02-07 11:09:47 +11:00 |
|
Rohan Mitchell
|
d0fd48456e
|
Variant calculates fees and its price inclusive of fees
|
2014-02-05 14:01:10 +11:00 |
|
Rohan Mitchell
|
04487da22a
|
Decouple OrderCycle#fees_for from LineItem
|
2014-02-05 13:27:17 +11:00 |
|
Will Marshall
|
12743850b4
|
Removing a chili, refactoring order mailer
|
2013-12-13 15:40:22 +11:00 |
|