174 lines
4.7 KiB
Plaintext
174 lines
4.7 KiB
Plaintext
#main
|
|
|
|
|
|
|
|
%div{:style => "position:absolute;top:2cm;right:1.7cm;font-size:14pt;"}
|
|
=@p_document.label
|
|
=@p_document.d_number
|
|
|
|
|
|
%div{:style => "height:4cm;"}
|
|
|
|
|
|
|
|
%div{:style => "position:relative;width:6cm;margin-right:0.2cm;float:right;"}
|
|
-if @p_document.label != "Bon de livraison"
|
|
%div{:style => "border:0px solid black;padding:4px 8px;min-height:80px;"}
|
|
%h3{:style => "position:absolute;top:-30px;"} Adresse de facturation
|
|
|
|
|
|
%strong=@p_document.particular_bill.organisation
|
|
%br
|
|
=@p_document.particular_bill.firstname
|
|
|
|
=@p_document.particular_bill.name
|
|
%br
|
|
=@p_document.particular_bill.address_2
|
|
|
|
-if @p_document.particular_bill.address_3?
|
|
%br
|
|
=@p_document.particular_bill.address_3
|
|
%br
|
|
=@p_document.particular_bill.cp
|
|
|
|
=@p_document.particular_bill.city
|
|
%br
|
|
=@p_document.particular_bill.country
|
|
|
|
-if false
|
|
.p_contacts
|
|
-@element.particular_bill.p_contacts.each do |p_contact|
|
|
.p_contact
|
|
=p_contact.name if p_contact.name?
|
|
=p_contact.tel if p_contact.tel?
|
|
=link_to p_contact.email, "mailto:"+p_contact.email.to_s if p_contact.email?
|
|
|
|
|
|
%div{:style => "position:relative;width:6cm;margin-right:0.5cm;float:right;"}
|
|
%div{:style => "border:0px solid black;padding:4px 8px;min-height:80px;"}
|
|
|
|
%h3{:style => "position:absolute;top:-30px;"} Adresse de livraison
|
|
|
|
%strong=@p_document.particular_send.organisation
|
|
%br
|
|
=@p_document.particular_send.firstname
|
|
|
|
=@p_document.particular_send.name
|
|
%br
|
|
=@p_document.particular_send.address_2
|
|
|
|
-if @p_document.particular_send.address_3?
|
|
%br
|
|
=@p_document.particular_send.address_3
|
|
%br
|
|
=@p_document.particular_send.cp
|
|
|
|
=@p_document.particular_send.city
|
|
%br
|
|
=@p_document.particular_send.country
|
|
|
|
-if false
|
|
.p_contacts
|
|
-@element.particular_send.p_contacts.each do |p_contact|
|
|
.p_contact
|
|
=p_contact.name if p_contact.name?
|
|
=p_contact.tel if p_contact.tel?
|
|
=link_to p_contact.email, "mailto:"+p_contact.email.to_s if p_contact.email?
|
|
|
|
|
|
%p{:style => "clear:both;height:0.5cm;"}
|
|
|
|
%table.en-tete-table{:style => "width:auto;"}
|
|
%tr
|
|
%th Date
|
|
-if false
|
|
%th N° Client
|
|
%th Type
|
|
%th Référence doc.
|
|
-if @p_document.cust_ref?
|
|
%th Réf. com. client
|
|
|
|
%tr
|
|
|
|
|
|
%td{:style => "width:100px"}
|
|
=l @p_document.created_at, :format => :date #@p_document.created_at
|
|
|
|
-if false
|
|
%td{:style => "width:70px"}
|
|
=@element.p_customer.code
|
|
|
|
%td{:style => "width:110px"}
|
|
=@p_document.label
|
|
|
|
%td{:style => "width:90px"}
|
|
=@p_document.d_number
|
|
-if @p_document.cust_ref?
|
|
%td{:style => "width:90px"}
|
|
=@p_document.cust_ref
|
|
%br
|
|
|
|
|
|
=render :partial => "admin/p_sheet_lines/print_p_sheet_lines", :locals => {:sheet_lines => @p_document.p_sheet_lines }
|
|
|
|
|
|
%table.en-tete-table{:style => "width:auto;position:relative;"}
|
|
%tr
|
|
%th Conditions de réglement
|
|
%th Echéance
|
|
|
|
|
|
%tr
|
|
|
|
|
|
%td{:style => "width:150px;"}
|
|
-if @p_document.p_payment_type
|
|
=@p_document.p_payment_type.name
|
|
="-"
|
|
|
|
-if @p_document.comptant
|
|
Comptant
|
|
-else
|
|
=@p_document.payment_delais.to_i
|
|
-if @p_document.payment_fin_de_mois
|
|
jours fin de mois
|
|
-else
|
|
jours nets
|
|
|
|
%td{:style => "width:100px"}
|
|
=l @p_document.echeance, :format => :date
|
|
|
|
|
|
|
|
-if @element.p_customer.p_contacts.count > 0
|
|
%p{:style => "margin-bottom:0;"} Contacts généraux du compte client :
|
|
.p_contacts
|
|
-@element.p_customer.p_contacts.each do |p_contact|
|
|
.p_contact
|
|
=p_contact.name if p_contact.name?
|
|
=p_contact.tel if p_contact.tel?
|
|
=link_to p_contact.email, "mailto:"+p_contact.email.to_s if p_contact.email?
|
|
|
|
-if @p_document.label == "Facture"
|
|
%p.reglement
|
|
|
|
Passée la date d'échéance ci-dessus, une pénalité de retard de 1% mois sera
|
|
appliquée (Loi 2008-776 du 4 août 2008) ainsi qu'une indemnité pour frais de
|
|
recouvrement de 40€ (Décret 2012-1115 du 2 octobre 2012).
|
|
%br
|
|
Pas d'escompte pour règlement anticipé.
|
|
|
|
:scss
|
|
.en-tete-table{
|
|
table{
|
|
border-collapse:collapse;
|
|
}
|
|
td,th{
|
|
border:1px solid black;
|
|
}
|
|
}
|
|
.reglement{
|
|
margin-top:20px;
|
|
color:rgba(0,0,0,0.6);
|
|
font-size:8pt;
|
|
} |