Revision 808a81c3
Von Sven Schöling vor fast 3 Jahren hinzugefügt
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
1073 | 1073 |
$self->order->update_attributes(delivered => 1); |
1074 | 1074 |
}); |
1075 | 1075 |
|
1076 |
$self->js->flash("info", t8("Stock transfered"))->render; |
|
1076 |
$self->js |
|
1077 |
->flash("info", t8("Stock transfered")) |
|
1078 |
->run('kivi.ActionBar.setDisabled', '#transfer_out_action', t8('The parts for this order have already been transferred')) |
|
1079 |
->run('kivi.ActionBar.setDisabled', '#transfer_in_action', t8('The parts for this order have already been transferred')) |
|
1080 |
->render; |
|
1081 |
|
|
1077 | 1082 |
} |
1078 | 1083 |
|
1079 | 1084 |
sub js_load_second_row { |
... | ... | |
1875 | 1880 |
combobox => [ |
1876 | 1881 |
action => [ |
1877 | 1882 |
t8('Transfer out'), |
1883 |
id => 'transfer_out_action', |
|
1878 | 1884 |
call => [ 'kivi.DeliveryOrder.save', 'transfer_stock' ], |
1879 | 1885 |
disabled => $self->order->delivered ? t8('The parts for this order have already been transferred') : undef, |
1880 | 1886 |
only_if => $self->type_data->properties('transfer') eq 'out', |
... | ... | |
1882 | 1888 |
], |
1883 | 1889 |
action => [ |
1884 | 1890 |
t8('Transfer in'), |
1891 |
id => 'transfer_in_action', |
|
1885 | 1892 |
call => [ 'kivi.DeliveryOrder.save', 'transfer_stock' ], |
1886 | 1893 |
disabled => $self->order->delivered ? t8('The parts for this order have already been transferred') : undef, |
1887 | 1894 |
only_if => $self->type_data->properties('transfer') eq 'in', |
Auch abrufbar als: Unified diff
DeliveryOrder: auslagern button deaktivieren nach auslagern