suite
This commit is contained in:
parent
c0c6c94896
commit
0abc155b81
@ -196,37 +196,40 @@
|
|||||||
%tr
|
%tr
|
||||||
|
|
||||||
%td
|
%td
|
||||||
Forfait
|
-if price_line.location_template
|
||||||
="#{price_line.qte}J location"
|
Forfait
|
||||||
=price_line.title
|
="#{price_line.qte}J location"
|
||||||
|
=price_line.title
|
||||||
|
|
||||||
-if price_line.ship_price_ht.to_f > 0.0
|
|
||||||
="+ livraison incluse"
|
-if price_line.ship_price_ht.to_f > 0.0
|
||||||
%br
|
="+ livraison incluse"
|
||||||
Livraison :
|
|
||||||
|
|
||||||
=l price_line.ship_at, :format => :short_date if price_line.ship_at
|
|
||||||
|
|
||||||
%br
|
|
||||||
Récupération :
|
|
||||||
|
|
||||||
=l price_line.return_at, :format => :short_date if price_line.return_at
|
|
||||||
|
|
||||||
-if price_line.carburant
|
|
||||||
%br
|
%br
|
||||||
Carburant : livrée réservoir plein, rendu plein, remise à niveau :
|
Livraison :
|
||||||
=price_line.carburant_type
|
|
||||||
=number_to_currency price_line.carburant_price
|
=l price_line.ship_at, :format => :short_date if price_line.ship_at
|
||||||
HT / litres
|
|
||||||
="(#{number_to_currency(price_line.carburant_price*(price_line.tva_account_value/100+1))} TTC)"
|
%br
|
||||||
|
Récupération :
|
||||||
%br
|
|
||||||
%br
|
=l price_line.return_at, :format => :short_date if price_line.return_at
|
||||||
|
|
||||||
Caution : chèque de
|
-if price_line.carburant
|
||||||
=number_to_currency price_line.caution
|
%br
|
||||||
non encaissé
|
Carburant : livrée réservoir plein, rendu plein, remise à niveau :
|
||||||
|
=price_line.carburant_type
|
||||||
|
=number_to_currency price_line.carburant_price
|
||||||
|
HT / litres
|
||||||
|
="(#{number_to_currency(price_line.carburant_price*(price_line.tva_account_value/100+1))} TTC)"
|
||||||
|
|
||||||
|
%br
|
||||||
|
%br
|
||||||
|
|
||||||
|
Caution : chèque de
|
||||||
|
=number_to_currency price_line.caution
|
||||||
|
non encaissé
|
||||||
|
-else
|
||||||
|
=price_line.title
|
||||||
|
|
||||||
|
|
||||||
%td.numeraire
|
%td.numeraire
|
||||||
@ -237,21 +240,22 @@
|
|||||||
|
|
||||||
%tr
|
%tr
|
||||||
%td
|
%td
|
||||||
%br
|
-if price_line_block.covid
|
||||||
%br
|
%br
|
||||||
%br
|
%br
|
||||||
-if @price_document.label == "Facture"
|
%br
|
||||||
%strong
|
-if @price_document.label == "Facture"
|
||||||
Le réglement de cette facture vaut acceptation de nos conditions générales de vente et acceptation du contrat N°
|
%strong
|
||||||
=@price_document.contrat_reference
|
Le réglement de cette facture vaut acceptation de nos conditions générales de vente et acceptation du contrat N°
|
||||||
|
=@price_document.contrat_reference
|
||||||
|
|
||||||
|
-else @price_document.label == "Contrat"
|
||||||
|
%strong La signature de ce contrat avec "Bon pour accord" où le réglement de la facture associée vaut acceptation de nos conditions générales de vente et acceptation de ce contrat.
|
||||||
|
|
||||||
-else @price_document.label == "Contrat"
|
%br
|
||||||
%strong La signature de ce contrat avec "Bon pour accord" où le réglement de la facture associée vaut acceptation de nos conditions générales de vente et acceptation de ce contrat.
|
%br
|
||||||
|
%strong
|
||||||
%br
|
COVID-19 : Nous vous demandons de respecter les gestes barrières avec le livreur, et laisser la machine au moins 5h sans utilisation à la livraison & avant la récupération.
|
||||||
%br
|
|
||||||
%strong
|
|
||||||
COVID-19 : Nous vous demandons de respecter les gestes barrières avec le livreur, et laisser la machine au moins 5h sans utilisation à la livraison & avant la récupération.
|
|
||||||
|
|
||||||
%td
|
%td
|
||||||
%td
|
%td
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
|
|
||||||
= f.input :customer_ref, :label => "Référence commande client :"
|
= f.input :customer_ref, :label => "Référence commande client :"
|
||||||
|
|
||||||
|
= f.input :covid, :label => "Mention covid ?"
|
||||||
|
|
||||||
|
|
||||||
.price_lines_form
|
.price_lines_form
|
||||||
|
@ -134,6 +134,8 @@
|
|||||||
%table.form-table{:style => "width:100%;margin-top:5px;"}
|
%table.form-table{:style => "width:100%;margin-top:5px;"}
|
||||||
%tr
|
%tr
|
||||||
%td{:style => "width:30px"}
|
%td{:style => "width:30px"}
|
||||||
|
%td
|
||||||
|
= form.input :location_template, :label => "Location ?"
|
||||||
%td
|
%td
|
||||||
= form.input :start_at, :label => "Date de début de location :", :as => :date
|
= form.input :start_at, :label => "Date de début de location :", :as => :date
|
||||||
%td
|
%td
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddCovidToPriceLineBlocks < ActiveRecord::Migration[6.0]
|
||||||
|
def change
|
||||||
|
add_column :price_line_blocks, :covid, :boolean, :default => true
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddLocationTemplateToPriceLines < ActiveRecord::Migration[6.0]
|
||||||
|
def change
|
||||||
|
add_column :price_lines, :location_template, :boolean, :default => true
|
||||||
|
end
|
||||||
|
end
|
@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 2020_04_12_143258) do
|
ActiveRecord::Schema.define(version: 2020_05_25_113631) do
|
||||||
|
|
||||||
create_table "accounting_zones", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
|
create_table "accounting_zones", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
|
||||||
t.string "name"
|
t.string "name"
|
||||||
@ -1953,6 +1953,7 @@ ActiveRecord::Schema.define(version: 2020_04_12_143258) do
|
|||||||
t.boolean "cc_remise_qte_ok"
|
t.boolean "cc_remise_qte_ok"
|
||||||
t.integer "p_fournisseur_id"
|
t.integer "p_fournisseur_id"
|
||||||
t.date "ct_payment_end_at"
|
t.date "ct_payment_end_at"
|
||||||
|
t.boolean "covid", default: true
|
||||||
t.index ["p_customer_id"], name: "index_price_line_blocks_on_p_customer_id"
|
t.index ["p_customer_id"], name: "index_price_line_blocks_on_p_customer_id"
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -2112,6 +2113,7 @@ ActiveRecord::Schema.define(version: 2020_04_12_143258) do
|
|||||||
t.datetime "end_at"
|
t.datetime "end_at"
|
||||||
t.datetime "ship_at"
|
t.datetime "ship_at"
|
||||||
t.datetime "return_at"
|
t.datetime "return_at"
|
||||||
|
t.boolean "location_template", default: true
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "quote_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
|
create_table "quote_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user