DeliveryOrder: inout an templates übergeben
authorSven Schöling <s.schoeling@googlemail.com>
Fri, 15 Oct 2021 15:57:07 +0000 (17:57 +0200)
committerJan Büren <jan@kivitendo.de>
Mon, 14 Feb 2022 14:02:19 +0000 (15:02 +0100)
SL/Controller/DeliveryOrder.pm

index a43ddd8..9789710 100644 (file)
@@ -1582,6 +1582,8 @@ sub pre_render {
                                                 } } @all_objects;
   }
 
+  $self->{template_args}{inout} = $self->type_data->properties('transfer');
+
   $self->get_item_cvpartnumber($_) for @{$self->order->items_sorted};
 
   $::request->{layout}->use_javascript("${_}.js") for qw(kivi.SalesPurchase kivi.DeliveryOrder kivi.File ckeditor/ckeditor ckeditor/adapters/jquery