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/PurchaseInvoice.pm
187 187
  if ( $tax and $tax->rate != 0 ) {
188 188
    ($netamount, $taxamount) = Form->calculate_tax($params{amount}, $tax->rate, $self->taxincluded, $roundplaces);
189 189
  };
190
  next unless $netamount; # netamount mustn't be zero
190

  
191
  return unless $netamount; # netamount mustn't be zero
191 192

  
192 193
  my $sign = $self->vendor_id ? -1 : 1;
193 194
  my $acc = SL::DB::AccTransaction->new(

Auch abrufbar als: Unified diff