142 lines
3.1 KiB
Plaintext
142 lines
3.1 KiB
Plaintext
|
|
-element = p_document.element
|
|
|
|
%div{:style => "page-break-after: always;position:relative;min-height:10cm"}
|
|
.panel#coordonnes
|
|
%div{:style => "text-transform:uppercase;font-size:11pt"}
|
|
%strong{:style => "text-transform:uppercase;font-size:11pt"}
|
|
=p_document.particular_send.civilite
|
|
|
|
=element.particular_send.organisation
|
|
|
|
|
|
=p_document.particular_send.name
|
|
=p_document.particular_send.firstname
|
|
|
|
|
|
-if p_document.particular_send.address_2?
|
|
%br
|
|
=p_document.particular_send.address_2
|
|
|
|
-if p_document.particular_send.address_3?
|
|
%br
|
|
=p_document.particular_send.address_3
|
|
-if p_document.particular_send.cp? and p_document.particular_send.city?
|
|
%br
|
|
=p_document.particular_send.cp
|
|
|
|
=p_document.particular_send.city
|
|
|
|
%div{:style => "height:7pt;"}
|
|
-p_document.p_sheet_line.p_product.p_product_specs.each do |p_product_spec|
|
|
%div{:style => "font-size:7pt;"}
|
|
=p_product_spec.code
|
|
=p_product_spec.description
|
|
|
|
.panel#numero_bl
|
|
=p_document.label
|
|
=p_document.d_number
|
|
|
|
-if p_document.cust_ref?
|
|
="- Réf int. client :"
|
|
=p_document.cust_ref
|
|
|
|
N° Client :
|
|
=element.p_customer.code
|
|
|
|
%div{:style => "font-size:11pt;"}
|
|
-i = 0
|
|
-element.p_customer.p_contacts.each do |p_contact|
|
|
-i = i + 1
|
|
.p_contact{:style => "display:inline-block;"}
|
|
=p_contact.name if p_contact.name?
|
|
=p_contact.tel if p_contact.tel?
|
|
-if i != p_document.particular_send.p_contacts.count
|
|
="-"
|
|
|
|
|
|
.panel#contacts
|
|
|
|
-p_document.particular_send.p_contacts.each do |p_contact|
|
|
|
|
.p_contact{:style => "text-transform:uppercase;font-size:11pt"}
|
|
=p_contact.name if p_contact.name?
|
|
=p_contact.tel if p_contact.tel?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.panel#produit
|
|
-if p_document.p_sheet_line
|
|
%span{:style => "text-transform:uppercase;font-size:13px"}
|
|
=p_document.p_sheet_line.qte
|
|
%br
|
|
|
|
|
|
=p_document.p_sheet_line.p_product.name
|
|
|
|
.panel#prix
|
|
%span{:style => "text-transform:uppercase;font-size:13px"}
|
|
= ((p_document.p_sheet_line.price.to_f*(p_document.p_sheet_line.tva.to_f+1))*1000).round(2)
|
|
|
|
.panel#date_commande
|
|
=l p_document.element.created_at, :format => :date
|
|
|
|
.panel#date_livraison
|
|
=l p_document.p_ship_tour_truck.p_ship_tour.start_at, :format => :date if p_document.p_ship_tour_truck and p_document.p_ship_tour_truck.p_ship_tour
|
|
|
|
|
|
:scss
|
|
.panel{
|
|
position:absolute;
|
|
//border:1px solid black;
|
|
}
|
|
|
|
#contacts{
|
|
left:9.4cm;
|
|
top:5.2cm;
|
|
width:8cm;
|
|
height:2.8cm;
|
|
font-size:8pt;
|
|
}
|
|
|
|
#date_commande{
|
|
left:10cm;
|
|
top:9.5cm;
|
|
|
|
}
|
|
|
|
#date_livraison{
|
|
left:14.5cm;
|
|
top:9.5cm;
|
|
}
|
|
|
|
#prix{
|
|
left:15.3cm;
|
|
top:2.8cm;
|
|
width:1.3cm;
|
|
height:2cm;
|
|
}
|
|
#produit{
|
|
left:9.5cm;
|
|
top:2.8cm;
|
|
width:4cm;
|
|
height:1.5cm;
|
|
}
|
|
#coordonnes{
|
|
left:0.7cm;
|
|
top:3.6cm;
|
|
width:8cm;
|
|
height:3cm;
|
|
}
|
|
|
|
#numero_bl{
|
|
top:0.8cm;
|
|
left:9.2cm;
|
|
text-align:center;
|
|
width:10.5cm;
|
|
|
|
}
|