X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FManager%2FInvoice.pm;h=5dc943f85dd39355d610718ae79f9a62de4838d8;hb=bcdc9f7040d4bc0c0b4d7ce77f1afc29543b04a4;hp=03c2296da49d11553215a845d3064e795a74fa67;hpb=284470c116a0f1a73f82797160b0170e55a58652;p=kivitendo-erp.git diff --git a/SL/DB/Manager/Invoice.pm b/SL/DB/Manager/Invoice.pm index 03c2296da..5dc943f85 100644 --- a/SL/DB/Manager/Invoice.pm +++ b/SL/DB/Manager/Invoice.pm @@ -20,6 +20,7 @@ sub type_filter { 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'; die "Unknown type $type"; }