Separate columns for article price and unit in delivery form

This commit is contained in:
Julius 2013-07-08 22:19:27 +02:00
parent a6228bdcf2
commit f76b9da1e9
6 changed files with 10 additions and 6 deletions

View file

@ -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');