X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/7e7a13692ac4dd952cf85a972d2919eed80edca1..fcc1d512a5e2cd9db53702fea9ef83684aa0f2f3:/SL/IS.pm diff --git a/SL/IS.pm b/SL/IS.pm index d6acb2b31..32b517121 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -2113,7 +2113,7 @@ sub get_pricegroups_for_parts { $pkr->{price_ufmt} = $pkr->{price}; $pkr->{price} = $form->format_amount($myconfig, $pkr->{price}, 5); - if ($selectedpricegroup_id eq undef) { + if (!defined $selectedpricegroup_id) { # new entries in article list, either old invoice was loaded (edit) or a new article was added # Case A: open old invoice, no pricegroup selected # Case B: add new article to invoice, no pricegroup selected