Pau Perez
cee24dcca7
Use indented style for multiline method calls
...
This enables the Rubocop's Style/MultilineMethodCallIndentation cop with
indentend enforced style. Which makes you split multiline method calls like:
orders = Spree::Order
.an_scope
.another_scope
.where(id: list_of_ids)
It also autofixes the current violations and updates the
rubocop_todo.yml
2017-07-12 10:40:53 +02:00
Rohan Mitchell
1ea4f4274c
Add enterprise cache invalidation for order cycle changes
2016-11-25 14:14:42 +11:00
Rohan Mitchell
bd11c6ce14
New hash style
2016-11-25 14:14:42 +11:00
Rob Harrington
9dc1294ec5
Outgoing exchanges can be tagged
...
Using panels infrastructure to display tags and products interfaces
2016-05-27 16:25:10 +10:00
Rohan Mitchell
27d7b3026b
Move OpenFoodNetwork::ProductsCacheIntegrityChecker.active_exchanges to Exchange model
2016-03-09 12:28:09 +11:00
Rohan Mitchell
8af6866ae4
Refresh products cache when exchange is changed or destroyed
2016-02-24 15:05:03 +11:00
Rohan Mitchell
8d270e919f
Sort exchanges for display when editing an order cycle
2015-12-10 09:17:25 +11:00
Rob Harrington
85e4b3970c
Adding an 'involved' scope to exchanges
2015-03-27 15:56:07 +11:00
Rohan Mitchell
9b15c213d1
When an enterprise user saves an order cycle for which it manages only some of the enterprises involved, do not delete the other exchanges
2014-05-23 11:28:00 +10:00
Rohan Mitchell
85db8859bb
On admin order cycle edit page, do not show exchanges for enterprises the user doesn't manage
2014-04-24 15:51:39 +10:00
Rohan Mitchell
32ffd05ba0
Order cycle can have the same enterprise participating as supplier, coordinator and distributor
2014-04-02 11:54:28 +11: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
98776caa51
Rename Exchange.any_variant to with_any_variant for clarity
2014-03-14 11:18:59 +11:00
Rohan Mitchell
affb2a5743
Fix bug: Whole order fees being charged once per variant. Exchange.any_variant was returning duplicate rows.
2014-03-14 11:18:59 +11:00
Rohan Mitchell
9dec40703a
Find exchanges with any of a number of variants
2014-02-26 13: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
Rohan Mitchell
52b6c33aaa
When converting an exchange to a hash for comparison, ensure id lists are sorted - ordering issues should not indicate inequality
2013-11-15 12:09:26 +11:00
Rohan Mitchell
68fe20c37a
Add scope: Exchange.with_product
2013-09-23 17:39:16 +10:00
Rohan Mitchell
f1fa90d7c3
Clone order cycles
2013-08-22 16:53:11 +10:00
Rohan Mitchell
7a75898b2b
Find exchanges going to/from any number of enterprises
2013-08-19 10:41:14 +10:00
Rohan Mitchell
dfd1a89975
Test whether exchanges are incoming
2013-08-19 10:41:14 +10:00
Rohan Mitchell
9563aad9fa
Find exchanges with a particular variant
2013-08-19 10:41:14 +10:00
Rohan Mitchell
552cecb2e0
Find incoming and outgoing exchanges
2013-08-16 10:22:29 +10:00
Rohan Mitchell
ba19db3ccf
Add or update exchange variants when creating or updating order cycles
2013-01-09 10:06:51 +11:00
Rohan Mitchell
cfa96c7615
Each order cycle may not have duplicate exchanges between the same enterprises
2012-11-30 16:37:29 +11:00
Rohan Mitchell
d5310452b6
Admin list order cycles
2012-11-27 10:13:12 +11:00
Rohan Mitchell
6b97872a25
Create OrderCycles, Exchanges, ExchangeFees and ExchangeVariants
2012-11-26 11:03:44 +11:00