50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
%div.volucompteur{:style => "border:1px solid black;padding:10px"}
|
|
|
|
%p
|
|
.right
|
|
=link_to "Modifier le volucompteur", edit_admin_p_volucompteur_path(p_volucompteur.id), :remote => true if @p_ship_tour and @p_ship_tour.state != "livrée"
|
|
|
|
-if p_volucompteur.valid?
|
|
.round.green
|
|
-else
|
|
.round.red
|
|
Volucompteur du camion pour cette tournée
|
|
%table.table
|
|
%tr
|
|
%th Volume de départ
|
|
%th Volume d'arrivée
|
|
%th Volume livré
|
|
%th Volume volucompteur
|
|
%th Différence
|
|
%tr
|
|
%td=p_volucompteur.start_vol
|
|
%td=p_volucompteur.end_vol
|
|
%td=p_volucompteur.p_ship_tour_truck.volume_total_th_ok.to_f
|
|
%td=p_volucompteur.volume_used
|
|
%td=p_volucompteur.delta_calc_ok
|
|
|
|
|
|
|
|
|
|
|
|
-if p_volucompteur.p_vol_excepts.count > 0
|
|
Raison différence volucompteur :
|
|
%table.table
|
|
-p_volucompteur.p_vol_excepts.each do |p_vol_except|
|
|
%tr
|
|
%td
|
|
=p_vol_except.p_brut_product.name if p_vol_except.p_brut_product
|
|
%td
|
|
=p_vol_except.qte.to_s+"L"
|
|
%td
|
|
=simple_format p_vol_except.justif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|