From 22b336f7385b1fc9b0dec2f3754ca880880ccc66 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Sun, 12 Apr 2020 17:06:12 +0200 Subject: [PATCH] suite --- app/models/price_document.rb | 2 +- app/views/admin/price_documents/print.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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%;"}