suite
This commit is contained in:
parent
03864e04d3
commit
78d48aa2dd
@ -1,6 +1,8 @@
|
|||||||
-if true
|
-if true
|
||||||
#p_sheet_line.product_stock_form.field.p_sheet_line_field{:id => form.object.id}
|
#p_sheet_line.product_stock_form.field.p_sheet_line_field{:id => form.object.id}
|
||||||
|
%table{:style => "width:100%;"}
|
||||||
|
%tr
|
||||||
|
%td{:style => "width:70%;"}
|
||||||
-if form.object.lock != true
|
-if form.object.lock != true
|
||||||
=link_to_remove_fields ic(:"trash-o"), form
|
=link_to_remove_fields ic(:"trash-o"), form
|
||||||
|
|
||||||
@ -49,6 +51,8 @@
|
|||||||
|
|
||||||
|
|
||||||
} );
|
} );
|
||||||
|
%td{:style => "width:30%;"}
|
||||||
|
=form.input :cust_ref, :label => "Référence client :"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -42,6 +42,11 @@
|
|||||||
%tr
|
%tr
|
||||||
%th{:style => "text-align:left !important;"}
|
%th{:style => "text-align:left !important;"}
|
||||||
=sheet_line.product_name
|
=sheet_line.product_name
|
||||||
|
-if sheet_line.cust_ref?
|
||||||
|
%strong{:style => "font-weight:normal;"}
|
||||||
|
="-"
|
||||||
|
Réf client :
|
||||||
|
=sheet_line.cust_ref
|
||||||
|
|
||||||
|
|
||||||
-sheet_line.p_product.p_sizes.order("p_sizes.position ASC, p_sizes.id ASC").all.each do |psize|
|
-sheet_line.p_product.p_sizes.order("p_sizes.position ASC, p_sizes.id ASC").all.each do |psize|
|
||||||
|
@ -35,6 +35,11 @@
|
|||||||
%tr
|
%tr
|
||||||
%th{:style => "text-align:left !important;"}
|
%th{:style => "text-align:left !important;"}
|
||||||
=sheet_line.product_name
|
=sheet_line.product_name
|
||||||
|
-if sheet_line.cust_ref?
|
||||||
|
%strong{:style => "font-weight:normal;"}
|
||||||
|
="-"
|
||||||
|
Réf client :
|
||||||
|
=sheet_line.cust_ref
|
||||||
|
|
||||||
|
|
||||||
-p_sheet_line_lines.group(:p_size_id).joins(:p_size).order("p_sizes.position ASC, p_sizes.id ASC").uniq.each do |psize|
|
-p_sheet_line_lines.group(:p_size_id).joins(:p_size).order("p_sizes.position ASC, p_sizes.id ASC").uniq.each do |psize|
|
||||||
|
@ -39,6 +39,8 @@
|
|||||||
%th
|
%th
|
||||||
=form.object.p_product.name
|
=form.object.p_product.name
|
||||||
=link_to_remove_fields ic(:"trash-o"), form
|
=link_to_remove_fields ic(:"trash-o"), form
|
||||||
|
%br
|
||||||
|
=form.input :cust_ref, :placeholder => "Votre référence", :label => false
|
||||||
|
|
||||||
-p_product.p_sizes.all.each do |p_size|
|
-p_product.p_sizes.all.each do |p_size|
|
||||||
%th.size_th
|
%th.size_th
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddCustRefToPSheetLines < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :p_sheet_lines, :cust_ref, :string
|
||||||
|
end
|
||||||
|
end
|
@ -11,7 +11,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: 20190120142139) do
|
ActiveRecord::Schema.define(version: 20190128223146) do
|
||||||
|
|
||||||
create_table "admin_admin_roles", force: :cascade do |t|
|
create_table "admin_admin_roles", force: :cascade do |t|
|
||||||
t.integer "admin_id", limit: 4
|
t.integer "admin_id", limit: 4
|
||||||
@ -1171,6 +1171,7 @@ ActiveRecord::Schema.define(version: 20190120142139) do
|
|||||||
t.integer "archived_p_color_id", limit: 4
|
t.integer "archived_p_color_id", limit: 4
|
||||||
t.string "archived_code", limit: 255
|
t.string "archived_code", limit: 255
|
||||||
t.integer "archived_p_product_id", limit: 4
|
t.integer "archived_p_product_id", limit: 4
|
||||||
|
t.string "cust_ref", limit: 255
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "p_sheet_lines", ["p_product_stock_id"], name: "index_p_sheet_lines_on_p_product_stock_id", using: :btree
|
add_index "p_sheet_lines", ["p_product_stock_id"], name: "index_p_sheet_lines_on_p_product_stock_id", using: :btree
|
||||||
|
Loading…
x
Reference in New Issue
Block a user