Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3a2468fa

Von Tamino Steinert vor 10 Monaten hinzugefügt

  • ID 3a2468fa63fa763f84d28f5ba98e6273dace17e1
  • Vorgänger 56b544c6
  • Nachfolger 6d079c3d

FIX: richtige Query fürs Suchen nach offenen VK-Rechnungen

Unterschiede anzeigen:

SL/DB/Manager/Invoice.pm
20 20
  return (and => [ invoice => 1, amount  => { lt => 0 }, or => [ storno => 0, storno => undef ] ]) if $type eq 'credit_note';
21 21
  return (and => [ invoice => 1, amount  => { lt => 0 },         storno => 1                    ]) if $type =~ m/(?:invoice_)?storno/;
22 22
  return (and => [ invoice => 1, amount  => { ge => 0 },         storno => 1                    ]) if $type eq 'credit_note_storno';
23
  return (amount => {gt => 'paid'}) if $type eq 'open';
23
  return (amount => {gt => \'paid'}) if $type eq 'open';
24 24

  
25 25
  die "Unknown type $type";
26 26
}

Auch abrufbar als: Unified diff