suite
This commit is contained in:
parent
f642bb86db
commit
f9238ea184
@ -127,6 +127,7 @@
|
|||||||
:coffeescript
|
:coffeescript
|
||||||
tva = 1.2
|
tva = 1.2
|
||||||
@update_sheet_line_tot = ->
|
@update_sheet_line_tot = ->
|
||||||
|
|
||||||
tot_sheet = 0.0
|
tot_sheet = 0.0
|
||||||
$(".p_sheet_lines_form").find(".product_stock_form").each ->
|
$(".p_sheet_lines_form").find(".product_stock_form").each ->
|
||||||
tot = 0.0
|
tot = 0.0
|
||||||
@ -134,9 +135,13 @@
|
|||||||
|
|
||||||
tot_sheet += tot
|
tot_sheet += tot
|
||||||
|
|
||||||
|
|
||||||
$(".p_sheet_lines_tot_ht").html(accounting.formatMoney(tot_sheet))
|
$(".p_sheet_lines_tot_ht").html(accounting.formatMoney(tot_sheet))
|
||||||
|
|
||||||
tot_sheet_fdp = (tot_sheet + parseFloat($("#fdp_value").val()))
|
fdp = parseFloat($("#fdp_value").val())
|
||||||
|
fdp = fdp || 0.0
|
||||||
|
|
||||||
|
tot_sheet_fdp = (tot_sheet + fdp)
|
||||||
|
|
||||||
$(".p_sheet_lines_tot_ht_fdp").html(accounting.formatMoney(tot_sheet_fdp))
|
$(".p_sheet_lines_tot_ht_fdp").html(accounting.formatMoney(tot_sheet_fdp))
|
||||||
|
|
||||||
|
@ -79,9 +79,11 @@
|
|||||||
-p_product.p_product_stocks.each do |ps|
|
-p_product.p_product_stocks.each do |ps|
|
||||||
%td
|
%td
|
||||||
|
|
||||||
|
|
||||||
-if ps
|
-if ps
|
||||||
-p_sheet_line_line = form.object.p_sheet_line_lines.where(:p_product_stock_id => ps.id).first
|
-p_sheet_line_line = nil
|
||||||
|
-form.object.p_sheet_line_lines.each do |a|
|
||||||
|
-if a.p_product_stock_id == ps.id
|
||||||
|
-p_sheet_line_line = a
|
||||||
-if p_sheet_line_line
|
-if p_sheet_line_line
|
||||||
=form.fields_for(:p_sheet_line_lines, p_sheet_line_line) do |builder|
|
=form.fields_for(:p_sheet_line_lines, p_sheet_line_line) do |builder|
|
||||||
=builder.hidden_field :p_product_stock_id,:label => false, :as => :string
|
=builder.hidden_field :p_product_stock_id,:label => false, :as => :string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user