Class: OrderFax
- Includes:
- ArticlesHelper, OrdersHelper
- Defined in:
- app/documents/order_fax.rb
Constant Summary collapse
- BATCH_SIZE =
250
Constants inherited from RenderPdf
RenderPdf::BOTTOM_MARGIN, RenderPdf::DEFAULT_FONT, RenderPdf::FOOTER_FONT_SIZE, RenderPdf::FOOTER_SPACE, RenderPdf::HEADER_FONT_SIZE, RenderPdf::HEADER_SPACE, RenderPdf::TOP_MARGIN
Instance Attribute Summary
Attributes inherited from OrderPdf
Instance Method Summary collapse
Methods included from OrdersHelper
#article_version_change_hint, #format_units_to_order, #options_for_suppliers_to_select, #order_article_class, #order_pdf, #ordered_quantities_different_from_group_orders?, #ordergroup_count, #pkg_helper, #pkg_helper_icon, #ratio_quantity_data, #receive_button, #receive_input_field, #supplier_link, #units_history_line, #update_articles_link
Methods included from ArticlesHelper
#field_with_preset_value_and_errors, #format_billing_unit, #format_billing_unit_with_ratios, #format_group_order_unit, #format_group_order_unit_with_ratios, #format_price_unit, #format_supplier_order_unit, #format_supplier_order_unit_with_ratios, #highlight_new, #row_classes
Methods inherited from OrderPdf
#billing_article_result, #billing_quantity_with_tolerance, #each_group_order_article_for_order_article, #each_group_order_article_for_ordergroup, #each_ordergroup, #each_ordergroup_batch, #group_order_article_result, #group_order_articles, #initialize, #nice_table, #order_article_price, #order_article_price_per_unit, #ordergroups, #price_per_billing_unit, #stock_ordergroup_name
Methods inherited from RenderPdf
#down_or_page, #font_path, #font_size, #fontsize, #initialize, #number_to_currency, #pdf_add_page_breaks?, #to_pdf
Methods included from ApplicationHelper
#base_errors, #bootstrap_flash_patched, #close_button, #expand, #foodcoop_css_path, #foodcoop_css_tag, #format_currency, #format_date, #format_datetime, #format_datetime_timespec, #format_iban, #format_number, #format_roles, #format_time, #heading_helper, #icon, #items_per_page, #link_to_gmaps, #link_to_top, #pagination_links_remote, #remote_link_to, #show_title?, #show_user, #show_user_link, #sort_link_helper, #tab_is_active?, #truncate, #weekday
Methods included from PathHelper
#finance_group_transactions_path
Constructor Details
This class inherits a constructor from OrderPdf
Instance Method Details
#body ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'app/documents/order_fax.rb', line 15 def body from_paragraph recipient_paragraph articles_paragraph rescue StandardError => e Rails.logger.info e.backtrace raise # always reraise end |
#filename ⇒ Object
7 8 9 |
# File 'app/documents/order_fax.rb', line 7 def filename I18n.t('documents.order_fax.filename', name: order.name, date: order.ends.to_date) + '.pdf' end |
#title ⇒ Object
11 12 13 |
# File 'app/documents/order_fax.rb', line 11 def title false end |