This commit is contained in:
parent
7756a98fbc
commit
b0cbd7c38c
|
|
@ -10,12 +10,6 @@ class InvoicesController < ApplicationController
|
|||
respond_to do |format|
|
||||
format.html { @inv_format = 'html' }
|
||||
format.pdf do
|
||||
render pdf: "Faktura_VAT_#{@invoice.id}", # Excluding ".pdf" extension.
|
||||
disposition: 'attachment',
|
||||
layout: 'pdf',
|
||||
encoding: 'UTF-8',
|
||||
page_size: 'A4',
|
||||
print_media_type: true,
|
||||
render pdf: "Faktura_VAT_#{@invoice.id}", # Excluding ".pdf" extension.
|
||||
disposition: 'attachment',
|
||||
layout: 'pdf',
|
||||
|
|
|
|||
Loading…
Reference in New Issue