X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/7e7a13692ac4dd952cf85a972d2919eed80edca1..d04df1651c1dacc20d309b12a764545129ab10c5:/SL/IS.pm diff --git a/SL/IS.pm b/SL/IS.pm index d6acb2b31..22080c7e6 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -1676,6 +1676,7 @@ sub get_customer { c.email, c.cc, c.bcc, c.language_id, c.payment_id, c.street, c.zipcode, c.city, c.country, c.notes AS intnotes, c.klass as customer_klass, c.taxzone_id, c.salesman_id, c.curr, + c.taxincluded_checked, $duedate + COALESCE(pt.terms_netto, 0) AS duedate, b.discount AS tradediscount, b.description AS business FROM customer c @@ -2113,7 +2114,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