Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e7e7d67b

Von Jan Büren vor etwa 5 Jahren hinzugefügt

  • ID e7e7d67b88f3f2afb29fac5527099089cb8a075d
  • Vorgänger ca4e97fd
  • Nachfolger c5dccb51

Kosmetik/Perl-Detail Optionen als Hash anstatt array

Unterschiede anzeigen:

SL/Controller/BankTransaction.pm
691 691
        }
692 692
      }
693 693
      # Record a record link from the bank transaction to the invoice
694
      my @props = (
694
      my %props = (
695 695
        from_table => 'bank_transactions',
696 696
        from_id    => $bt_id,
697 697
        to_table   => $invoice->is_sales ? 'ar' : 'ap',
698 698
        to_id      => $invoice->id,
699 699
      );
700

  
701
      SL::DB::RecordLink->new(@props)->save;
700
      SL::DB::RecordLink->new(%props)->save;
702 701

  
703 702
      # "close" a sepa_export_item if it exists
704 703
      # code duplicated in action_save_proposals!
bin/mozilla/gl.pl
1369 1369
      $bt->update_attributes(invoice_amount => $bt->invoice_amount + ($payment->[0]->amount * -1));
1370 1370

  
1371 1371
      # create record_link
1372
      my @props = (
1372
      my %props = (
1373 1373
        from_table => 'bank_transactions',
1374 1374
        from_id    => $::form->{bt_id},
1375 1375
        to_table   => 'gl',
1376 1376
        to_id      => $::form->{id},
1377 1377
      );
1378
      SL::DB::RecordLink->new(@props)->save;
1378
      SL::DB::RecordLink->new(%props)->save;
1379 1379
      # and tighten holy acc_trans_id for this bank_transaction
1380 1380
      my  %props_acc = (
1381 1381
        acc_trans_id        => $payment->[0]->acc_trans_id,

Auch abrufbar als: Unified diff