Correções de integração Fases 2/3 ↔ 4-8 + Auditoria UI + README final
This commit is contained in:
@@ -31,6 +31,10 @@ class Entrega < ApplicationRecord
|
||||
where(route_id: route_id)
|
||||
}
|
||||
|
||||
scope :do_mes, ->(data = Date.current) {
|
||||
where(planned_date: data.beginning_of_month..data.end_of_month)
|
||||
}
|
||||
|
||||
scope :da_conta_gade, -> {
|
||||
where(account_id: ENV.fetch('DB_EXISTING_ACCOUNT_ID', 95907).to_i)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user