|
Lines 692-697
END_SQL
Link Here
|
| 692 |
if ( ($mtt eq 'email' and not scalar @emails_to_use) or ($mtt eq 'sms' and not $data->{smsalertnumber}) ) { |
692 |
if ( ($mtt eq 'email' and not scalar @emails_to_use) or ($mtt eq 'sms' and not $data->{smsalertnumber}) ) { |
| 693 |
# email or sms is requested but not exist, do a print. |
693 |
# email or sms is requested but not exist, do a print. |
| 694 |
$mtt = 'print'; |
694 |
$mtt = 'print'; |
|
|
695 |
push @output_chunks, |
| 696 |
prepare_letter_for_printing( |
| 697 |
{ letter => $letter, |
| 698 |
borrowernumber => $borrowernumber, |
| 699 |
firstname => $data->{'firstname'}, |
| 700 |
lastname => $data->{'surname'}, |
| 701 |
address1 => $data->{'address'}, |
| 702 |
address2 => $data->{'address2'}, |
| 703 |
city => $data->{'city'}, |
| 704 |
postcode => $data->{'zipcode'}, |
| 705 |
country => $data->{'country'}, |
| 706 |
email => $notice_email, |
| 707 |
itemcount => $itemcount, |
| 708 |
titles => $titles, |
| 709 |
outputformat => defined $csvfilename ? 'csv' : defined $htmlfilename ? 'html' : defined $text_filename ? 'text' : '', |
| 710 |
} |
| 711 |
); |
| 695 |
} |
712 |
} |
| 696 |
unless ( $mtt eq 'print' and $print_sent == 1 ) { |
713 |
unless ( $mtt eq 'print' and $print_sent == 1 ) { |
| 697 |
# Just sent a print if not already done. |
714 |
# Just sent a print if not already done. |
| 698 |
- |
|
|