Revision da6e73e5
Von Werner Hahn vor etwa 2 Jahren hinzugefügt
- ID da6e73e561dcd05d00497ade601f6b6e0bf953f3
- Vorgänger b518fde7
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
1089 | 1089 |
|
1090 | 1090 |
SL::DB->client->with_transaction(sub { |
1091 | 1091 |
$_->save for @transfer_requests; |
1092 |
$self->order->update_attributes(delivered => 1); |
|
1092 |
$self->order->update_attributes(delivered => 1, closed => 1);
|
|
1093 | 1093 |
}); |
1094 | 1094 |
|
1095 | 1095 |
$self->js |
... | ... | |
1097 | 1097 |
->run('kivi.ActionBar.setDisabled', '#transfer_out_action', t8('The parts for this order have already been transferred')) |
1098 | 1098 |
->run('kivi.ActionBar.setDisabled', '#transfer_in_action', t8('The parts for this order have already been transferred')) |
1099 | 1099 |
->run('kivi.ActionBar.setDisabled', '#delete_action', t8('The parts for this order have already been transferred')) |
1100 |
->run('kivi.ActionBar.setEnabled', '#undo_transfer_action', t8('The parts for this order have already been transferred')) |
|
1100 | 1101 |
->replaceWith('#data-status-line', delivery_order_status_line($self->order)) |
1101 | 1102 |
->render; |
1102 | 1103 |
|
... | ... | |
1819 | 1820 |
combobox => [ |
1820 | 1821 |
action => [ |
1821 | 1822 |
t8('Save'), |
1823 |
id => 'save_action', |
|
1822 | 1824 |
call => [ 'kivi.DeliveryOrder.save', { action => 'save', |
1823 | 1825 |
warn_on_duplicates => $::instance_conf->get_order_warn_duplicate_parts, |
1824 | 1826 |
warn_on_reqdate => $::instance_conf->get_order_warn_no_deliverydate }, |
... | ... | |
1972 | 1974 |
], |
1973 | 1975 |
action => [ |
1974 | 1976 |
t8('Undo Transfer'), |
1975 |
id => 'undo_transfer', |
|
1977 |
id => 'undo_transfer_action',
|
|
1976 | 1978 |
call => [ 'kivi.DeliveryOrder.save', { action => 'undo_transfers' } ], |
1977 | 1979 |
disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') |
1978 | 1980 |
: !$self->order->id ? t8('This object has not been saved yet.') |
Auch abrufbar als: Unified diff
Auslagern Enbalen wenn eingelagert wird