Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a82ee26e

Von Tamino Steinert vor etwa 1 Jahr hinzugefügt

  • ID a82ee26efedf2252e9598f61b58a4c7f07cdb9c5
  • Vorgänger ab97e6e0
  • Nachfolger bc020e5b

S:C:ClientConfig: Nutze Beleg-Typdaten direkt

Unterschiede anzeigen:

SL/Controller/ClientConfig.pm
17 17
use SL::Locale::String qw(t8);
18 18
use SL::PriceSource::ALL;
19 19
use SL::Template;
20
use SL::Controller::DeliveryOrder;
21
use SL::Controller::Order;
22
use SL::Controller::Reclamation;
20
use SL::DB::Order::TypeData;
21
use SL::DB::DeliveryOrder::TypeData;
22
use SL::DB::Reclamation::TypeData;
23 23
use SL::Controller::TopQuickSearch;
24 24
use SL::DB::Helper::AccountingPeriod qw(get_balance_startdate_method_options);
25 25
use SL::VATIDNr;
......
238 238
sub init_available_documents_with_no_positions {
239 239
  return [] if !$::instance_conf->get_feature_experimental_order;
240 240

  
241
  my @docs = ( @{SL::Controller::Order        ->new->valid_types},
242
               @{SL::Controller::DeliveryOrder->new->valid_types},
243
               @{SL::Controller::Reclamation  ->new->valid_types} );
244

  
245
  # normal delivery orders are not yet handeld by new controller code
246
  @docs = grep { $_ ne 'sales_delivery_order' && $_ ne 'purchase_delivery_order' } @docs;
241
  my @docs = ( @{SL::DB::Order::TypeData::valid_types()},
242
               @{SL::DB::DeliveryOrder::TypeData::valid_types()},
243
               @{SL::DB::Reclamation::TypeData::valid_types()} );
247 244

  
248 245
  my @available_docs = map { {name => $_, description => $::form->get_formname_translation($_)} } @docs;
249 246

  

Auch abrufbar als: Unified diff