{ title => t8('AR Transaction'), type => 'ar_transaction', model => 'Invoice', number => 'invnumber', },
{ title => t8('AP Transaction'), type => 'ap_transaction', model => 'PurchaseInvoice', number => 'invnumber', },
{ title => t8('Dunning'), type => 'dunning', model => 'Dunning', number => 'dunning_id', },
+ { title => t8('GL Transaction'), type => 'gl_transaction', model => 'GLTransaction', number => 'reference', },
);
my @link_types = map { +{ %link_type_defaults, %{ $_ } } } @link_type_specifics;
use strict;
+use SL::DB::Helper::LinkedRecords;
use SL::DB::MetaSetup::GLTransaction;
use SL::Locale::String qw(t8);
use List::Util qw(sum);
'SL::DB::ShopOrder' => sub { $_[0]->shop_ordernumber },
'SL::DB::EmailJournal' => sub { $_[0]->id },
'SL::DB::Dunning' => sub { $_[0]->dunning_id },
+ 'SL::DB::GLTransaction' => sub { $_[0]->reference },
UNKNOWN => '9999999999999999',
);
my $number_xtor = sub {
purchase_order => 130,
purchase_delivery_order => 140,
'SL::DB::PurchaseInvoice' => 150,
- 'SL::DB::PurchaseInvoice' => 150,
+ 'SL::DB::GLTransaction' => 170,
'SL::DB::Letter' => 200,
'SL::DB::ShopOrder' => 250,
'SL::DB::EmailJournal' => 300,
bei Kunden, Lieferanten und Ansprechpersonen durchsucht.
- Skontoautomatik bei Kontoauszug verbuchen generiert automatisch die
Steuerkorrektur pro Steuersatz des Belegs als verknüpfte Dialogbuchung
+- Verknüpfte Belege auch für Dialogbuchungen (neuer Reiter)
2022-03-02 - Release 3.6.0
<li><a href="#ui-tabs-docs">[% 'Documents' | $T8 %]</a></li>
<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=gl_transaction&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li>
[%- END %]
+ [%- IF AUTH.assert('record_links', 1) %]
+ <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=GLTransaction&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li>
+ [%- END %]
[%- END %]
</ul>