Revision 6d17aa6d
Von Tamino Steinert vor etwa 20 Stunden hinzugefügt
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
223 | 223 |
sub action_save { |
224 | 224 |
my ($self) = @_; |
225 | 225 |
|
226 |
if ( $self->order->delivered ) { |
|
227 |
$self->js->flash('error', t8('This record has already been delivered.')); |
|
228 |
return $self->js->render(); |
|
229 |
} |
|
230 |
if ( $self->order->closed ) { |
|
231 |
$self->js->flash('error', t8('This record has already been closed.')); |
|
232 |
return $self->js->render(); |
|
233 |
} |
|
234 |
|
|
226 | 235 |
$self->save(); |
227 | 236 |
|
228 | 237 |
flash_later('info', $self->type_data->text("saved")); |
Auch abrufbar als: Unified diff
S:C:DeliveryOrder: Geschl. oder gelieferte Lieferscheine nicht speichern