Sha256: cc676fb5a09a717488527b3f8a024d6356717f4e5d3dbb0f6ec51003cd5742a4
Contents?: true
Size: 653 Bytes
Versions: 23
Compression:
Stored size: 653 Bytes
Contents
# frozen_string_literal: true module BrInvoicesPdf module Cfe module Renderer module Totals extend Util::BaseRenderer extend BaseRenderer module_function def execute(pdf, data) insert_box_info(pdf, data) pdf.move_down(5) end def box_info(data_payment) [ ['Total bruto dos itens', format_currency(data_payment[:total_price])], ['Desconto', format_currency(data_payment[:discount])], ['Total', format_currency(data_payment[:total])] ] end private_class_method :box_info end end end end
Version data entries
23 entries across 23 versions & 1 rubygems