From: Sven Schöling Date: Fri, 13 Apr 2018 14:38:51 +0000 (+0200) Subject: RecordLinks: Support für Kreditore/Debitorenbuchungen X-Git-Tag: release-3.5.4~377 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=792c623f24a4c5985f9c67395f75444d34679f0d;p=kivitendo-erp.git RecordLinks: Support für Kreditore/Debitorenbuchungen Conflicts: SL/Controller/RecordLinks.pm --- diff --git a/SL/Controller/RecordLinks.pm b/SL/Controller/RecordLinks.pm index cd57e98fd..152fe95f5 100644 --- a/SL/Controller/RecordLinks.pm +++ b/SL/Controller/RecordLinks.pm @@ -50,6 +50,8 @@ my @link_type_specifics = ( { title => t8('Purchase Invoice'), type => 'purchase_invoice', model => 'PurchaseInvoice', number => 'invnumber', }, { title => t8('Letter'), type => 'letter', model => 'Letter', number => 'letternumber', description => 'subject', description_title => t8('Subject'), date => 'date', project => undef }, { title => t8('Email'), type => 'email_journal', model => 'EmailJournal', number => 'id', description => 'subject', description_title => t8('Subject'), }, + { title => t8('AR Transaction'), type => 'ar_transaction', model => 'Invoice', number => 'invnumber', }, + { title => t8('AP Transaction'), type => 'ap_transaction', model => 'PurchaseInvoice', number => 'invnumber', }, ); my @link_types = map { +{ %link_type_defaults, %{ $_ } } } @link_type_specifics; @@ -124,7 +126,7 @@ sub action_ajax_add_list { my ($self) = @_; my $manager = 'SL::DB::Manager::' . $self->link_type_desc->{model}; - my $vc = $self->link_type =~ m/shop|sales_|^invoice|requirement_spec|letter/ ? 'customer' : 'vendor'; + my $vc = $self->link_type =~ m/shop|sales_|^invoice|requirement_spec|letter|^ar_/ ? 'customer' : 'vendor'; my $project = $self->link_type_desc->{project}; my $project_id = "${project}_id"; my $description = $self->link_type_desc->{description};