Correções de integração Fases 2/3 ↔ 4-8 + Auditoria UI + README final

This commit is contained in:
2026-06-11 18:48:44 -03:00
parent 8b3d4bc87f
commit 3b07e72d6e
19 changed files with 879 additions and 37 deletions

View File

@@ -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)
}