Revision b66801e2
Von Tamino Steinert vor 11 Monaten hinzugefügt
SL/Presenter/Invoice.pm | ||
---|---|---|
6 | 6 |
use SL::Presenter::Tag qw(link_tag); |
7 | 7 |
|
8 | 8 |
use Exporter qw(import); |
9 |
our @EXPORT_OK = qw(invoice sales_invoice ar_transaction purchase_invoice ap_transaction); |
|
9 |
our @EXPORT_OK = qw(show invoice sales_invoice ar_transaction purchase_invoice ap_transaction);
|
|
10 | 10 |
|
11 | 11 |
use Carp; |
12 | 12 |
|
13 |
sub show {goto &invoice}; |
|
14 |
|
|
13 | 15 |
sub invoice { |
14 | 16 |
my ($invoice, %params) = @_; |
15 | 17 |
|
... | ... | |
102 | 104 |
|
103 | 105 |
# use with any of the above ar/ap/is/ir types: |
104 | 106 |
my $html = SL::Presenter::Invoice::invoice($object, display => 'inline'); |
107 |
my $html = $object->presenter->show(); |
|
105 | 108 |
|
106 | 109 |
=head1 FUNCTIONS |
107 | 110 |
|
108 | 111 |
=over 4 |
109 | 112 |
|
113 |
=item C<show $object> |
|
114 |
|
|
115 |
Alias for C<invoice $object %params>. |
|
116 |
|
|
110 | 117 |
=item C<invoice $object, %params> |
111 | 118 |
|
112 | 119 |
Returns a rendered version (actually an instance of |
Auch abrufbar als: Unified diff
S:Presenter:Record: Alias Funktion "show" in verwendeten Objekten