Vorgangsbezeichnung in Kreditorenbuchungs-Vorlage: Speichern und Laden
[kivitendo-erp.git] / bin / mozilla / ap.pl
index 7fcfef1..a062a03 100644 (file)
@@ -136,7 +136,7 @@ sub load_record_template {
   $::form->{duedate}          = $today->to_kivitendo;
   $::form->{rowcount}         = @{ $template->items };
   $::form->{paidaccounts}     = 1;
-  $::form->{$_}               = $template->$_ for qw(department_id ordnumber taxincluded notes);
+  $::form->{$_}               = $template->$_ for qw(department_id ordnumber taxincluded notes transaction_description);
 
   if ($template->vendor) {
     $::form->{vendor_id} = $template->vendor_id;
@@ -219,6 +219,7 @@ sub save_record_template {
     direct_debit   => $::form->{direct_debit} ? 1 : 0,
     ordnumber      => $::form->{ordnumber},
     notes          => $::form->{notes},
+    transaction_description => $::form->{transaction_description},
 
     items          => \@items,
   );
@@ -1248,6 +1249,7 @@ sub add_from_purchase_order {
   $::form->{globalproject_id}   = $order->globalproject_id;
   $::form->{ordnumber}          = $order->number;
   $::form->{department_id}      = $order->department_id;
+  $::form->{transaction_description} = $order->transaction_description;
   $::form->{currency}           = $order->currency->name;
   $::form->{taxincluded}        = 1; # we use amount below, so tax is included
   $::form->{transdate}          = $today->to_kivitendo;