Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e9775242

Von Moritz Bunkus vor fast 8 Jahren hinzugefügt

  • ID e9775242aa00e33dabab64ca26105640c8808aeb
  • Vorgänger c4d3f82d
  • Nachfolger 6531c2fd

Kontoauszug verbuchen: Beleg/Memo bei »Alle Buchungen« angeben können

Unterschiede anzeigen:

SL/Controller/BankTransaction.pm
337 337
  my @select_options = $invoice->get_payment_select_options_for_bank_transaction($::form->{bt_id});
338 338

  
339 339
  my $html;
340
  $html .= SL::Presenter->input_tag('invoice_ids.' . $::form->{bt_id} . '[]', $::form->{prop_id} , type => 'hidden');
341
  $html .= SL::Presenter->escape(t8('Invno.')      . ': ' . $invoice->invnumber . ' ');
342
  $html .= SL::Presenter->escape(t8('Open amount') . ': ' . $::form->format_amount(\%::myconfig, $invoice->open_amount, 2) . ' ');
343
  $html .= SL::Presenter->select_tag('invoice_skontos.' . $::form->{bt_id} . '[]',
344
                                     \@select_options,
345
                                     value_key => 'payment_type',
346
                                     title_key => 'display' )
347
    if @select_options;
348
  $html .= SL::Presenter->html_tag('a', 'x', href => '#', onclick => "kivi.BankTransaction.delete_invoice(" . $::form->{bt_id} . ',' . $::form->{prop_id} . ")");
349
  $html = SL::Presenter->html_tag('div', $html, id => $::form->{bt_id} . '.' . $::form->{prop_id}, 'data-invoice-amount' => $invoice->open_amount * 1);
350

  
351
  $self->render(\ SL::JSON::to_json( { 'html' => $html } ), { layout => 0, type => 'json', process => 0 });
340
  $html = $self->render(
341
    'bank_transactions/_payment_suggestion', { output => 0 },
342
    bt_id          => $::form->{bt_id},
343
    prop_id        => $::form->{prop_id},
344
    invoice        => $invoice,
345
    SELECT_OPTIONS => \@select_options,
346
  );
347

  
348
  $self->render(\ SL::JSON::to_json( { 'html' => "$html" } ), { layout => 0, type => 'json', process => 0 });
352 349
};
353 350

  
354 351
sub action_filter_drafts {
......
521 518
      push @{ $self->problems }, $self->save_single_bank_transaction(
522 519
        bank_transaction_id => $bank_transaction_id,
523 520
        invoice_ids         => $invoice_ids,
521
        sources             => [  map { $::form->{"sources_${bank_transaction_id}_${_}"} } @{ $invoice_ids } ],
522
        memos               => [  map { $::form->{"memos_${bank_transaction_id}_${_}"}   } @{ $invoice_ids } ],
524 523
      );
525 524
      $count += scalar( @{$invoice_ids} );
526 525
    }

Auch abrufbar als: Unified diff