Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 36d7ceb2

Von Tamino Steinert vor etwa 1 Jahr hinzugefügt

  • ID 36d7ceb2d203115fe890f1a47e252e20c5e5a1d2
  • Vorgänger f596739c
  • Nachfolger e2e5606d

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