diff --git a/app/documents/order_fax.rb b/app/documents/order_fax.rb index 00277132..ba542173 100644 --- a/app/documents/order_fax.rb +++ b/app/documents/order_fax.rb @@ -80,7 +80,7 @@ def articles_paragraph subtotal = oa.units_to_order * price total += subtotal data << [oa.article_version.order_number, - number_with_precision(oa.units_to_order, precision: 2), + number_with_precision(oa.units_to_order, precision: 3), format_supplier_order_unit_with_ratios(oa.price), oa.article_version.name, number_to_currency(price), diff --git a/app/lib/order_csv.rb b/app/lib/order_csv.rb index 0314b243..a3b0dc56 100644 --- a/app/lib/order_csv.rb +++ b/app/lib/order_csv.rb @@ -19,7 +19,7 @@ def data @object.order_articles.ordered.includes(:article_version).all.map do |oa| yield [ oa.article_version.order_number, - number_with_precision(oa.units_to_order, precision: 2), + number_with_precision(oa.units_to_order, precision: 3), format_supplier_order_unit_with_ratios(oa.article_version), oa.article_version.name, number_to_currency(oa.article_version.price), diff --git a/app/lib/order_txt.rb b/app/lib/order_txt.rb index 3afc1000..11a33852 100644 --- a/app/lib/order_txt.rb +++ b/app/lib/order_txt.rb @@ -21,7 +21,7 @@ def to_txt I18n.t('orders.fax.name')) # now display all ordered articles @order.order_articles.ordered.includes(:article_version).each do |oa| - text += format("%8s %8.2f %s\n", oa.article_version.order_number, oa.units_to_order, oa.article_version.name) + text += format("%8s %8.3f %s\n", oa.article_version.order_number, oa.units_to_order, oa.article_version.name) end text end