Skip to content

Commit

Permalink
renamed invoice pdf param from esr to payment_slip, refs #425
Browse files Browse the repository at this point in the history
  • Loading branch information
bihorco36 committed Dec 12, 2017
1 parent a137cd0 commit ec01983
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/invoices_controller.rb
Expand Up @@ -119,7 +119,7 @@ def payment_attrs
def pdf_options
{
articles: params[:articles] != 'false',
esr: params[:esr] != 'false'
payment_slip: params[:payment_slip] != 'false'
}
end

Expand Down
2 changes: 1 addition & 1 deletion app/domain/export/pdf/invoice.rb
Expand Up @@ -27,7 +27,7 @@ def invoice_page(pdf, invoice, options)
if options[:articles]
sections.each { |section| section.new(pdf, invoice).render }
end
PaymentSlip.new(pdf, invoice).render if options[:esr]
PaymentSlip.new(pdf, invoice).render if options[:payment_slip]
end

def customize(pdf)
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/dropdown/invoices.rb
Expand Up @@ -31,7 +31,7 @@ def export

def pdf_links
add_item(translate(:full), export_path(:pdf), item_options)
add_item(translate(:articles_only), export_path(:pdf, esr: false), item_options)
add_item(translate(:articles_only), export_path(:pdf, payment_slip: false), item_options)
add_item(translate(:esr_only), export_path(:pdf, articles: false), item_options)
end

Expand Down

0 comments on commit ec01983

Please sign in to comment.