Lines 328-343
sub send_digests {
Link Here
|
328 |
borrowers => $patron->borrowernumber, |
328 |
borrowers => $patron->borrowernumber, |
329 |
}, |
329 |
}, |
330 |
message_transport_type => $transport, |
330 |
message_transport_type => $transport, |
331 |
) || warn "no letter of type '$params->{letter_code}' found for borrowernumber $borrowernumber. Please see sample_notices.sql"; |
331 |
); |
332 |
|
332 |
|
333 |
next unless $letter; |
333 |
if ($letter) { |
|
|
334 |
C4::Letters::EnqueueLetter( |
335 |
{ |
336 |
letter => $letter, |
337 |
borrowernumber => $borrowernumber, |
338 |
from_address => $from_address, |
339 |
message_transport_type => $transport |
340 |
} |
341 |
); |
342 |
} |
343 |
else { |
344 |
warn |
345 |
"no letter of type '$params->{letter_code}' found for borrowernumber $borrowernumber. Please see sample_notices.sql"; |
346 |
} |
334 |
|
347 |
|
335 |
C4::Letters::EnqueueLetter({ |
|
|
336 |
letter => $letter, |
337 |
borrowernumber => $borrowernumber, |
338 |
from_address => $from_address, |
339 |
message_transport_type => $transport |
340 |
}); |
341 |
} |
348 |
} |
342 |
} |
349 |
} |
343 |
} |
350 |
} |
344 |
- |
|
|