Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8233ba0b

Von Werner Hahn vor etwa 6 Jahren hinzugefügt

  • ID 8233ba0bdaed4ba7312e9180d772385ff221d9b3
  • Vorgänger 29318a62
  • Nachfolger 1c4bd891

Kundenstatistik: Briefe

Unterschiede anzeigen:

SL/Controller/CustomerVendorTurnover.pm
370 370
  $self->render('customer_vendor_turnover/email_statistic', { layout => 0 }, emails => $emails);
371 371
}
372 372

  
373
sub action_get_letters {
374
  my ($self) = @_;
375

  
376
  return $self->render('generic/error', { layout => 0 }, label_error => "list_transactions needs a trans_id") unless $::form->{id};
377

  
378
  my $cv = $::form->{id} || {};
379
  my $letters;
380
  my $type = $::form->{type};
381
  if ( $::form->{db} eq 'customer' ) {
382
    $letters = SL::DB::Manager::Letter->get_all(
383
      query => [ customer_id => $cv, ],
384
      sort_by => 'date DESC',
385
    );
386
  } else {
387
    $letters = SL::DB::Manager::Letter->get_all(
388
      query => [ vendor_id => $cv, ],
389
      sort_by => 'date DESC',
390
    );
391
  }
392
    $self->render('customer_vendor_turnover/letter_statistic', { layout => 0 }, letters => $letters);
393
}
394

  
373 395
sub _list_articles_by_invoice {
374 396
}
375 397
sub _list_count_articles_by_year {

Auch abrufbar als: Unified diff