X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FDB%2FHelper%2FPayment.pm;h=64d6a639cbdeb0aeaaf5aaa1933c08e0fc2446c0;hb=8d05386958d82c45b50062268bb549a08051486f;hp=b7bf38a128d0e98ff5da80ad8bb6063a0546176a;hpb=daaac66a83e3dbdcc910731a1695e7e59b9cbbc6;p=kivitendo-erp.git diff --git a/SL/DB/Helper/Payment.pm b/SL/DB/Helper/Payment.pm index b7bf38a12..64d6a639c 100644 --- a/SL/DB/Helper/Payment.pm +++ b/SL/DB/Helper/Payment.pm @@ -387,7 +387,7 @@ sub open_amount { # if the difference is 0.01 Cent this may end up as 0.009999999999998 # numerically, so round this value when checking for cent threshold >= 0.01 - return $self->amount - $self->paid; + return ($self->amount // 0) - ($self->paid // 0); }; sub open_percent {