lib/br_danfe/danfe.rb in br_danfe-0.5.2 vs lib/br_danfe/danfe.rb in br_danfe-0.6.0
- old
+ new
@@ -39,13 +39,10 @@
def generate
@pdf.stamp("has_no_fiscal_value") if DanfeLib::Helper.has_no_fiscal_value?(@xml)
@pdf.repeat(:all) { repeat_on_each_page }
- det_body_options = { unit_price_precision: @options.products_unit_price_precision,
- quantity_precision: @options.products_quantity_precision }
-
- DanfeLib::DetBody.new(@pdf, @xml, det_body_options).render
+ DanfeLib::DetBody.new(@pdf, @xml).render
@pdf.page_count.times do |i|
@pdf.go_to_page(i + 1)
@pdf.ibox 1.00, 2.08, 8.21, 6.96, "",
I18n.t("danfe.others.page", current: i+1, total: @pdf.page_count),