Correção do QR do holerite entre outras coisas

This commit is contained in:
2026-06-16 17:01:36 -03:00
parent 80c068c798
commit cf896de165
7 changed files with 106 additions and 24 deletions

View File

@@ -29,12 +29,12 @@ module Pdf
secao "ENTREGAS (#{@entregas.size})"
if @entregas.any?
linhas = [['#', 'Tracking', 'NF', 'Endereço', 'Tipo', 'Valor']]
linhas = [['#', 'Veículo', 'NF', 'Endereço', 'Tipo', 'Valor']]
@entregas.each_with_index do |e, i|
original = e.entrega_original
linhas << [
(i + 1).to_s,
e.tracking_id.to_s.first(14),
original&.vehicle.presence || '—',
original ? "NF #{original.numero_nf}" : '—',
original ? original.address.to_s.first(45) : '—',
e.tipo_cor[:label],
@@ -79,6 +79,8 @@ module Pdf
@pdf.fill_color LARANJA
@pdf.text "TOTAL A PAGAR: #{moeda(total)}", size: 16, style: :bold
@pdf.fill_color '000000'
assinaturas(motorista: @motorista)
end
end
end