From: Sven Schöling Date: Fri, 17 Dec 2021 16:04:59 +0000 (+0100) Subject: DeliveryOrder: eval_json_result nach transfer_stock X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~216^2~27 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6f62b4cf9fe5673d8ea95b0f45d88d092892eb85;p=kivitendo-erp.git DeliveryOrder: eval_json_result nach transfer_stock --- diff --git a/SL/Controller/DeliveryOrder.pm b/SL/Controller/DeliveryOrder.pm index 55978ae64..1f53fc540 100644 --- a/SL/Controller/DeliveryOrder.pm +++ b/SL/Controller/DeliveryOrder.pm @@ -1871,14 +1871,14 @@ sub setup_edit_action_bar { combobox => [ action => [ t8('Transfer out'), - submit => [ '#order_form', { action => "DeliveryOrder/transfer_stock" } ], + call => [ 'kivi.DeliveryOrder.save', 'transfer_stock' ], disabled => $self->order->delivered ? t8('The parts for this order have already been transferred') : undef, only_if => $self->type_data->properties('transfer') eq 'out', confirm => t8('Do you really want to transfer the stock and set this order to delivered?'), ], action => [ t8('Transfer in'), - submit => [ '#order_form', { action => "DeliveryOrder/transfer_stock" } ], + call => [ 'kivi.DeliveryOrder.save', 'transfer_stock' ], disabled => $self->order->delivered ? t8('The parts for this order have already been transferred') : undef, only_if => $self->type_data->properties('transfer') eq 'in', confirm => t8('Do you really want to transfer the stock and set this order to delivered?'),