Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8d45322a

Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt

  • ID 8d45322aec2425522c31e03480054d02f020e679
  • Vorgänger 4289320a
  • Nachfolger 73eb1f18

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

Unterschiede anzeigen:

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

Auch abrufbar als: Unified diff