From: Bernd Bleßmann Date: Wed, 10 Nov 2021 14:14:52 +0000 (+0100) Subject: Anzahlungs-Rg.: neuen Typ bei Nummergenerierung berücksichtigen X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~217^2~46 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7280d170943f609ecc9ca38e9b0197dfaef0c540;p=kivitendo-erp.git Anzahlungs-Rg.: neuen Typ bei Nummergenerierung berücksichtigen --- diff --git a/SL/TransNumber.pm b/SL/TransNumber.pm index bd3e75332..e299e2c25 100644 --- a/SL/TransNumber.pm +++ b/SL/TransNumber.pm @@ -15,7 +15,7 @@ use Rose::Object::MakeMethods::Generic scalar => [ qw(type id number save dbh dbh_provided business_id) ], ); -my @SUPPORTED_TYPES = qw(invoice credit_note customer vendor sales_delivery_order purchase_delivery_order sales_order purchase_order sales_quotation request_quotation part service assembly assortment letter); +my @SUPPORTED_TYPES = qw(invoice invoice_for_advance_payment credit_note customer vendor sales_delivery_order purchase_delivery_order sales_order purchase_order sales_quotation request_quotation part service assembly assortment letter); sub new { my $class = shift; @@ -37,7 +37,7 @@ sub _get_filters { my $type = $self->type; my %filters = ( where => '' ); - if (any { $_ eq $type } qw(invoice credit_note)) { + if (any { $_ eq $type } qw(invoice invoice_for_advance_payment credit_note)) { $filters{trans_number} = "invnumber"; $filters{numberfield} = $type eq 'credit_note' ? "cnnumber" : "invnumber"; $filters{table} = "ar";