DeliveryOrder: ein/auslagern in basic-data auf type data gemappt
authorSven Schöling <s.schoeling@googlemail.com>
Fri, 17 Dec 2021 16:58:32 +0000 (17:58 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 14 Feb 2022 14:02:19 +0000 (15:02 +0100)
templates/webpages/delivery_order/tabs/basic_data.html

index 2848532..4e0a8ce 100644 (file)
             <td colspan="2" align="center">
               [%- IF SELF.order.id %]
                 [%- IF SELF.order.delivered %]
-                  [%- IF is_customer %]
+                  [%- IF SELF.type_data.transfer == 'out' %]
                   [% 'transferred out' | $T8 %]
                   [%- ELSE %]
                   [% 'transferred in' | $T8 %]
                   [%- END %]
                 [%- ELSE %]
-                  [%- IF is_customer %]
+                  [%- IF SELF.type_data.transfer == 'out' %]
                   [% 'not transferred out yet' | $T8 %]
                   [%- ELSE %]
                   [% 'not transferred in yet' | $T8 %]