Revision 6d1df9ca
Von Moritz Bunkus vor mehr als 17 Jahren hinzugefügt
SL/IS.pm | ||
---|---|---|
942 | 942 |
|
943 | 943 |
$amount = $netamount + $tax; |
944 | 944 |
|
945 |
# fill in subject if there is none |
|
946 |
$form->{subject} = qq|$form->{label} $form->{invnumber}| |
|
947 |
unless $form->{subject}; |
|
948 |
|
|
949 |
# if there is a message stuff it into the intnotes |
|
950 |
my $cc = "Cc: $form->{cc}\\r\n" if $form->{cc}; |
|
951 |
my $bcc = "Bcc: $form->{bcc}\\r\n" if $form->{bcc}; |
|
952 |
my $now = scalar localtime; |
|
953 |
$form->{intnotes} .= qq|\r |
|
954 |
\r| if $form->{intnotes}; |
|
955 |
|
|
956 |
$form->{intnotes} .= qq|[email]\r |
|
957 |
Date: $now |
|
958 |
To: $form->{email}\r |
|
959 |
$cc${bcc}Subject: $form->{subject}\r |
|
960 |
\r |
|
961 |
Message: $form->{message}\r| if $form->{message}; |
|
962 |
|
|
963 | 945 |
# save AR record |
964 | 946 |
$query = qq|UPDATE ar set |
965 | 947 |
invnumber = ?, |
Auch abrufbar als: Unified diff
Beim Versenden von Emails wird der Text etc wieder in intnotes gespeichert. Fix für Bug 713.