- ## add a stable link from ap to gl
- # not needed, BankTransactionAccTrans is already stable
- # furthermore the origin of the booking is the bank_transaction
- #my $arap = $self->is_sales ? 'ar' : 'ap';
- #my %props_gl = (
- # $arap . _id => $self->id,
- # gl_id => $current_transaction->id,
- # datev_export => 1,
- #);
- #if ($arap eq 'ap') {
- # require SL::DB::ApGl;
- # SL::DB::ApGl->new(%props_gl)->save;
- #} elsif ($arap eq 'ar') {
- # require SL::DB::ArGl;
- # SL::DB::ArGl->new(%props_gl)->save;
- #} else { die "Invalid state"; }
- #push @new_acc_ids, map { $_->acc_trans_id } @{ $current_transaction->transactions };
-