Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 60cba3e3

Von Tamino Steinert vor 6 Monaten hinzugefügt

  • ID 60cba3e3891894ba4238971f1d5f7a2c99137dc0
  • Vorgänger 5353aec5
  • Nachfolger 148785d9

S:Presenter:Record: Alias Funktion "show" in verwendeten Objekten

Verknüpfte Belege nutzt folgende Objekte:
DeliveryOrder, Dunning, EmailJournal, GL, Invoice, Letter, Order,
Reclamation, RequirementSpec, ShopOrder

Unterschiede anzeigen:

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