Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision be016390

Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt

  • ID be0163907f24ae34827289f42b85d3faa08e1881
  • Vorgänger 1b9d825f
  • Nachfolger 778abbc9

Kunden/Lieferanten-Bericht: nach Zahlungsbedingung filtern

Unterschiede anzeigen:

bin/mozilla/ct.pl
55 55
use SL::DB::Business;
56 56
use SL::DB::Default;
57 57
use SL::DB::DeliveryTerm;
58
use SL::DB::Manager::PaymentTerm;
58 59
use SL::ReportGenerator;
59 60
use SL::Locale::String qw(t8);
60 61
use SL::MoreCommon qw(uri_encode);
......
83 84

  
84 85
  $form->get_lists("business_types" => "ALL_BUSINESS_TYPES",
85 86
                   "salesmen"       => "ALL_SALESMEN");
87
  $form->{ALL_PAYMENT_TERMS} = SL::DB::Manager::PaymentTerm->get_all_sorted;
86 88
  $form->{SHOW_BUSINESS_TYPES} = scalar @{ $form->{ALL_BUSINESS_TYPES} } > 0;
87 89

  
88 90
  $form->{CUSTOM_VARIABLES}                  = CVar->get_configs('module' => 'CT');
......
178 180
    }
179 181
  }
180 182

  
183
  if ($form->{payment_id}) {
184
    my $payment = SL::DB::Manager::PaymentTerm->find_by(id => $form->{payment_id});
185
    if ($payment) {
186
      push @options, $locale->text('Payment Term') . " : " . $payment->description;
187
    }
188
  }
189

  
181 190
  if ( $form->{insertdatefrom} or $form->{insertdateto} ) {
182 191
    push @options, $locale->text('Insert Date');
183 192
    push @options, $locale->text('From') . " " . $locale->date(\%myconfig, $form->{insertdatefrom}, 1) if $form->{insertdatefrom};
......
242 251
  my @hidden_variables  = ( qw(
243 252
      db status obsolete name contact email cp_name addr_street addr_zipcode
244 253
      addr_city addr_country addr_gln business_id salesman_id insertdateto insertdatefrom all
245
      all_phonenumbers dunning_lock department_1 department_2
254
      all_phonenumbers dunning_lock department_1 department_2 payment_id
246 255
    ), "$form->{db}number",
247 256
    map({ "cvar_$_->{name}" } @searchable_custom_variables),
248 257
    map({'cvar_'. $_->{name} .'_from'} grep({$_->{type} eq 'date'} @searchable_custom_variables)),

Auch abrufbar als: Unified diff