|
Lines 90-98
EOS
Link Here
|
| 90 |
|
90 |
|
| 91 |
=head3 patron |
91 |
=head3 patron |
| 92 |
|
92 |
|
| 93 |
my $patron = $checkout->patron |
93 |
my $patron = $message->patron |
| 94 |
|
94 |
|
| 95 |
Return the patron by whom the checkout was done |
95 |
Return the patron by whom this message is for |
| 96 |
|
96 |
|
| 97 |
=cut |
97 |
=cut |
| 98 |
|
98 |
|
|
Lines 103-108
sub patron {
Link Here
|
| 103 |
return Koha::Patron->_new_from_dbic($patron_rs); |
103 |
return Koha::Patron->_new_from_dbic($patron_rs); |
| 104 |
} |
104 |
} |
| 105 |
|
105 |
|
|
|
106 |
=head3 template |
| 107 |
|
| 108 |
my $template = $message->template |
| 109 |
|
| 110 |
Return the template from which this message may have been generated |
| 111 |
|
| 112 |
=cut |
| 113 |
|
| 114 |
sub template { |
| 115 |
my ($self) = @_; |
| 116 |
my $template_rs = $self->_result->letter; |
| 117 |
return unless $template_rs; |
| 118 |
return Koha::Notice::Template->_new_from_dbic($template_rs); |
| 119 |
} |
| 120 |
|
| 106 |
=head3 type |
121 |
=head3 type |
| 107 |
|
122 |
|
| 108 |
=cut |
123 |
=cut |
| 109 |
- |
|
|