Revision 792c623f
Von Sven Schöling vor mehr als 6 Jahren hinzugefügt
SL/Controller/RecordLinks.pm | ||
---|---|---|
50 | 50 |
{ title => t8('Purchase Invoice'), type => 'purchase_invoice', model => 'PurchaseInvoice', number => 'invnumber', }, |
51 | 51 |
{ title => t8('Letter'), type => 'letter', model => 'Letter', number => 'letternumber', description => 'subject', description_title => t8('Subject'), date => 'date', project => undef }, |
52 | 52 |
{ title => t8('Email'), type => 'email_journal', model => 'EmailJournal', number => 'id', description => 'subject', description_title => t8('Subject'), }, |
53 |
{ title => t8('AR Transaction'), type => 'ar_transaction', model => 'Invoice', number => 'invnumber', }, |
|
54 |
{ title => t8('AP Transaction'), type => 'ap_transaction', model => 'PurchaseInvoice', number => 'invnumber', }, |
|
53 | 55 |
); |
54 | 56 |
|
55 | 57 |
my @link_types = map { +{ %link_type_defaults, %{ $_ } } } @link_type_specifics; |
... | ... | |
124 | 126 |
my ($self) = @_; |
125 | 127 |
|
126 | 128 |
my $manager = 'SL::DB::Manager::' . $self->link_type_desc->{model}; |
127 |
my $vc = $self->link_type =~ m/shop|sales_|^invoice|requirement_spec|letter/ ? 'customer' : 'vendor'; |
|
129 |
my $vc = $self->link_type =~ m/shop|sales_|^invoice|requirement_spec|letter|^ar_/ ? 'customer' : 'vendor';
|
|
128 | 130 |
my $project = $self->link_type_desc->{project}; |
129 | 131 |
my $project_id = "${project}_id"; |
130 | 132 |
my $description = $self->link_type_desc->{description}; |
Auch abrufbar als: Unified diff
RecordLinks: Support für Kreditore/Debitorenbuchungen
Conflicts:
SL/Controller/RecordLinks.pm