Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision bcc996e6

Von Jan Büren vor fast 6 Jahren hinzugefügt

  • ID bcc996e65643a7bd5766e5d633fff572be4a464c
  • Vorgänger 0a076aab
  • Nachfolger e64f5d37

Rechnungsadresse aus den Stammdaten bei periodischen Rechnungen verwenden (Anzeige beim Editieren)

Unterschiede anzeigen:

SL/BackgroundJob/CreatePeriodicInvoices.pm
376 376
    grep { $_       }
377 377
    map  { trim($_) }
378 378
    (split(m{,}, $data->{config}->email_recipient_address),
379
     $data->{config}->email_recipient_contact ? ($data->{config}->email_recipient_contact->cp_email) : ());
379
     $data->{config}->email_recipient_contact   ? ($data->{config}->email_recipient_contact->cp_email) : (),
380
     $data->{invoice}->{customer}->invoice_mail ? ($data->{invoice}->{customer}->invoice_mail) : ()
381
    );
380 382

  
381 383
  return unless @recipients;
382 384

  
SL/Controller/Order.pm
509 509

  
510 510
  if ($::form->{customer_id}) {
511 511
    $::form->{ALL_CONTACTS} = SL::DB::Manager::Contact->get_all_sorted(where => [ cp_cv_id => $::form->{customer_id} ]);
512
    $::form->{email_recipient_invoice_address} = SL::DB::Manager::Customer->find_by(id => $::form->{customer_id})->invoice_mail;
512 513
  }
513 514

  
514 515
  $self->render('oe/edit_periodic_invoices_config', { layout => 0 },

Auch abrufbar als: Unified diff