Allow creation of StockArticles also if there are no Articles for a supplier in delivery form
This commit is contained in:
parent
b303b48853
commit
0e66414534
1 changed files with 4 additions and 1 deletions
|
@ -106,6 +106,9 @@
|
|||
%tfoot
|
||||
%tr
|
||||
%th{:colspan => 5}
|
||||
- if articles_for_select2(@supplier).empty?
|
||||
= link_to t('.create_stock_article'), new_stock_article_supplier_deliveries_path(@supplier), :remote => true, :class => 'btn'
|
||||
- else
|
||||
%input#new_stock_article{:style => 'width: 500px;'}
|
||||
%tbody
|
||||
- for article in stock_articles_for_table(@supplier)
|
||||
|
|
Loading…
Reference in a new issue