Improve usability of supplier selection for stock_articles in delivery form
This commit is contained in:
parent
7eb64e3c9d
commit
30b35cdd11
5 changed files with 50 additions and 10 deletions
|
|
@ -44,7 +44,7 @@
|
|||
$.ajax({
|
||||
url: '#{new_stock_article_path}',
|
||||
type: 'get',
|
||||
data: {stock_article: {name: selectedArticle.text}},
|
||||
data: {stock_article: {name: selectedArticle.text, supplier_id: #{@supplier.id}}},
|
||||
contentType: 'application/json; charset=UTF-8'
|
||||
});
|
||||
$('#new_stock_article').select2('data', null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue