Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c21d2acc

Von Moritz Bunkus vor mehr als 9 Jahren hinzugefügt

  • ID c21d2acca00997c4ca0be66f053dfdd0180f68f8
  • Vorgänger b8ee6b6e
  • Nachfolger eebe8e90

PriceTaxCalculator: Doku-Fix

Unterschiede anzeigen:

SL/DB/Helper/PriceTaxCalculator.pm
358 358
C<taxkey_id>.
359 359

  
360 360
The items are stored in the same order the items are stored in the
361
object that L</calculate_taxes_and_prices> has been called on.
361
object that L</calculate_prices_and_taxes> has been called on.
362 362

  
363 363
For example:
364 364

  
365 365
  my $invoice     = SL::DB::Invoice->new(id => 12345)->load;
366 366
  my %data        = $invoice->calculate_prices_and_taxes;
367
  my $second_item = $invoice->items->[1];
368 367

  
369
  print "line total of second item: " . $data{items}->[ $second_item->id ]->{linetotal};
368
  print "line total of second item: " . $data{items}->[1]->{linetotal};
370 369

  
371 370
=back
372 371

  

Auch abrufbar als: Unified diff