wip
This commit is contained in:
parent
32547e495f
commit
e5cd68a4ad
2 changed files with 9 additions and 2 deletions
|
@ -226,6 +226,10 @@ $(function() {
|
||||||
$('a[data-decrease_tolerance]').on('touchclick', function() {
|
$('a[data-decrease_tolerance]').on('touchclick', function() {
|
||||||
decreaseTolerance($(this).data('decrease_tolerance'));
|
decreaseTolerance($(this).data('decrease_tolerance'));
|
||||||
});
|
});
|
||||||
|
$('a[data-reorder_previous]').on('touchclick', function() {
|
||||||
|
console.log('reorder_previous');
|
||||||
|
update($(this).data('reorder_previous'), $(this).data('quantity'), $(this).data('tolerance'));
|
||||||
|
});
|
||||||
|
|
||||||
$('a[data-confirm_switch_order]').on('touchclick', function() {
|
$('a[data-confirm_switch_order]').on('touchclick', function() {
|
||||||
return (!modified || confirm(I18n.t('js.ordering.confirm_change')));
|
return (!modified || confirm(I18n.t('js.ordering.confirm_change')));
|
||||||
|
|
|
@ -103,6 +103,9 @@
|
||||||
= @ordering_data[:order_articles][order_article.id][:previous_quantity]
|
= @ordering_data[:order_articles][order_article.id][:previous_quantity]
|
||||||
+
|
+
|
||||||
= @ordering_data[:order_articles][order_article.id][:previous_tolerance]
|
= @ordering_data[:order_articles][order_article.id][:previous_tolerance]
|
||||||
|
%a.btn.btn-ordering{"data-reorder_previous": order_article.id, "data-quantity": @ordering_data[:order_articles][order_article.id][:previous_quantity], "data-tolerance": @ordering_data[:order_articles][order_article.id][:previous_tolerance]}
|
||||||
|
%i.icon-repeat
|
||||||
|
order previous
|
||||||
- if @order.stockit?
|
- if @order.stockit?
|
||||||
%td= truncate order_article.article.supplier.name, length: 15
|
%td= truncate order_article.article.supplier.name, length: 15
|
||||||
%td= h order_article.article.origin
|
%td= h order_article.article.origin
|
||||||
|
|
Loading…
Reference in a new issue