#payments_jquery_start .container.inv-res .row .col-lg-12.col-md-12.col-sm-12.col-xs-12 %h3.text-center Recibo de pago .col-lg-12.col-md-12.col-sm-12.col-xs-12 .inv-line .col-lg-6.col-md-6.col-sm-6.col-xs-6.inv-all-pad-left .inv-logo - if params[:TGSH] == 'true' = image_tag 'web/TGSLogo200x200.png', class: '', style:'', alt: "The Grand Selection", height: "124", width: "auto" - else = image_tag 'web/GSDLogo200x200.png', class: '', style:'', alt: "Grand Selection Design", height: "124", width: "auto" .col-lg-6.col-md-6.col-sm-6.col-xs-6.inv-all-pad-right .inv-pad-line %table{:align => "right"} %tr %td .inv-p-1 = "Recibo de pago: " %td .inv-p-2 - if @payment.invoice_n = "GSD-" + @payment.invoice_n - else = "GSD-N/A" %tr %td .inv-p-1 = "Date: " %td .inv-p-3 = @payment.date_paid.to_datetime.strftime("%d/%m/%Y") .row .col-lg-6.col-md-6.col-sm-6.col-xs-6.inv-all-pad-left - if params[:TGSH] == 'true' .inv-p-4 = "B93186807" .inv-p-4 = "TGSH & RUMEX THE GRAND SELECTION" .inv-p-4 = "Calle/ Ana de Austria Urb. Azalea Beach - 42, Complejo El Rio." .inv-p-4 = "Nueva Andalucia. C.p 29670 Marbella, Malaga, España" - else .inv-p-4 = "B93537256" .inv-p-4 = "GRAND SELECTION DESING S.L." .inv-p-4 = "Calle/ Ana de Austria Urb. Azalea Beach - 42, Complejo El Rio." .inv-p-4 = "Nueva Andalucia. C.p 29670 Marbella, Malaga, España" .col-lg-6.col-md-6.col-sm-6.col-xs-6.inv-all-pad-right.inv-pad-1 .inv-p-4 = "Tel: +34 951 204 417" .inv-p-4 = "E-mail: info@thegrandselection.com" .inv-p-4 = "Web: www.thegrandselection.com" .inv-p-4 = "E-mail: info@alpcourchevel.com" .inv-p-4 = "Web: www.alpcourchevel.com" .row .col-lg-6.col-md-6.col-sm-6.col-xs-6.inv-all-pad-left.inv-all-pad-right .inv-p-5 = "Recibo de pago" .row .col-lg-4.col-md-4.col-sm-4.col-xs-4.inv-all-pad-left.inv-all-pad-right .inv-p-6 = "Name" .inv-p-7 = @client.name + " " + @client.last_name .col-lg-4.col-md-4.col-sm-4.col-xs-4.inv-all-pad-left.inv-all-pad-right .inv-p-6 = "Address" .inv-p-7 = @client.address .col-lg-4.col-md-4.col-sm-4.col-xs-4.inv-all-pad-left.inv-all-pad-right .inv-p-6 = "City" .inv-p-7 = @client.city .col-lg-12.col-md-12.col-sm-12.col-xs-12.inv-all-pad-left.inv-all-pad-right .inv-pad-2 .row .col-lg-4.col-md-4.col-sm-4.col-xs-4.inv-all-pad-left.inv-all-pad-right .inv-p-6 = "Country" .inv-p-7 = @client.invoice_cont .col-lg-8.col-md-8.col-sm-8.col-xs-8.inv-all-pad-left.inv-all-pad-right .inv-p-6 = "Contact Details" .inv-p-7 = "Email: " = @client.e_mail .inv-p-7 = "tel: " = @client.tel_num .row .col-lg-12.col-md-12.col-sm-12.col-xs-12.inv-all-pad-left.inv-all-pad-right .inv-line-2 .inv-pad-2 .row .col-lg-12.col-md-12.col-sm-12.col-xs-12.inv-all-pad-left.inv-all-pad-right .col-lg-1.col-md-1.col-sm-1.col-xs-1 .row .inv-p-8-1 = "Qty" .col-lg-7.col-md-7.col-sm-7.col-xs-7 .row .inv-p-8 = "Description" .col-lg-2.col-md-2.col-sm-2.col-xs-2 .inv-row-right .inv-p-8 = "Price per unit" .col-lg-2.col-md-2.col-sm-2.col-xs-2 .inv-row-right .inv-p-8-2 = "Total" .row .col-lg-12.col-md-12.col-sm-12.col-xs-12.inv-all-pad-left.inv-all-pad-right .col-lg-1.col-md-1.col-sm-1.col-xs-1 .row .inv-p-9-1 = "1" .col-lg-7.col-md-7.col-sm-7.col-xs-7 .row .inv-p-9 = @payment.title .col-lg-2.col-md-2.col-sm-2.col-xs-2 .inv-row-right .inv-p-9 = "€" + number_to_currency(@payment.price.to_f/100, precision: 2, separator: ",", delimiter: ".", unit: "") .col-lg-2.col-md-2.col-sm-2.col-xs-2 .inv-row-right .inv-p-9-2 = "€" + number_to_currency(@payment.price.to_f/100, precision: 2, separator: ",", delimiter: ".", unit: "") .row .col-lg-12.col-md-12.col-sm-12.col-xs-12.inv-all-pad-left.inv-all-pad-right.inv-desc-pad-top = raw(@payment.description) .row .col-lg-12.col-md-12.col-sm-12.col-xs-12.inv-all-pad-left.inv-all-pad-right .inv-line-2 .row .col-lg-8.col-md-8.col-sm-8.col-xs-8.inv-all-pad-left.inv-desc-pad-top .inv-p-10 = "Payment" .inv-p-10-1 = "Credit Card" %br = "Id: " + @payment.order_loc.to_s .col-lg-2.col-md-2.col-sm-2.col-xs-2 .inv-p-11 = "Price: ... " .inv-p-11 = @payment.iva.to_s + "% IVA: ... " .inv-p-11 = @payment.payment_fee.to_s + "% P.fee: ... " .inv-p-11 = "Total: ... " .col-lg-2.col-md-2.col-sm-2.col-xs-2.inv-all-pad-right .inv-p-11 = "€" + number_to_currency(@payment.price.to_f/100, precision: 2, separator: ",", delimiter: ".", unit: "") .inv-p-11 = "€" + number_to_currency((@payment.price.to_f/100*@payment.iva.to_f/100), precision: 2, separator: ",", delimiter: ".", unit: "") .inv-p-11 = "€" + number_to_currency(((@payment.price.to_f/100+@payment.price.to_f/100*@payment.iva.to_f/100)*@payment.payment_fee.to_f/100), precision: 2, separator: ",", delimiter: ".", unit: "") .inv-p-11 = "€" + number_to_currency((@payment.price.to_f/100+(@payment.price.to_f/100*@payment.iva.to_f/100)+((@payment.price.to_f/100+@payment.price.to_f/100*@payment.iva.to_f/100)*@payment.payment_fee.to_f/100)), precision: 2, separator: ",", delimiter: ".", unit: "") .row .col-lg-12.col-md-12.col-sm-12.col-xs-12.inv-all-pad-left.inv-all-pad-right .inv-line-3 .row .col-lg-12.col-md-12.col-sm-12.col-xs-12.inv-all-pad-left.inv-all-pad-right .inv-p-12 = "e-mail: info@alpcourchevel.com / info@thegrandselection.com web: www.thegrandselection.com"