View | Details | Raw Unified | Return to bug 26689
Collapse All | Expand All

(-)a/members/printinvoice.pl (-3 / +23 lines)
Lines 55-62 output_and_exit_if_error( Link Here
55
    }
55
    }
56
);
56
);
57
57
58
my $letter = C4::Letters::getletter( 'circulation', 'ACCOUNT_DEBIT',
58
my $letter = C4::Letters::GetPreparedLetter(
59
    C4::Context::mybranch, 'print', $patron->lang );
59
    module                 => 'circulation',
60
    letter_code            => $debit->debit_type_code,
61
    branchcode             => C4::Context::mybranch,
62
    message_transport_type => 'print',
63
    lang                   => $patron->lang,
64
    tables                 => {
65
        debits    => $debit_id,
66
        borrowers => $patron->borrowernumber
67
    }
68
);
69
70
$letter //= C4::Letters::GetPreparedLetter(
71
    module                 => 'circulation',
72
    letter_code            => 'ACCOUNT_DEBIT',
73
    branchcode             => C4::Context::mybranch,
74
    message_transport_type => 'print',
75
    lang                   => $patron->lang,
76
    tables                 => {
77
        debits    => $debit_id,
78
        borrowers => $patron->borrowernumber
79
    }
80
);
60
81
61
$template->param(
82
$template->param(
62
    letter  => $letter,
83
    letter  => $letter,
63
- 

Return to bug 26689