Lines 375-380
if ($digest_per_branch) {
Link Here
|
375 |
sth => $sth_digest, |
375 |
sth => $sth_digest, |
376 |
digests => $digests, |
376 |
digests => $digests, |
377 |
letter_code => 'PREDUEDGST', |
377 |
letter_code => 'PREDUEDGST', |
|
|
378 |
message_name => 'advance_notice', |
378 |
branchcode => $branchcode, |
379 |
branchcode => $branchcode, |
379 |
get_item_info => sub { |
380 |
get_item_info => sub { |
380 |
my $params = shift; |
381 |
my $params = shift; |
Lines 393-398
if ($digest_per_branch) {
Link Here
|
393 |
digests => $due_digest, |
394 |
digests => $due_digest, |
394 |
letter_code => 'DUEDGST', |
395 |
letter_code => 'DUEDGST', |
395 |
branchcode => $branchcode, |
396 |
branchcode => $branchcode, |
|
|
397 |
message_name => 'item_due', |
396 |
get_item_info => sub { |
398 |
get_item_info => sub { |
397 |
my $params = shift; |
399 |
my $params = shift; |
398 |
$params->{sth}->execute($params->{borrowernumber}, 0); |
400 |
$params->{sth}->execute($params->{borrowernumber}, 0); |
Lines 407-412
if ($digest_per_branch) {
Link Here
|
407 |
sth => $sth_digest, |
409 |
sth => $sth_digest, |
408 |
digests => $upcoming_digest, |
410 |
digests => $upcoming_digest, |
409 |
letter_code => 'PREDUEDGST', |
411 |
letter_code => 'PREDUEDGST', |
|
|
412 |
message_name => 'advance_notice', |
410 |
get_item_info => sub { |
413 |
get_item_info => sub { |
411 |
my $params = shift; |
414 |
my $params = shift; |
412 |
$params->{sth}->execute($params->{borrowernumber}, |
415 |
$params->{sth}->execute($params->{borrowernumber}, |
Lines 421-426
if ($digest_per_branch) {
Link Here
|
421 |
sth => $sth_digest, |
424 |
sth => $sth_digest, |
422 |
digests => $due_digest, |
425 |
digests => $due_digest, |
423 |
letter_code => 'DUEDGST', |
426 |
letter_code => 'DUEDGST', |
|
|
427 |
message_name => 'item_due', |
424 |
get_item_info => sub { |
428 |
get_item_info => sub { |
425 |
my $params = shift; |
429 |
my $params = shift; |
426 |
$params->{sth}->execute($params->{borrowernumber}, 0); |
430 |
$params->{sth}->execute($params->{borrowernumber}, 0); |
Lines 549-555
sub send_digests {
Link Here
|
549 |
C4::Members::Messaging::GetMessagingPreferences( |
553 |
C4::Members::Messaging::GetMessagingPreferences( |
550 |
{ |
554 |
{ |
551 |
borrowernumber => $borrowernumber, |
555 |
borrowernumber => $borrowernumber, |
552 |
message_name => 'advance_notice' |
556 |
message_name => $params->{message_name} |
553 |
} |
557 |
} |
554 |
); |
558 |
); |
555 |
|
559 |
|
556 |
- |
|
|