WIP analyse
This commit is contained in:
parent
9d24db2178
commit
8e1cc4b0a1
@ -8,7 +8,9 @@
|
||||
= @price_document.list_designaton
|
||||
|
||||
|
||||
=form_tag '/'
|
||||
=semantic_form_for [:admin, @price_document], :html => {:class => "qi_price_form"}, :remote => false do |form|
|
||||
=form.semantic_fields_for :price_line_block do |f|
|
||||
- price_line_block = f.object
|
||||
.qi_pannel.padding.new_table_container
|
||||
.table-slider
|
||||
.inner
|
||||
@ -73,13 +75,19 @@
|
||||
|
||||
-@price_document_responses.each do |resp|
|
||||
%th
|
||||
-if resp.p_fournisseur
|
||||
=resp.p_fournisseur.name
|
||||
|
||||
|
||||
%tbody
|
||||
-price_lines = @price_document.price_line_block.price_lines
|
||||
-# price_lines = f.object.price_lines
|
||||
|
||||
-consult_price_lines = @price_document.price_line_block.price_lines
|
||||
-price_lines.each do |price_line|
|
||||
=f.semantic_fields_for :price_lines do |form|
|
||||
- price_line = form.object
|
||||
-#price_lines = @price_document.price_line_block.price_lines
|
||||
-#price_lines.each do |price_line|
|
||||
|
||||
%tr
|
||||
%td
|
||||
=# ATTENTION ! On a plus accès direct aux commandes qui on engendré cette demande de prix. donc plus accès aux délais différent entre les différentes commades pour une ref donée
|
||||
@ -120,6 +128,8 @@
|
||||
%td.limit
|
||||
/ spec
|
||||
|
||||
=form.input :selected_price_line_id, collection: PriceLine.where(:price_line_ref_id => form.object.id).all, as: :radio, :member_label => :id
|
||||
=debug form.object.id
|
||||
- @price_document_responses.each do |resp|
|
||||
-line = resp.price_line_block.price_lines.where(p_product_ref: price_line.p_product_ref).first
|
||||
-cell = []
|
||||
@ -148,6 +158,8 @@
|
||||
- cell << "<span class='info'>#{ic('info-circle')} #{display_comment}<span class='info-text'>#{line.comment}</span></span>"
|
||||
|
||||
%td.p-0
|
||||
= "reponse price_line ID : #{line.id}"
|
||||
=#form.input :selected_price_offer, as: :radio
|
||||
= radio_button_tag "ref_price_selected_#{price_line.p_product_ref.id}", line.id, false, class: "category-selector"
|
||||
= label_tag "ref_price_selected_#{price_line.p_product_ref.id}_#{line.id}", sanitize(cell.join('<br>')), class: "p-2 m-auto"
|
||||
=submit_tag 'valider la selection', class: "btn btn-primary"
|
||||
|
@ -0,0 +1,5 @@
|
||||
class AddSelectedPriceOfferToPriceLines < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :price_lines, :selected_price_line_id, :integer
|
||||
end
|
||||
end
|
@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2021_08_30_091804) do
|
||||
ActiveRecord::Schema.define(version: 2021_09_07_083709) do
|
||||
|
||||
create_table "accounting_zones", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
|
||||
t.string "name"
|
||||
@ -2544,6 +2544,7 @@ ActiveRecord::Schema.define(version: 2021_08_30_091804) do
|
||||
t.boolean "eu"
|
||||
t.boolean "fullkit"
|
||||
t.boolean "lang_start"
|
||||
t.integer "selected_price_line_id"
|
||||
end
|
||||
|
||||
create_table "quote_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
|
||||
|
Reference in New Issue
Block a user