Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3926714c

Von Tamino Steinert vor 7 Monaten hinzugefügt

  • ID 3926714c91eb1ce7fd1750f391c395a56ff12a9e
  • Vorgänger 6d079c3d
  • Nachfolger 19e2bb1a

EK/VK-Rechnung Typefilter für alle vorhandenen Typen erweitert

Unterschiede anzeigen:

SL/DB/Manager/PurchaseInvoice.pm
16 16
  my $type  = lc(shift || '');
17 17

  
18 18
  return (or  => [ invoice => 0, invoice => undef                       ]) if $type eq 'ap_transaction';
19
  return (and => [ invoice => 1, or => [ storno => 0, storno => undef ] ]) if $type =~ m/^(?:purchase_)?invoice$/;
19
  return (and => [ invoice => 1, amount => { lt => 0 }, or => [ storno => 0, storno => undef ] ]) if $type eq 'purchase_credit_note';
20
  return (and => [ invoice => 1, amount => { ge => 0 }, or => [ storno => 0, storno => undef ] ]) if $type =~ m/^(?:purchase_)?invoice$/;
20 21
  return (and => [ invoice => 1,         storno => 1                    ]) if $type =~ m/(?:invoice_)?storno/;
21 22

  
22 23
  die "Unknown type $type";

Auch abrufbar als: Unified diff