Continue I18n of receive screen
This commit is contained in:
parent
8479678530
commit
d7c771d10a
4 changed files with 28 additions and 18 deletions
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
function init_add_article(sel) {
|
function init_add_article(sel) {
|
||||||
$(sel).removeAttr('disabled').select2({
|
$(sel).removeAttr('disabled').select2({
|
||||||
placeholder: '#{j t('orders.add_article.title')}',
|
placeholder: '#{j t('orders.receive.add_article')}',
|
||||||
formatNoMatches: function(term) { return '#{j t('.no_articles_available')}';}
|
formatNoMatches: function(term) { return '#{j t('.no_articles_available')}';}
|
||||||
// TODO implement adding a new article, like in deliveries
|
// TODO implement adding a new article, like in deliveries
|
||||||
}).on('change', function(e) {
|
}).on('change', function(e) {
|
||||||
|
@ -66,17 +66,17 @@
|
||||||
$(this).replaceWith('<i class="icon icon-warning-sign add-on"></i>');
|
$(this).replaceWith('<i class="icon icon-warning-sign add-on"></i>');
|
||||||
}
|
}
|
||||||
|
|
||||||
%table#order_articles.ordered-articles.table.table-striped.stupidtable
|
%table#order_articles.ordered-articles.table.table-striped.stupidtable{style: 'margin-bottom: 0'}
|
||||||
%thead
|
%thead
|
||||||
%tr
|
%tr
|
||||||
%th.sort{:data => {:sort => 'string'}}= heading_helper Article, :order_number, short: true
|
%th.sort{:data => {:sort => 'string'}}= heading_helper Article, :order_number, short: true
|
||||||
%th.default-sort.sort{:data => {:sort => 'string'}}= heading_helper Article, :name
|
%th.default-sort.sort{:data => {:sort => 'string'}}= heading_helper Article, :name
|
||||||
%th= heading_helper Article, :unit
|
%th= heading_helper Article, :unit
|
||||||
%th= heading_helper Article, :price
|
%th= heading_helper Article, :price
|
||||||
%th Members
|
%th= t '.members' # TODO: find term for this
|
||||||
%th Ordered
|
%th Ordered
|
||||||
-#%th Invoice # TODO implement invoice screen
|
-#%th Invoice # TODO implement invoice screen
|
||||||
%th Received
|
%th= heading_helper OrderArticle, :units_received
|
||||||
%th
|
%th
|
||||||
%th= t 'ui.actions'
|
%th= t 'ui.actions'
|
||||||
%tfoot
|
%tfoot
|
||||||
|
@ -85,6 +85,7 @@
|
||||||
%select#add_article{:style => 'width: 500px;'}
|
%select#add_article{:style => 'width: 500px;'}
|
||||||
- new_article_data.each do |option|
|
- new_article_data.each do |option|
|
||||||
%option{id: "add_article_#{option[:id]}", value: option[:id]}= option[:text]
|
%option{id: "add_article_#{option[:id]}", value: option[:id]}= option[:text]
|
||||||
|
|
||||||
%tbody#result_table
|
%tbody#result_table
|
||||||
- @order_articles.each do |order_article|
|
- @order_articles.each do |order_article|
|
||||||
= render :partial => 'edit_amount', :locals => {:order_article => order_article}
|
= render :partial => 'edit_amount', :locals => {:order_article => order_article}
|
||||||
|
|
|
@ -22,24 +22,22 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
- title "Receiving #{@order.name}"
|
- title t('.title', order: @order.name)
|
||||||
|
|
||||||
= form_tag(receive_order_path(@order)) do
|
= form_tag(receive_order_path(@order)) do
|
||||||
%section#results
|
%fieldset#results
|
||||||
= render 'edit_amounts'
|
= render 'edit_amounts'
|
||||||
|
|
||||||
.form-actions
|
.form-actions
|
||||||
.pull-left
|
.pull-left
|
||||||
Surplus to
|
%b.checkbox.inline
|
||||||
= label_tag :rest_to_tolerance, class: 'inline' do
|
= t '.surplus_options'
|
||||||
|
= label_tag :rest_to_tolerance, class: 'checkbox inline' do
|
||||||
= check_box_tag :rest_to_tolerance, 1, true
|
= check_box_tag :rest_to_tolerance, 1, true
|
||||||
member tolerance,
|
= t '.consider_member_tolerance'
|
||||||
%span{style: 'color: grey'}
|
= label_tag :rest_to_stock, class: 'checkbox inline' do
|
||||||
and
|
= check_box_tag :rest_to_stock, 1, false, disabled: true
|
||||||
= label_tag :rest_to_stock, class: 'inline' do
|
%span{style: 'color: grey'}= t '.rest_to_stock'
|
||||||
= check_box_tag :rest_to_stock, 1, false, disabled: true
|
|
||||||
stock
|
|
||||||
|
|
||||||
.pull-right
|
.pull-right
|
||||||
= submit_tag t('.submit'), class: 'btn btn-primary'
|
= submit_tag t('.submit'), class: 'btn btn-primary'
|
||||||
= link_to t('ui.or_cancel'), order_path(@order)
|
= link_to t('ui.or_cancel'), order_path(@order)
|
||||||
|
|
|
@ -81,6 +81,7 @@ de:
|
||||||
article: Artikel
|
article: Artikel
|
||||||
missing_units: Fehlende Einheiten
|
missing_units: Fehlende Einheiten
|
||||||
missing_units_short: Fehlende
|
missing_units_short: Fehlende
|
||||||
|
units_received: Erhalten
|
||||||
units_to_order: Menge
|
units_to_order: Menge
|
||||||
update_current_price: Globalen Preis aktualisieren
|
update_current_price: Globalen Preis aktualisieren
|
||||||
order_comment:
|
order_comment:
|
||||||
|
@ -1130,6 +1131,13 @@ de:
|
||||||
warning_ordered_stock: ! 'Warnung: Die rot markierten Artikel wurden in der laufenden Lagerbestellung bereits bestellt bzw. gekauft. Wenn Du sie hier abwählst, werden alle bestehenden Bestellungen bzw. Käufe dieses Artikels gelöscht und nicht abgerechnet!'
|
warning_ordered_stock: ! 'Warnung: Die rot markierten Artikel wurden in der laufenden Lagerbestellung bereits bestellt bzw. gekauft. Wenn Du sie hier abwählst, werden alle bestehenden Bestellungen bzw. Käufe dieses Artikels gelöscht und nicht abgerechnet!'
|
||||||
new:
|
new:
|
||||||
title: Neue Bestellung anlegen
|
title: Neue Bestellung anlegen
|
||||||
|
receive:
|
||||||
|
add_article: Artikel hinzufügen
|
||||||
|
consider_member_tolerance: Toleranz berücksichtigen
|
||||||
|
rest_to_stock: Rest ins Lager
|
||||||
|
submit: Bestellung in Empfang nehmen
|
||||||
|
surplus_options: 'Verteilungsoptionen:'
|
||||||
|
title: »%{order}« in Empfang nehmen
|
||||||
show:
|
show:
|
||||||
action_end: Beenden!
|
action_end: Beenden!
|
||||||
amounts: ! 'Netto/Bruttosumme:'
|
amounts: ! 'Netto/Bruttosumme:'
|
||||||
|
|
|
@ -81,6 +81,7 @@ en:
|
||||||
article: Article
|
article: Article
|
||||||
missing_units: Missing units
|
missing_units: Missing units
|
||||||
missing_units_short: Missing
|
missing_units_short: Missing
|
||||||
|
units_received: Received
|
||||||
units_to_order: Amount of units
|
units_to_order: Amount of units
|
||||||
update_current_price: Globally update current price
|
update_current_price: Globally update current price
|
||||||
order_comment:
|
order_comment:
|
||||||
|
@ -1090,9 +1091,6 @@ en:
|
||||||
new:
|
new:
|
||||||
title: Add delivered article to order
|
title: Add delivered article to order
|
||||||
orders:
|
orders:
|
||||||
add_article:
|
|
||||||
title: Add article
|
|
||||||
notice: Article "%{name}" was added to the order.
|
|
||||||
articles:
|
articles:
|
||||||
article_count: ! 'Ordered articles:'
|
article_count: ! 'Ordered articles:'
|
||||||
prices: Net/gross price
|
prices: Net/gross price
|
||||||
|
@ -1144,7 +1142,12 @@ en:
|
||||||
new:
|
new:
|
||||||
title: Create new order
|
title: Create new order
|
||||||
receive:
|
receive:
|
||||||
|
add_article: Add article
|
||||||
|
consider_member_tolerance: consider tolerance
|
||||||
|
rest_to_stock: rest to stock
|
||||||
submit: Receive order
|
submit: Receive order
|
||||||
|
surplus_options: 'Distribution options:'
|
||||||
|
title: Receiving %{order}
|
||||||
show:
|
show:
|
||||||
action_end: Close!
|
action_end: Close!
|
||||||
amounts: ! 'Net/gross sum:'
|
amounts: ! 'Net/gross sum:'
|
||||||
|
|
Loading…
Reference in a new issue