Zu bcc996e65643 Rechnungsadresse aus dem Stammdaten auch für alte oe
authorJan Büren <jan@kivitendo.de>
Wed, 8 Jul 2020 12:38:19 +0000 (14:38 +0200)
committerJan Büren <jan@kivitendo.de>
Wed, 8 Jul 2020 12:44:05 +0000 (14:44 +0200)
bin/mozilla/oe.pl

index 321bec3..012914d 100644 (file)
@@ -2196,6 +2196,7 @@ sub edit_periodic_invoices_config {
 
   if ($::form->{customer_id}) {
     $::form->{ALL_CONTACTS} = SL::DB::Manager::Contact->get_all_sorted(where => [ cp_cv_id => $::form->{customer_id} ]);
+    $::form->{email_recipient_invoice_address} = SL::DB::Manager::Customer->find_by(id => $::form->{customer_id})->invoice_mail;
   }
 
   $::form->header(no_layout => 1);