diff --git a/app/models/price_document.rb b/app/models/price_document.rb index 6043738..d3ee6f0 100644 --- a/app/models/price_document.rb +++ b/app/models/price_document.rb @@ -244,7 +244,7 @@ class PriceDocument < ApplicationRecord @final_file = "#{Rails.root}/pdf/price_documents/#{doc_number}_temp2.pdf" @final_file2 = "#{Rails.root}/pdf/price_documents/#{doc_number}.pdf" - url = (Rails.env.development? ? "http://localhost:4000" : "http://lockaz.fr").to_s+url + url = (Rails.env.development? ? "http://localhost:4000" : "https://lockaz.fr").to_s+url puts url pdf = ("pdf") diff --git a/app/views/admin/price_documents/print.html.haml b/app/views/admin/price_documents/print.html.haml index 9cb80ba..4a50309 100644 --- a/app/views/admin/price_documents/print.html.haml +++ b/app/views/admin/price_documents/print.html.haml @@ -61,7 +61,7 @@ -price_line_block = @price_document.price_line_block %body - %div{:style => "float:right;margin-top:3cm;font-size:14px;margin-bottom:1cm;padding-right:2cm;width:350px;"} + %div{:style => "float:right;margin-top:3cm;font-size:14px;margin-bottom:1cm;padding-right:2cm;width:370px;"} %table{:style => "width:100%;"} %tr %td{:style => "width:50%;"}