Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 73e9f6e3

Von Bernd Bleßmann vor etwa 1 Jahr hinzugefügt

  • ID 73e9f6e37b9d6a6ec8b3a8e71baedf1bcd5a7830
  • Vorgänger 94e9c19f
  • Nachfolger c224f946

"return" statt "next", um subroutine zu verlassen

Unterschiede anzeigen:

SL/DB/Invoice.pm
380 380
  if ( $tax and $tax->rate != 0 ) {
381 381
    ($netamount, $taxamount) = Form->calculate_tax($params{amount}, $tax->rate, $self->taxincluded, $roundplaces);
382 382
  };
383
  next unless $netamount; # netamount mustn't be zero
383

  
384
  return unless $netamount; # netamount mustn't be zero
385

  
384 386
  my $sign = $self->customer_id ? 1 : -1;
385 387
  my $acc = SL::DB::AccTransaction->new(
386 388
    amount     => $netamount * $sign,

Auch abrufbar als: Unified diff