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,7 +106,10 @@
|
||||||
%tfoot
|
%tfoot
|
||||||
%tr
|
%tr
|
||||||
%th{:colspan => 5}
|
%th{:colspan => 5}
|
||||||
%input#new_stock_article{:style => 'width: 500px;'}
|
- 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
|
%tbody
|
||||||
- for article in stock_articles_for_table(@supplier)
|
- for article in stock_articles_for_table(@supplier)
|
||||||
= render :partial => 'stock_article_for_adding', :locals => {:article => article}
|
= render :partial => 'stock_article_for_adding', :locals => {:article => article}
|
||||||
|
|
Loading…
Reference in a new issue