Add possibility to copy an order

If a supplier has a long list of articles, which are all available, but
the order should contain only a subset of them, selecting them for every
order can take a long time. Starting with a copy of an existing order
can safe a lot of time.
This commit is contained in:
Patrick Gansterer 2015-02-18 21:56:56 +01:00
parent 65c7673a41
commit e57fd500fc
7 changed files with 13 additions and 8 deletions

View file

@ -1,10 +1,10 @@
- title t('.title')
= render 'form'
- content_for :javascript do
:javascript
// select all articles by default
$(function() {
$('#checkall').click();
});
- if @order.article_ids.empty?
- content_for :javascript do
:javascript
// select all articles by default
$(function() {
$('#checkall').click();
});