Auftrags-Controller: date_tag mit _as_date füttern
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 15 Oct 2018 14:32:15 +0000 (16:32 +0200)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 22 Oct 2018 13:03:48 +0000 (15:03 +0200)
templates/webpages/order/tabs/_second_row.html
templates/webpages/order/tabs/basic_data.html

index 18226ab..046224f 100644 (file)
@@ -14,7 +14,7 @@
     [% P.project.picker("order.orderitems[].project_id", ITEM.project_id, size = 15) %]&nbsp;
     [%- IF (TYPE == "sales_order" || TYPE == "purchase_order") %]
       <b>[%- 'Reqdate' | $T8 %]</b>&nbsp;
-      [% L.date_tag("order.orderitems[].reqdate", ITEM.reqdate) %]&nbsp;
+      [% L.date_tag("order.orderitems[].reqdate_as_date", ITEM.reqdate_as_date) %]&nbsp;
     [%- END %]
     <b>[%- 'Subtotal' | $T8 %]</b>&nbsp;
     [% L.yes_no_tag("order.orderitems[].subtotal", ITEM.subtotal) %]&nbsp;
index c679812..682162e 100644 (file)
           [%- END -%]
           <tr>
             <th width="70%" align="right" nowrap>[% transdate_txt | $T8 %]</th>
-            <td>[% L.date_tag('order.transdate', SELF.order.transdate) %]</td>
+            <td>[% L.date_tag('order.transdate_as_date', SELF.order.transdate_as_date) %]</td>
           </tr>
 
           [%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
           [%- END -%]
           <tr>
             <th width="70%" align="right" nowrap>[% reqdate_txt | $T8 %]</th>
-            <td>[% L.date_tag('order.reqdate', SELF.order.reqdate) %]</td>
+            <td>[% L.date_tag('order.reqdate_as_date', SELF.order.reqdate_as_date) %]</td>
           </tr>
 
           [%- IF SELF.type == "sales_quotation" -%]
           </tr>
           <tr>
             <th width="70%" align="right" nowrap>[% 'Expected billing date' | $T8 %]</th>
-            <td>[%- L.date_tag('order.expected_billing_date', SELF.order.expected_billing_date) %]</td>
+            <td>[%- L.date_tag('order.expected_billing_date_as_date', SELF.order.expected_billing_date_sa_date) %]</td>
           </tr>
           [%- END %]