suite
This commit is contained in:
parent
47aed38c79
commit
b8df7ba0e8
@ -31,6 +31,11 @@ $ap_error:rgb(249,163,166);
|
|||||||
$ap_warn:rgb(255,192,0);
|
$ap_warn:rgb(255,192,0);
|
||||||
$ap_dark_gray:rgb(76,76,76);
|
$ap_dark_gray:rgb(76,76,76);
|
||||||
|
|
||||||
|
.table-striped{
|
||||||
|
tr{
|
||||||
|
background:white;
|
||||||
|
}
|
||||||
|
}
|
||||||
.navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus{
|
.navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus{
|
||||||
|
|
||||||
background:$ap_dark_gray;
|
background:$ap_dark_gray;
|
||||||
|
@ -5,9 +5,7 @@
|
|||||||
body {
|
body {
|
||||||
padding:10px;
|
padding:10px;
|
||||||
|
|
||||||
background:url('/connexion.jpg') fixed center center;
|
font-family: 'Nunito Sans', sans-serif;
|
||||||
|
|
||||||
background-size:cover;
|
|
||||||
margin:0px;
|
margin:0px;
|
||||||
padding:0px;
|
padding:0px;
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ class Admin::PFournisseursController < ApplicationController
|
|||||||
def new
|
def new
|
||||||
|
|
||||||
|
|
||||||
@p_fournisseur = PFournisseur.new
|
@p_fournisseur = PFournisseur.new(:country => "FR")
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -32,12 +32,12 @@ class PriceLine < ApplicationRecord
|
|||||||
|
|
||||||
|
|
||||||
def ca_product_no_remise
|
def ca_product_no_remise
|
||||||
self.p_product_ref.no_remise
|
self.p_product_ref.no_remise if self.p_product_ref
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
def ca_price_calc
|
def ca_price_calc
|
||||||
self.p_product_ref.p_product.price_calc == "Kg"
|
self.p_product_ref.p_product.price_calc == "Kg" if self.p_product_ref and self.p_product_ref.p_product
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -266,7 +266,7 @@ class PriceLine < ApplicationRecord
|
|||||||
|
|
||||||
def ca_product_remise_enrobage_ok
|
def ca_product_remise_enrobage_ok
|
||||||
if !self.product_no_remise and !self.ct_u_price_ht and self.p_product_ref and self.p_product_ref.p_product and self.p_product_ref.p_product.discount_enrobage
|
if !self.product_no_remise and !self.ct_u_price_ht and self.p_product_ref and self.p_product_ref.p_product and self.p_product_ref.p_product.discount_enrobage
|
||||||
true
|
false
|
||||||
else
|
else
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
@ -159,31 +159,7 @@ class PriceLineBlock < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def ca_tot_fdp_ht
|
def ca_tot_fdp_ht
|
||||||
if self.ct_tot_fdp_ht
|
0.0
|
||||||
self.ct_tot_fdp_ht
|
|
||||||
else
|
|
||||||
if self.p_customer_cat_id == 2
|
|
||||||
if (self.tot_lines_ht + self.tot_discount_ht) > 290.0
|
|
||||||
0.0
|
|
||||||
elsif (self.tot_lines_ht + self.tot_discount_ht) >= 150.0
|
|
||||||
15.0
|
|
||||||
else
|
|
||||||
30.0
|
|
||||||
end
|
|
||||||
else
|
|
||||||
|
|
||||||
if ca_weight_tot > 45
|
|
||||||
0.0
|
|
||||||
elsif ca_weight_tot > 30
|
|
||||||
25.0
|
|
||||||
else
|
|
||||||
40.0
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -191,7 +167,7 @@ class PriceLineBlock < ApplicationRecord
|
|||||||
if self.accounting_zone_id == 1
|
if self.accounting_zone_id == 1
|
||||||
20.0
|
20.0
|
||||||
else
|
else
|
||||||
0.0
|
20.0 #force
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
= label_tag :remember_me, "Se rappeler de moi ?"
|
= label_tag :remember_me, "Se rappeler de moi ?"
|
||||||
|
|
||||||
|
|
||||||
%p= submit_tag "Se connecter", :class => "btn btn-large btn-primary"
|
%p= submit_tag "Se connecter", :class => "btn btn-large btn-primary", :style => ""
|
||||||
|
|
||||||
%p= link_to "Mot de passe oublié ?", new_admin_password_reset_path
|
%p= link_to "Mot de passe oublié ?", new_admin_password_reset_path, :style => "color:red;"
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
%li= link_to "Tous", admin_p_documents_path, :class => ("active" if !params[:price_document_type_id])
|
%li= link_to "Tous", admin_p_documents_path, :class => ("active" if false and !params[:price_document_type_id])
|
||||||
- PriceDocumentType.order("id DESC").all.each do |p_document_type|
|
- PriceDocumentType.order("id DESC").all.each do |p_document_type|
|
||||||
%li= link_to p_document_type.label, admin_price_documents_path(:price_document_type_id => p_document_type.id), :class => ("active" if p_document_type.id.to_s == params[:price_document_type_id].to_s)
|
%li= link_to p_document_type.label, admin_price_documents_path(:price_document_type_id => p_document_type.id), :class => ("active" if false and p_document_type.id.to_s == params[:price_document_type_id].to_s)
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
|
|
||||||
- PriceDocumentType.order("id DESC").all.each do |p_document_type|
|
- PriceDocumentType.order("id DESC").all.each do |p_document_type|
|
||||||
%li= link_to p_document_type.label, admin_price_documents_path(:price_document_type_id => p_document_type.id), :class => ("active" if p_document_type.id.to_s == params[:price_document_type_id].to_s)
|
%li= link_to p_document_type.label, admin_price_documents_path(:price_document_type_id => p_document_type.id), :class => ("active" if false and p_document_type.id.to_s == params[:price_document_type_id].to_s)
|
||||||
|
|
||||||
%li= link_to "Tous documents", admin_price_documents_path, :class => ("active" if !params[:price_document_type_id])
|
%li= link_to "Tous documents", admin_price_documents_path, :class => ("active" if false and !params[:price_document_type_id])
|
||||||
=#%li= link_to "Matières premières", admin_p_brut_products_path
|
=#%li= link_to "Matières premières", admin_p_brut_products_path
|
||||||
=#%li= link_to "Normes produits", admin_p_product_specs_path
|
=#%li= link_to "Normes produits", admin_p_product_specs_path
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
.content
|
.content
|
||||||
=f.inputs do
|
=f.inputs do
|
||||||
= f.input :p_customer_cat_id, :label => "Catégorie client", :include_blank => false, :collection => PCustomerCat.order(:name).all, :as => :select
|
= f.input :p_customer_cat_id, :label => "Catégorie client", :include_blank => false, :collection => PCustomerCat.order(:name).all, :as => :select
|
||||||
= f.input :min, :label => "Min :"
|
= f.input :min, :label => "Min annuel (€) :"
|
||||||
=# f.input :max, :label => "Max :"
|
=# f.input :max, :label => "Max :"
|
||||||
= f.input :percent, :label => "Pourcentage de réduction :"
|
= f.input :percent, :label => "Pourcentage de réduction :"
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
%td
|
%td
|
||||||
=">"
|
=">"
|
||||||
= market_discount.min
|
= market_discount.min
|
||||||
|
="€"
|
||||||
%td= market_discount.percent.to_s+"%"
|
%td= market_discount.percent.to_s+"%"
|
||||||
|
|
||||||
%td.actions
|
%td.actions
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.qi_header
|
.qi_header
|
||||||
.right= link_to 'Ajouter une remise', new_admin_market_discount_path(), :class => "btn btn-primary", :remote => true
|
.right= link_to 'Ajouter une remise', new_admin_market_discount_path(), :class => "btn btn-primary bgbd-clients", :remote => true
|
||||||
%h1
|
%h1
|
||||||
Remises marché
|
Remises marché
|
||||||
%span
|
%span
|
||||||
@ -12,7 +12,7 @@
|
|||||||
%table.table
|
%table.table
|
||||||
%tr
|
%tr
|
||||||
%th Catégorie
|
%th Catégorie
|
||||||
%th Min
|
%th Min annuel
|
||||||
%th Réduction
|
%th Réduction
|
||||||
%th.actions
|
%th.actions
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.qi_header
|
.qi_header
|
||||||
.right= link_to 'Ajouter une catégorie', new_admin_p_commercial_cat_path(), :class => "btn btn-primary", :remote => true
|
.right= link_to 'Ajouter une catégorie', new_admin_p_commercial_cat_path(), :class => "btn btn-primary bgbd-clients", :remote => true
|
||||||
%h1
|
%h1
|
||||||
Commerciaux
|
Commerciaux
|
||||||
%span
|
%span
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
= f.input :start_at, :label => "Date d'entrée :", :as => :date
|
= f.input :start_at, :label => "Date d'entrée :", :as => :date
|
||||||
= f.input :stop_at, :label => "Date de sortie :", :as => :date
|
= f.input :stop_at, :label => "Date de sortie :", :as => :date
|
||||||
|
|
||||||
= f.input :avenant, :label => "Avenant ?"
|
=# f.input :avenant, :label => "Avenant ?"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.qi_header
|
.qi_header
|
||||||
.right= link_to 'Ajouter un commercial', new_admin_p_commercial_path(), :class => "btn btn-primary", :remote => true
|
.right= link_to 'Ajouter un commercial', new_admin_p_commercial_path(), :class => "btn btn-primary bgbd-clients", :remote => true
|
||||||
%h1
|
%h1
|
||||||
Commerciaux
|
Commerciaux
|
||||||
%span
|
%span
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.qi_header
|
.qi_header
|
||||||
.right= link_to 'Ajouter une catégorie', new_admin_p_customer_cat_path(), :class => "btn btn-primary", :remote => true
|
.right= link_to 'Ajouter une catégorie', new_admin_p_customer_cat_path(), :class => "btn btn-primary bgbd-clients", :remote => true
|
||||||
%h1
|
%h1
|
||||||
Produits
|
Produits
|
||||||
%span
|
%span
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
=semantic_form_for [:admin, @p_customer_sheet], :html => {:class => "qi_price_form"}, :remote => false do |form|
|
=semantic_form_for [:admin, @p_customer_sheet], :html => {:class => "qi_price_form"}, :remote => false do |form|
|
||||||
|
|
||||||
.content
|
.content
|
||||||
-if @p_customer_sheet and @p_customer_sheet.state != "commande"
|
|
||||||
=form.input :demande_type, :collection => ["Brouillon", "Demande de bon de commande","Demande de devis"], :as => :select, :include_blank => false, :label => "Type de demande :"
|
.qi_pannel.qi_plain.padding
|
||||||
|
-if @p_customer_sheet and @p_customer_sheet.state != "commande"
|
||||||
|
=form.input :demande_type, :collection => ["Brouillon", "Demande de bon de commande","Demande de devis"], :as => :select, :include_blank => false, :label => "Type de demande :"
|
||||||
|
|
||||||
.price_line_block_form
|
.price_line_block_form
|
||||||
=form.semantic_fields_for :price_line_block do |f|
|
=form.semantic_fields_for :price_line_block do |f|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
%span
|
%span
|
||||||
Modifier une demande
|
Modifier une demande
|
||||||
|
|
||||||
.qi_row
|
|
||||||
.qi_pannel.qi_plain.padding
|
|
||||||
= render 'form'
|
= render 'form'
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.qi_header
|
.qi_header
|
||||||
.right
|
.right
|
||||||
=link_to ic(:plus)+" Demande de commande", admin_p_customers_path(:offre => true), :class => "btn btn-primary btn-ap-add"
|
=link_to ic(:plus)+" Demande de commande", admin_p_customers_path(:offre => true), :class => "btn btn-primary bgbd-ventes"
|
||||||
|
|
||||||
%h1
|
%h1
|
||||||
Ventes
|
Ventes
|
||||||
|
@ -9,8 +9,7 @@
|
|||||||
Ajouter une demande
|
Ajouter une demande
|
||||||
|
|
||||||
|
|
||||||
.qi_row
|
|
||||||
.qi_pannel.qi_plain.padding
|
|
||||||
|
.qi_row= render 'form'
|
||||||
= render 'form'
|
|
||||||
|
|
||||||
|
@ -24,21 +24,23 @@
|
|||||||
|
|
||||||
-if @p_customer_sheet.p_customer and @p_customer_sheet.p_customer.particular
|
-if @p_customer_sheet.p_customer and @p_customer_sheet.p_customer.particular
|
||||||
=render :partial => "admin/p_customers/apercu", :locals => {:particular => @p_customer_sheet.p_customer.particular}
|
=render :partial => "admin/p_customers/apercu", :locals => {:particular => @p_customer_sheet.p_customer.particular}
|
||||||
|
|
||||||
|
%br
|
||||||
|
|
||||||
|
|
||||||
|
%table.table{:style => ""}
|
||||||
|
%tr{:style => "background:transparent"}
|
||||||
|
%td{:style => "border:0"}
|
||||||
|
%h3 Adresse de facturation
|
||||||
|
|
||||||
|
=render(:partial => "admin/particulars/particular_detail", :locals => {:particular => @p_customer_sheet.particular_bill}) if @p_customer_sheet.particular_bill
|
||||||
|
|
||||||
%table.table{:style => ""}
|
%td{:style => "border:0"}
|
||||||
%tr
|
%h3 Adresse de livraison
|
||||||
%td{:style => "border:0"}
|
|
||||||
%h3 Adresse de facturation
|
|
||||||
|
|
||||||
=render(:partial => "admin/particulars/particular_detail", :locals => {:particular => @p_customer_sheet.particular_bill}) if @p_customer_sheet.particular_bill
|
|
||||||
|
|
||||||
%td{:style => "border:0"}
|
|
||||||
%h3 Adresse de livraison
|
|
||||||
|
|
||||||
=render(:partial => "admin/particulars/particular_detail", :locals => {:particular => @p_customer_sheet.particular_send}) if @p_customer_sheet.particular_send
|
|
||||||
|
|
||||||
|
=render(:partial => "admin/particulars/particular_detail", :locals => {:particular => @p_customer_sheet.particular_send}) if @p_customer_sheet.particular_send
|
||||||
|
|
||||||
|
.qi_pannel.qi_plain.padding
|
||||||
-price_line_block = @p_customer_sheet.price_line_block
|
-price_line_block = @p_customer_sheet.price_line_block
|
||||||
|
|
||||||
%p
|
%p
|
||||||
@ -72,9 +74,9 @@
|
|||||||
%strong Notes pour les demandes de commandes pour ce client :
|
%strong Notes pour les demandes de commandes pour ce client :
|
||||||
=simple_format @p_customer_sheet.p_customer.p_customer_sheet_note
|
=simple_format @p_customer_sheet.p_customer.p_customer_sheet_note
|
||||||
%br
|
%br
|
||||||
|
%br
|
||||||
|
%div{:style => "overflow:auto;"}
|
||||||
%table.table
|
%table.table.table-striped.table-hover.table-bordered
|
||||||
%thead
|
%thead
|
||||||
%tr
|
%tr
|
||||||
%th Référence
|
%th Référence
|
||||||
@ -114,11 +116,7 @@
|
|||||||
%br
|
%br
|
||||||
comptant
|
comptant
|
||||||
|
|
||||||
-if price_line_block.remise_enrobage_ok
|
|
||||||
%th
|
|
||||||
Remise
|
|
||||||
%br
|
|
||||||
enrobage
|
|
||||||
-else
|
-else
|
||||||
%th
|
%th
|
||||||
Remise
|
Remise
|
||||||
@ -171,11 +169,7 @@
|
|||||||
%br
|
%br
|
||||||
=number_to_currency price_line.ca_discount_comptant_ht
|
=number_to_currency price_line.ca_discount_comptant_ht
|
||||||
|
|
||||||
-if price_line_block.remise_enrobage_ok
|
|
||||||
%td.numeraire
|
|
||||||
=price_line.discount_enrobage_percent.to_s+"%"
|
|
||||||
%br
|
|
||||||
=number_to_currency price_line.ca_discount_enrobage_ht
|
|
||||||
-else
|
-else
|
||||||
%td.numeraire
|
%td.numeraire
|
||||||
=price_line.discount_ecole_percent.to_s+"%"
|
=price_line.discount_ecole_percent.to_s+"%"
|
||||||
@ -191,7 +185,7 @@
|
|||||||
%td.numeraire
|
%td.numeraire
|
||||||
=number_to_currency price_line.tot_amount_ht
|
=number_to_currency price_line.tot_amount_ht
|
||||||
|
|
||||||
|
.qi_pannel.qi_plain.padding
|
||||||
%table.table{:style => "width:auto;float:right;"}
|
%table.table{:style => "width:auto;float:right;"}
|
||||||
%tr
|
%tr
|
||||||
%th
|
%th
|
||||||
@ -222,7 +216,7 @@
|
|||||||
%tr
|
%tr
|
||||||
%th
|
%th
|
||||||
Frais de port HT
|
Frais de port HT
|
||||||
="(TVA #{price_line_block.fdp_tva_rate}%)"
|
=#"(TVA #{price_line_block.fdp_tva_rate}%)"
|
||||||
%td.numeraire
|
%td.numeraire
|
||||||
=number_to_currency price_line_block.tot_fdp_ht
|
=number_to_currency price_line_block.tot_fdp_ht
|
||||||
|
|
||||||
@ -292,23 +286,23 @@
|
|||||||
=number_to_currency value[:tva]
|
=number_to_currency value[:tva]
|
||||||
|
|
||||||
|
|
||||||
%table.table{:style => "width:auto;"}
|
%table.table{:style => "width:auto;"}
|
||||||
%tr
|
%tr
|
||||||
%th
|
%th
|
||||||
Échéance
|
Échéance
|
||||||
%th Mode de paiement
|
%th Mode de paiement
|
||||||
%th
|
%th
|
||||||
Montant net
|
Montant net
|
||||||
%tr
|
%tr
|
||||||
%td
|
%td
|
||||||
=price_line_block.payment_delais.to_i
|
=price_line_block.payment_delais.to_i
|
||||||
jours
|
jours
|
||||||
%td
|
%td
|
||||||
=price_line_block.p_payment_type.name if price_line_block.p_payment_type
|
=price_line_block.p_payment_type.name if price_line_block.p_payment_type
|
||||||
%td
|
%td
|
||||||
=number_to_currency price_line_block.tot_amount_ttc
|
=number_to_currency price_line_block.tot_amount_ttc
|
||||||
|
|
||||||
.clear
|
.clear
|
||||||
|
|
||||||
|
|
||||||
%hr
|
%hr
|
||||||
|
@ -92,9 +92,7 @@
|
|||||||
-mds = MarketDiscount.order("p_customer_cat_id ASC, min ASC").all
|
-mds = MarketDiscount.order("p_customer_cat_id ASC, min ASC").all
|
||||||
|
|
||||||
= form.input :market_discount_id, :label => "Remise annuelle de marché :", :include_blank => true, :collection => mds, :as => :select, :member_label => :member_label
|
= form.input :market_discount_id, :label => "Remise annuelle de marché :", :include_blank => true, :collection => mds, :as => :select, :member_label => :member_label
|
||||||
.col-sm-4
|
|
||||||
%br
|
|
||||||
= form.input :discount_enrobage, :label => "Remise enrobage ?", :as => :boolean
|
|
||||||
.col-sm-4
|
.col-sm-4
|
||||||
%br
|
%br
|
||||||
= form.input :discount_comptant, :label => "Remise paiement comptant ?", :as => :boolean
|
= form.input :discount_comptant, :label => "Remise paiement comptant ?", :as => :boolean
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
%td.actions
|
%td.actions
|
||||||
-if params[:offre].to_s == "true"
|
-if params[:offre].to_s == "true"
|
||||||
-if p_customer.enabled
|
-if p_customer.enabled
|
||||||
=link_to ic(:"arrow-right")+" Demande de commande", new_admin_p_customer_sheet_path(:p_customer_id => p_customer.id), :class => "btn btn-primary btn-ap-add"
|
=link_to ic(:"arrow-right")+" Demande de commande", new_admin_p_customer_sheet_path(:p_customer_id => p_customer.id), :class => "btn btn-primary bgbd-ventes"
|
||||||
-else
|
-else
|
||||||
.badge.badge-danger
|
.badge.badge-danger
|
||||||
=ic :lock
|
=ic :lock
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
-if params[:offre].to_s != "true"
|
-if params[:offre].to_s != "true"
|
||||||
|
|
||||||
-if current_admin.has_permission?("customers-c")
|
-if current_admin.has_permission?("customers-c")
|
||||||
.right= link_to ic(:plus)+' Ajouter un client', new_admin_p_customer_path(), :class => "btn btn-primary btn-ap-add", :remote => false
|
.right= link_to ic(:plus)+' Ajouter un client', new_admin_p_customer_path(), :class => "btn btn-primary bgbd-clients", :remote => false
|
||||||
-else
|
-else
|
||||||
.right
|
.right
|
||||||
=link_to "< Retour aux demandes de commande", admin_p_customer_sheets_path
|
=link_to "< Retour aux demandes de commande", admin_p_customer_sheets_path
|
||||||
|
@ -80,7 +80,7 @@
|
|||||||
.qi_tab_header
|
.qi_tab_header
|
||||||
.right{:style => "text-align:right;"}
|
.right{:style => "text-align:right;"}
|
||||||
-if @p_customer.enabled
|
-if @p_customer.enabled
|
||||||
=link_to ic(:plus)+" Demande de commande", new_admin_p_customer_sheet_path(:p_customer_id => @p_customer.id), :class => "btn btn-primary btn-ap-add"
|
=link_to ic(:plus)+" Demande de commande", new_admin_p_customer_sheet_path(:p_customer_id => @p_customer.id), :class => "btn btn-primary bgbd-ventes"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.qi_header
|
.qi_header
|
||||||
.right= link_to 'Ajouter un fournisseur', new_admin_p_fournisseur_path(), :class => "btn btn-primary", :remote => true
|
.right= link_to 'Ajouter un fournisseur', new_admin_p_fournisseur_path(), :class => "btn btn-primary bgbd-stocks", :remote => true
|
||||||
%h1
|
%h1
|
||||||
Achats
|
Achats
|
||||||
%span
|
%span
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
.qi_header
|
.qi_header
|
||||||
.right= link_to 'Ajouter une catégorie', new_admin_p_product_cat_path(), :class => "btn btn-primary", :remote => true
|
.right= link_to 'Ajouter une catégorie', new_admin_p_product_cat_path(), :class => "btn btn-primary bgbd-stocks", :remote => true
|
||||||
%h1
|
%h1
|
||||||
Achats
|
Produits
|
||||||
%span
|
%span
|
||||||
Catégories produit
|
Catégories produit
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
%h1 Ajouter un distributeur
|
%h1 Ajouter une catégorie
|
||||||
|
|
||||||
= render 'form'
|
= render 'form'
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
=f.inputs do
|
=f.inputs do
|
||||||
= f.hidden_field :parent_id #, :label => "parent_id :"
|
= f.hidden_field :parent_id #, :label => "parent_id :"
|
||||||
= f.input :code, :label => "Code :"
|
= f.input :code, :label => "Code :"
|
||||||
= f.input :name, :label => "name :"
|
= f.input :name, :label => "Nom :"
|
||||||
=# f.input :position, :label => "position :"
|
=# f.input :position, :label => "position :"
|
||||||
=# f.input :enabled, :label => "enabled :"
|
=# f.input :enabled, :label => "enabled :"
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#p_product_sub_cat_index
|
#p_product_sub_cat_index
|
||||||
|
|
||||||
%ul.breadcrumb
|
%ul.breadcrumb
|
||||||
= link_to 'Ajouter une catégorie', new_admin_p_product_sub_cat_path(:parent_id => params[:parent_id]), :class => "btn btn-primary",:remote => true, :style => "float:right;"
|
= link_to 'Ajouter une catégorie', new_admin_p_product_sub_cat_path(:parent_id => params[:parent_id]), :class => "btn btn-primary bgbd-stocks",:remote => true, :style => "float:right;"
|
||||||
%li
|
%li
|
||||||
-if @p_product_sub_cat_parent
|
-if @p_product_sub_cat_parent
|
||||||
-@p_product_sub_cat_parent.ancestors.reverse.each do |p_product_sub_cat|
|
-@p_product_sub_cat_parent.ancestors.reverse.each do |p_product_sub_cat|
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
.qi_header
|
.qi_header
|
||||||
%h1
|
%h1
|
||||||
Blog
|
Produits
|
||||||
%span
|
%span Sous catégories
|
||||||
liste des catégories
|
|
||||||
|
|
||||||
|
|
||||||
.qi_row
|
.qi_row
|
||||||
|
@ -86,9 +86,7 @@
|
|||||||
.row.qi_cancel_margins
|
.row.qi_cancel_margins
|
||||||
.col-sm-4
|
.col-sm-4
|
||||||
=f.input :p_product_sub_cats, :label => "Sous catégories :", :collection => PProductSubCat.where(["parent_id is NULL"]).all, :as => :check_boxes, :nested_set=>true, :member_label => :member_label
|
=f.input :p_product_sub_cats, :label => "Sous catégories :", :collection => PProductSubCat.where(["parent_id is NULL"]).all, :as => :check_boxes, :nested_set=>true, :member_label => :member_label
|
||||||
|
|
||||||
.col-sm-4
|
|
||||||
= f.input :discount_enrobage, :label => "Remise enrobage ?", :as => :boolean
|
|
||||||
|
|
||||||
-if false
|
-if false
|
||||||
%p= link_to_add_fields "Ajouter une référence", f, :p_product_refs
|
%p= link_to_add_fields "Ajouter une référence", f, :p_product_refs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
.qi_header
|
.qi_header
|
||||||
.right
|
.right
|
||||||
-if current_admin.has_permission?("products-c")
|
-if current_admin.has_permission?("products-c")
|
||||||
= link_to ic(:plus)+' Ajouter un produit', new_admin_p_product_path(), :class => "btn btn-primary btn-ap-add", :remote => false
|
= link_to ic(:plus)+' Ajouter un produit', new_admin_p_product_path(), :class => "btn btn-primary bgbd-stocks", :remote => false
|
||||||
%h1
|
%h1
|
||||||
Achats
|
Achats
|
||||||
%span
|
%span
|
||||||
|
@ -170,11 +170,7 @@
|
|||||||
%br
|
%br
|
||||||
comptant
|
comptant
|
||||||
|
|
||||||
-if price_line_block.remise_enrobage_ok
|
|
||||||
%th
|
|
||||||
Remise
|
|
||||||
%br
|
|
||||||
enrobage
|
|
||||||
-else
|
-else
|
||||||
%th
|
%th
|
||||||
Remise
|
Remise
|
||||||
@ -225,11 +221,7 @@
|
|||||||
%br
|
%br
|
||||||
=number_to_currency price_line.ca_discount_comptant_ht
|
=number_to_currency price_line.ca_discount_comptant_ht
|
||||||
|
|
||||||
-if price_line_block.remise_enrobage_ok
|
|
||||||
%td.numeraire
|
|
||||||
=price_line.discount_enrobage_percent.to_s+"%"
|
|
||||||
%br
|
|
||||||
=number_to_currency price_line.ca_discount_enrobage_ht
|
|
||||||
-else
|
-else
|
||||||
%td.numeraire
|
%td.numeraire
|
||||||
=price_line.discount_ecole_percent.to_s+"%"
|
=price_line.discount_ecole_percent.to_s+"%"
|
||||||
@ -276,7 +268,7 @@
|
|||||||
%tr
|
%tr
|
||||||
%th
|
%th
|
||||||
Frais de port HT
|
Frais de port HT
|
||||||
="(TVA #{price_line_block.fdp_tva_rate}%)"
|
=#"(TVA #{price_line_block.fdp_tva_rate}%)"
|
||||||
%td.numeraire
|
%td.numeraire
|
||||||
=number_to_currency price_line_block.tot_fdp_ht
|
=number_to_currency price_line_block.tot_fdp_ht
|
||||||
|
|
||||||
|
@ -3,60 +3,61 @@
|
|||||||
|
|
||||||
|
|
||||||
-if !@p_customer_sheet or (@p_customer_sheet and @p_customer_sheet.state != "commande")
|
-if !@p_customer_sheet or (@p_customer_sheet and @p_customer_sheet.state != "commande")
|
||||||
= f.input :p_commercial_id, :label => "Commercial :", :collection => PCommercial.order(:name).all, :as => :select, :member_label => :long_name if f.object.id
|
.qi_pannel.qi_plain.padding{:style => "margin:20px 0;"}
|
||||||
|
= f.input :p_commercial_id, :label => "Commercial :", :collection => PCommercial.order(:name).all, :as => :select, :member_label => :long_name if f.object.id
|
||||||
|
|
||||||
|
|
||||||
= f.hidden_field :p_customer_id, :class => "p_customer_id"
|
= f.hidden_field :p_customer_id, :class => "p_customer_id"
|
||||||
|
|
||||||
.p_customer_sheet_customer
|
.p_customer_sheet_customer
|
||||||
|
|
||||||
|
|
||||||
-if f.object.p_customer and f.object.p_customer.particular
|
-if f.object.p_customer and f.object.p_customer.particular
|
||||||
=render :partial => "admin/p_customers/apercu", :locals => {:particular => f.object.p_customer.particular}
|
=render :partial => "admin/p_customers/apercu", :locals => {:particular => f.object.p_customer.particular}
|
||||||
|
|
||||||
.addresses.row
|
.addresses.row
|
||||||
.columns.span_6
|
.columns.span_6
|
||||||
%h3 Adresse de facturation
|
%h3 Adresse de facturation
|
||||||
|
|
||||||
-if f.object.p_customer
|
-if f.object.p_customer
|
||||||
=f.inputs do
|
=f.inputs do
|
||||||
= f.input :particular_bill_id, :collection => f.object.p_customer.particulars.all, :as => :select, :member_label => :address_line, :include_blank => false, :label => "Adresse de facturation"
|
= f.input :particular_bill_id, :collection => f.object.p_customer.particulars.all, :as => :select, :member_label => :address_line, :include_blank => false, :label => "Adresse de facturation"
|
||||||
-else
|
-else
|
||||||
=f.inputs do
|
=f.inputs do
|
||||||
= f.input :particular_bill_id, :collection => [], :as => :select, :include_blank => false, :label => "Adresse de facturation"
|
= f.input :particular_bill_id, :collection => [], :as => :select, :include_blank => false, :label => "Adresse de facturation"
|
||||||
|
|
||||||
.columns.span_6
|
.columns.span_6
|
||||||
%h3 Adresse de livraison
|
%h3 Adresse de livraison
|
||||||
|
|
||||||
-if f.object.p_customer
|
-if f.object.p_customer
|
||||||
=f.inputs do
|
=f.inputs do
|
||||||
= f.input :particular_send_id, :collection => f.object.p_customer.particulars.all, :as => :select, :member_label => :address_line, :include_blank => false, :label => "Adresse de livraison"
|
= f.input :particular_send_id, :collection => f.object.p_customer.particulars.all, :as => :select, :member_label => :address_line, :include_blank => false, :label => "Adresse de livraison"
|
||||||
-else
|
-else
|
||||||
=f.inputs do
|
=f.inputs do
|
||||||
= f.input :particular_send_id, :collection => [], :as => :select, :include_blank => false, :label => "Adresse de facturation"
|
= f.input :particular_send_id, :collection => [], :as => :select, :include_blank => false, :label => "Adresse de facturation"
|
||||||
|
|
||||||
.clear
|
.clear
|
||||||
|
|
||||||
|
|
||||||
%table{:style => "width:100%;"}
|
%table{:style => "width:100%;"}
|
||||||
%tr
|
%tr
|
||||||
%td{:style => "width:50%;"}
|
%td{:style => "width:50%;"}
|
||||||
= f.input :wish_date, :label => "Date de livraison souhaitée :", :as => :date
|
= f.input :wish_date, :label => "Date de livraison souhaitée :", :as => :date
|
||||||
|
|
||||||
%td{:style => "width:50%;"}
|
%td{:style => "width:50%;"}
|
||||||
= f.input :ct_creation_date, :label => "Date de commande (si différente de la date de création) :", :as => :date
|
= f.input :ct_creation_date, :label => "Date de commande (si différente de la date de création) :", :as => :date
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
= f.input :customer_ref, :label => "Référence commande client :"
|
= f.input :customer_ref, :label => "Référence commande client :"
|
||||||
-if current_admin.has_permission?("customer-sheets-bl")
|
-if current_admin.has_permission?("customer-sheets-bl")
|
||||||
= f.input :bl_comment, :label => "Commentaire à mettre sur le BL :", :input_html => {:style => "min-height:50px;height:50px;"}
|
= f.input :bl_comment, :label => "Commentaire à mettre sur le BL :", :input_html => {:style => "min-height:50px;height:50px;"}
|
||||||
|
|
||||||
-if @p_customer_sheet and @p_customer_sheet.p_customer and @p_customer_sheet.p_customer.p_customer_sheet_note?
|
-if @p_customer_sheet and @p_customer_sheet.p_customer and @p_customer_sheet.p_customer.p_customer_sheet_note?
|
||||||
%div
|
%div
|
||||||
%strong Notes pour les demandes de commandes pour ce client :
|
%strong Notes pour les demandes de commandes pour ce client :
|
||||||
=simple_format @p_customer_sheet.p_customer.p_customer_sheet_note
|
=simple_format @p_customer_sheet.p_customer.p_customer_sheet_note
|
||||||
%br
|
%br
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -68,7 +69,7 @@
|
|||||||
%p= link_to_add_fields "Ajouter une ligne", f, :price_lines, {:class => "btn btn-primary"}
|
%p= link_to_add_fields "Ajouter une ligne", f, :price_lines, {:class => "btn btn-primary"}
|
||||||
|
|
||||||
|
|
||||||
.price_line_block_footer
|
.qi_pannel.qi_plain.padding.price_line_block_footer{:style => "margin:20px 0;"}
|
||||||
-if !@p_customer_sheet or (@p_customer_sheet and @p_customer_sheet.state != "commande")
|
-if !@p_customer_sheet or (@p_customer_sheet and @p_customer_sheet.state != "commande")
|
||||||
= f.input :ct_tot_discount_percent, :label => "Réduction pied de page (%) :", :input_html => {:class => "input_price_line_block_ct_tot_discount_percent"}
|
= f.input :ct_tot_discount_percent, :label => "Réduction pied de page (%) :", :input_html => {:class => "input_price_line_block_ct_tot_discount_percent"}
|
||||||
= f.input :ct_tot_fdp_ht, :label => "Frais de port personnalisés :"
|
= f.input :ct_tot_fdp_ht, :label => "Frais de port personnalisés :"
|
||||||
@ -79,23 +80,22 @@
|
|||||||
-if current_admin.has_permission?("payments")
|
-if current_admin.has_permission?("payments")
|
||||||
-if !@p_customer_sheet or (@p_customer_sheet and @p_customer_sheet.state != "commande")
|
-if !@p_customer_sheet or (@p_customer_sheet and @p_customer_sheet.state != "commande")
|
||||||
- if f.object.id
|
- if f.object.id
|
||||||
|
.qi_pannel.qi_plain.padding{:style => "margin:20px 0;"}
|
||||||
|
%h4 Paiements
|
||||||
|
|
||||||
%hr
|
= f.input :p_payment_type_id, :label => "Type de paiement :", :include_blank => false, :collection => PPaymentType.order(:name).all, :as => :select, :input_html => {:id => "payment_type_id_select"}
|
||||||
%h4 Paiements
|
|
||||||
|
|
||||||
= f.input :p_payment_type_id, :label => "Type de paiement :", :include_blank => false, :collection => PPaymentType.order(:name).all, :as => :select, :input_html => {:id => "payment_type_id_select"}
|
|
||||||
|
|
||||||
|
|
||||||
= f.input :ct_payment_comptant, :label => "Paiement comptant nécessaire ?"
|
= f.input :ct_payment_comptant, :label => "Paiement comptant nécessaire ?"
|
||||||
|
|
||||||
-if false
|
-if false
|
||||||
= f.input :ct_acompte, :label => "Acompte nécessaire ?"
|
= f.input :ct_acompte, :label => "Acompte nécessaire ?"
|
||||||
= f.input :ct_acompte_percent, :label => "Pourcentage d'acompte :"
|
= f.input :ct_acompte_percent, :label => "Pourcentage d'acompte :"
|
||||||
|
|
||||||
= f.input :ct_payment_delais, :label => "Délais jour de paiement :"
|
= f.input :ct_payment_delais, :label => "Délais jour de paiement :"
|
||||||
|
|
||||||
-if false
|
-if false
|
||||||
= f.input :ct_payment_month_end, :label => "Fin de mois ?"
|
= f.input :ct_payment_month_end, :label => "Fin de mois ?"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
.price_line_form.field{:style =>"border-left:4px solid gray;margin-bottom:10px;padding-left:5px;"}
|
.qi_pannel.qi_plain.padding.price_line_form.field{:style =>"border-left:4px solid gray;margin-bottom:10px;padding-left:5px;"}
|
||||||
%table{:style => "width:100%;"}
|
%table{:style => "width:100%;"}
|
||||||
%tr
|
%tr
|
||||||
%td{:style => "width:30px;"}
|
%td{:style => "width:30px;"}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.qi_header
|
.qi_header
|
||||||
.right= link_to 'Ajouter une marque', new_admin_s_brand_path(), :class => "btn btn-primary", :remote => true
|
.right= link_to 'Ajouter une marque', new_admin_s_brand_path(), :class => "btn btn-primary bgbd-stocks", :remote => true
|
||||||
%h1
|
%h1
|
||||||
Marques
|
Marques
|
||||||
%span
|
%span
|
||||||
|
@ -8,16 +8,48 @@
|
|||||||
= csrf_meta_tags
|
= csrf_meta_tags
|
||||||
= stylesheet_link_tag :connexion
|
= stylesheet_link_tag :connexion
|
||||||
= javascript_include_tag :connexion
|
= javascript_include_tag :connexion
|
||||||
|
<link href="https://fonts.googleapis.com/css?family=Nunito+Sans:400,400i,700,700i&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
|
|
||||||
%body
|
%body{:style => "background:center center url('/login_background.jpg?a=#{Time.now.to_s.to_slug}') black fixed;background-size:100%;background-size:cover;"}
|
||||||
|
|
||||||
:coffeescript
|
:coffeescript
|
||||||
$ ->
|
$ ->
|
||||||
$.backstretch("/login_background.jpg")
|
$.backstretch("/login_background.jpg")
|
||||||
#flashs= bootstrap_flash
|
#flashs= bootstrap_flash
|
||||||
.form-signin.content= yield
|
|
||||||
|
.form-signin.content
|
||||||
|
=link_to image_tag("/logo-demo3.png"), "/", :id => "logo"
|
||||||
|
= yield
|
||||||
|
|
||||||
|
|
||||||
|
=image_tag("/logo-basic-intelligence.png", :id => "logo-basic")
|
||||||
|
|
||||||
|
:scss
|
||||||
|
.btn-primary{
|
||||||
|
background:red;
|
||||||
|
border-color:red;
|
||||||
|
&:hover{
|
||||||
|
background:darken(#c01717, 10%);
|
||||||
|
border-color:darken(#c01717, 10%);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
.form-signin.content{
|
||||||
|
position:relative;
|
||||||
|
}
|
||||||
|
#logo{
|
||||||
|
img{width:50px;
|
||||||
|
position:absolute;
|
||||||
|
top:-60px;
|
||||||
|
left:5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#logo-basic{
|
||||||
|
position:fixed;
|
||||||
|
bottom:10px;
|
||||||
|
left:25px;
|
||||||
|
width:120px;
|
||||||
|
}
|
BIN
public/cedric-vt-Q73vCFJLegI-unsplash.jpg
Normal file
BIN
public/cedric-vt-Q73vCFJLegI-unsplash.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.4 MiB |
BIN
public/login_background.jpg
Normal file
BIN
public/login_background.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 417 KiB |
BIN
public/perry-grone-lbLgFFlADrY-unsplash.jpg
Normal file
BIN
public/perry-grone-lbLgFFlADrY-unsplash.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 MiB |
Loading…
x
Reference in New Issue
Block a user