X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/242119d5c072981ca16fdaef4546ce2e1b8cc314..475b7a3ff7259102d938b91bfeac8012dbe69d45:/SL/IS.pm diff --git a/SL/IS.pm b/SL/IS.pm index 1340fcbfc..1b8534e65 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -1061,8 +1061,7 @@ SQL # entsprechend auch beim Bestimmen des Steuerschlüssels in Taxkey.pm berücksichtigen my $taxdate = $form->{tax_point} ||$form->{deliverydate} || $form->{invdate}; - # better type? maybe define Invoice->invoice_type - if (!$already_booked && $form->{type} ne 'invoice_for_advance_payment') { + if (!$already_booked && $form->{type} eq 'final_invoice') { my $invoices_for_advance_payment = $self->_get_invoices_for_advance_payment($form->{convert_from_ar_ids} || $form->{id}); if (scalar @$invoices_for_advance_payment > 0) { # reverse booking for invoices for advance payment