Merge von 843,844 aus unstable: UStVa Bugfix, locales, Update help
[kivitendo-erp.git] / bin / mozilla / io.pl
index 31322f0..9fdb058 100644 (file)
@@ -1585,8 +1585,16 @@ sub print_form {
     IS->invoice_details(\%myconfig, \%$form, $locale);
   }
 
+  # format global dates 
   map { $form->{$_} = $locale->date(\%myconfig, $form->{$_}, 1) }
-    ("${inv}date", "${due}date", "shippingdate");
+    ("${inv}date", "${due}date", "shippingdate", "deliverydate");
+
+  # format item dates
+  for my $field (qw(transdate_oe deliverydate_oe)) {
+    map { 
+      $form->{$field}[$_] = $locale->date(\%myconfig, $form->{$field}[$_], 1); 
+    } 0..$#{$form->{$field}};
+  }
 
   @a = qw(name street zipcode city country);
 
@@ -1616,7 +1624,7 @@ sub print_form {
   push @a,
     qw(shiptoname shiptostreet shiptozipcode shiptocity shiptocountry shiptoemail shippingpoint shipvia company address signature employee contact department_1 department_2);
 
-  push @a, ("${inv}date", "${due}date", email, cc, bcc);
+  push @a, ("${inv}date", "${due}date", "deliverydate", email, cc, bcc);
 
   $form->format_string(@a);