Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ce004da6

Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt

  • ID ce004da66dbdc852ab24aa598edabfe1d326147c
  • Vorgänger 89039963
  • Nachfolger fc1490e8

Kosmetik

Unterschiede anzeigen:

SL/DB/PurchaseInvoice.pm
10 10
# The calculator hasn't been adjusted for purchase invoices yet.
11 11
# use SL::DB::Helper::PriceTaxCalculator;
12 12

  
13
__PACKAGE__->meta->add_relationship(invoiceitems => { type         => 'one to many',
14
                                                      class        => 'SL::DB::InvoiceItem',
15
                                                      column_map   => { id => 'trans_id' },
16
                                                      manager_args => { with_objects => [ 'part' ] }
17
                                                    },
18
                                   );
13
__PACKAGE__->meta->add_relationship(
14
  invoiceitems   => {
15
    type         => 'one to many',
16
    class        => 'SL::DB::InvoiceItem',
17
    column_map   => { id => 'trans_id' },
18
    manager_args => { with_objects => [ 'part' ] }
19
  },
20
);
19 21

  
20 22
__PACKAGE__->meta->initialize;
21 23

  

Auch abrufbar als: Unified diff