Revision 1185ece0
Von Werner Hahn vor fast 2 Jahren hinzugefügt
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
1125 | 1125 |
|
1126 | 1126 |
SL::DB->client->with_transaction(sub { |
1127 | 1127 |
$_->save for @transfer_requests; |
1128 |
$self->order->update_attributes(delivered => 1); |
|
1128 |
$self->order->update_attributes(delivered => 1, closed => 1);
|
|
1129 | 1129 |
}); |
1130 | 1130 |
|
1131 | 1131 |
$self->js |
... | ... | |
1133 | 1133 |
->run('kivi.ActionBar.setDisabled', '#transfer_out_action', t8('The parts for this order have already been transferred')) |
1134 | 1134 |
->run('kivi.ActionBar.setDisabled', '#transfer_in_action', t8('The parts for this order have already been transferred')) |
1135 | 1135 |
->run('kivi.ActionBar.setDisabled', '#delete_action', t8('The parts for this order have already been transferred')) |
1136 |
->run('kivi.ActionBar.setEnabled', '#undo_transfer_action', t8('The parts for this order have already been transferred')) |
|
1136 | 1137 |
->replaceWith('#data-status-line', delivery_order_status_line($self->order)) |
1137 | 1138 |
->render; |
1138 | 1139 |
|
... | ... | |
1877 | 1878 |
combobox => [ |
1878 | 1879 |
action => [ |
1879 | 1880 |
t8('Save'), |
1881 |
id => 'save_action', |
|
1880 | 1882 |
call => [ 'kivi.DeliveryOrder.save', { action => 'save', |
1881 | 1883 |
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts, |
1882 | 1884 |
warn_on_reqdate => $::instance_conf->get_order_warn_no_deliverydate }, |
... | ... | |
2030 | 2032 |
], |
2031 | 2033 |
action => [ |
2032 | 2034 |
t8('Undo Transfer'), |
2033 |
id => 'undo_transfer', |
|
2035 |
id => 'undo_transfer_action',
|
|
2034 | 2036 |
call => [ 'kivi.DeliveryOrder.save', { action => 'undo_transfers' } ], |
2035 | 2037 |
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') |
2036 | 2038 |
: !$self->order->id ? t8('This object has not been saved yet.') |
Auch abrufbar als: Unified diff
Auslagern Enbalen wenn eingelagert wird