This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/app/views/admin/price_documents/edit_lettrage.html.haml
2021-08-23 10:26:02 +02:00

58 lines
2.0 KiB
Plaintext

.qi_header
%h1
Lettrer un avoir
%span
=@price_document.d_number
-@p_customer = @price_document.p_customer
.qi_row
=semantic_form_for [:admin, @price_document], :url => edit_lettrage_save_admin_price_document_path(@price_document), :method => :post, :html => {:class => "qi_price_form", :id => "p_payment_general_form"}, :remote => false do |f|
%p
Montant de l'avoir :
%strong= number_to_currency @price_document.tot_amount_ttc
.content
#lettrage_panel
=f.inputs do
%hr
Lettrage :
#lettrage_table
%table.table
%thead
%tr
%th{:style => "width:30px"}
%th{:style => "width:100px"} Date
=#%th{:style => "width:90px"} Offre
%th Numéro de doc.
%th.numeraire{:style => "width:90px"} Montant TTC
%th.numeraire{:style => "width:90px"} Solde TTC
%th.numeraire{:style => "width:30px"} Montant à lettrer
%th{:style => "width:10px"}
%tbody.p_payment_documents_form
=f.semantic_fields_for :avoir_p_payment_documents do |form|
=render :partial => "admin/p_payment_documents/form", :locals => {:form => form}
:scss
#lettrage_table{
font-size:14px;
td,th{
padding:2px 4px;
vertical-align:middle;
.form-group{
margin:0;
}
}
}
%p Pour sélectionner un document avec lequel lettrer ce paiement, cliquer sur le + dans la liste des paiements ci-dessous :
=render :partial => "admin/price_documents/search_to_affect"
.actions=submit_tag "sauvegarder", :class => "btn btn-primary p_payment_submit btn-ap-add", :onclick => "$(this).closest('body').find('#p_payment_general_form').submit();"