Fix typos in documentation

This commit is contained in:
Pau Perez
2018-01-31 15:23:31 +01:00
parent aa4bd7f397
commit c79641c77c
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
# Deliers an email with a report of the order cycle to each of its suppliers
# Delivers an email with a report of the order cycle to each of its suppliers
OrderCycleNotificationJob = Struct.new(:order_cycle_id) do
def perform
order_cycle = OrderCycle.find(order_cycle_id)

View File

@@ -76,7 +76,7 @@ class OrderCycle < ActiveRecord::Base
enterprises = Enterprise.managed_by(user)
# Order cycles where I managed an enterprise at either end of an outgoing exchange
# ie. coordinator or distibutor
# ie. coordinator or distributor
joins(:exchanges).merge(Exchange.outgoing).
where('exchanges.receiver_id IN (?) OR exchanges.sender_id IN (?)', enterprises, enterprises).
select('DISTINCT order_cycles.*')