Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6d1df9ca

Von Moritz Bunkus vor mehr als 17 Jahren hinzugefügt

  • ID 6d1df9ca24bbb8c03e10812ce4cf1b889d947470
  • Vorgänger b62c51a4
  • Nachfolger 299606e3

Beim Versenden von Emails wird der Text etc wieder in intnotes gespeichert. Fix für Bug 713.

Unterschiede anzeigen:

SL/OE.pm
389 389
    ? $exchangerate
390 390
    : $form->parse_amount($myconfig, $form->{exchangerate});
391 391

  
392
  my $quotation;
393

  
394
  # fill in subject if there is none
395
  if ($form->{type} =~ /_order$/) {
396
    $quotation = 'f';
397
    $form->{subject} = qq|$form->{label} $form->{ordnumber}|
398
      unless $form->{subject};
399
  } else {
400
    $quotation = 't';
401
    $form->{subject} = qq|$form->{label} $form->{quonumber}|
402
      unless $form->{subject};
403
  }
404

  
405
  # if there is a message stuff it into the intnotes
406
  my $cc  = "Cc: $form->{cc}\\r\n"   if $form->{cc};
407
  my $bcc = "Bcc: $form->{bcc}\\r\n" if $form->{bcc};
408
  my $now = scalar localtime;
409
  $form->{intnotes} .= qq|\r
410
\r| if $form->{intnotes};
411

  
412
  $form->{intnotes} .= qq|[email]\r
413
Date: $now
414
To: $form->{email}\r
415
$cc${bcc}Subject: $form->{subject}\r
416
\r
417
Message: $form->{message}\r| if $form->{message};
392
  my $quotation = $form->{type} =~ /_order$/ ? 'f' : 't';
418 393

  
419 394
  ($null, $form->{department_id}) = split(/--/, $form->{department});
420 395

  

Auch abrufbar als: Unified diff