Separate columns for article price and unit in delivery form
This commit is contained in:
parent
a6228bdcf2
commit
f76b9da1e9
6 changed files with 10 additions and 6 deletions
|
|
@ -23,9 +23,7 @@ $('div.container-fluid').prepend(
|
|||
|
||||
var stock_change_entry = $('#stock_change_stock_article_<%= @stock_article.id %>');
|
||||
$('.stock_article_name', stock_change_entry).text('<%= j(@stock_article.name) %>');
|
||||
$('.price-per-unit', stock_change_entry).text(
|
||||
'<%= "#{j(number_to_currency(@stock_article.price))}/#{j(number_to_currency(@stock_article.unit))}" %>'
|
||||
);
|
||||
$('.unit', stock_change_entry).text('<%= j(number_to_currency(@stock_article.unit)) %>');
|
||||
|
||||
stock_change_entry.addClass('success');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue