1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

multilingual watermark on invoices

This commit is contained in:
Sylvain 2019-03-11 14:47:52 +01:00
parent c27345bf46
commit e35c50e42b
6 changed files with 1 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
app/pdfs/data/watermark.xcf Normal file

Binary file not shown.

View File

@ -340,7 +340,7 @@ class PDF::Invoice < Prawn::Document
transparent(0.1) do
rotate(45, origin: [0, 0]) do
image "#{Rails.root}/app/pdfs/data/watermark.png", at: [90, 150]
image "#{Rails.root}/app/pdfs/data/watermark-#{I18n.locale}.png", at: [90, 150]
end
end
end