Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4d23decc

Von Tamino Steinert vor fast 2 Jahren hinzugefügt

  • ID 4d23deccb84caceb029c44636ea907b910c83d78
  • Vorgänger 9a18eb21
  • Nachfolger 86d9db86

Reclamation: added to RecordLinks

Unterschiede anzeigen:

SL/Controller/RecordLinks.pm
12 12
use SL::DB::Invoice;
13 13
use SL::DB::Letter;
14 14
use SL::DB::PurchaseInvoice;
15
use SL::DB::Reclamation;
15 16
use SL::DB::RecordLink;
16 17
use SL::DB::RequirementSpec;
17 18
use SL::DBUtils qw(like);
......
44 45
  { title => t8('Sales Order'),             type => 'sales_order',             model => 'Order',           number => 'ordnumber', },
45 46
  { title => t8('Sales delivery order'),    type => 'sales_delivery_order',    model => 'DeliveryOrder',   number => 'donumber',  },
46 47
  { title => t8('RMA delivery order'),      type => 'rma_delivery_order',      model => 'DeliveryOrder',   number => 'rdonumber', },
48
  { title => t8('Sales Reclamation'),       type => 'sales_reclamation',       model => 'Reclamation',     number => 'record_number',},
47 49
  { title => t8('Sales Invoice'),           type => 'invoice',                 model => 'Invoice',         number => 'invnumber', },
48 50
  { title => t8('Request for Quotation'),   type => 'request_quotation',       model => 'Order',           number => 'quonumber', },
49 51
  { title => t8('Purchase Order'),          type => 'purchase_order',          model => 'Order',           number => 'ordnumber', },
50 52
  { title => t8('Purchase delivery order'), type => 'purchase_delivery_order', model => 'DeliveryOrder',   number => 'donumber',  },
51 53
  { title => t8('Supplier delivery order'), type => 'supplier_delivery_order', model => 'DeliveryOrder',   number => 'sdonumber', },
54
  { title => t8('Purchase Reclamation'),    type => 'purchase_reclamation',    model => 'Reclamation',     number => 'record_number',},
52 55
  { title => t8('Purchase Invoice'),        type => 'purchase_invoice',        model => 'PurchaseInvoice', number => 'invnumber', },
53 56
  { title => t8('Letter'),                  type => 'letter',                  model => 'Letter',          number => 'letternumber', description => 'subject', description_title => t8('Subject'), date => 'date', project => undef },
54 57
  { title => t8('Email'),                   type => 'email_journal',           model => 'EmailJournal',    number => 'id', description => 'subject', description_title => t8('Subject'), },
SL/Presenter/Record.pm
49 49
  $output .= _sales_order_list(            $groups{sales_orders},             %params) if $groups{sales_orders};
50 50
  $output .= _sales_delivery_order_list(   $groups{sales_delivery_orders},    %params) if $groups{sales_delivery_orders};
51 51
  $output .= _rma_delivery_order_list(     $groups{rma_delivery_orders},      %params) if $groups{rma_delivery_orders};
52
  $output .= _sales_reclamation_list(      $groups{sales_reclamation},        %params) if $groups{sales_reclamation};
52 53
  $output .= _sales_invoice_list(          $groups{sales_invoices},           %params) if $groups{sales_invoices};
53 54
  $output .= _ar_transaction_list(         $groups{ar_transactions},          %params) if $groups{ar_transactions};
54 55

  
......
56 57
  $output .= _purchase_order_list(         $groups{purchase_orders},          %params) if $groups{purchase_orders};
57 58
  $output .= _purchase_delivery_order_list($groups{purchase_delivery_orders}, %params) if $groups{purchase_delivery_orders};
58 59
  $output .= _supplier_delivery_order_list($groups{supplier_delivery_orders}, %params) if $groups{supplier_delivery_orders};
60
  $output .= _purchase_reclamation_list(   $groups{purchase_reclamation},     %params) if $groups{purchase_reclamation};
59 61
  $output .= _purchase_invoice_list(       $groups{purchase_invoices},        %params) if $groups{purchase_invoices};
60 62
  $output .= _ap_transaction_list(         $groups{ap_transactions},          %params) if $groups{ap_transactions};
61 63

  
......
189 191
    sales_orders             => sub { (ref($_[0]) eq 'SL::DB::Order')           &&  $_[0]->is_type('sales_order')       },
190 192
    sales_delivery_orders    => sub { (ref($_[0]) eq 'SL::DB::DeliveryOrder')   &&  $_[0]->is_type('sales_delivery_order') },
191 193
    rma_delivery_orders      => sub { (ref($_[0]) eq 'SL::DB::DeliveryOrder')   &&  $_[0]->is_type('rma_delivery_order')   },
194
    sales_reclamation        => sub { (ref($_[0]) eq 'SL::DB::Reclamation')     &&  $_[0]->is_type('sales_reclamation') },
192 195
    sales_invoices           => sub { (ref($_[0]) eq 'SL::DB::Invoice')         &&  $_[0]->invoice                      },
193 196
    ar_transactions          => sub { (ref($_[0]) eq 'SL::DB::Invoice')         && !$_[0]->invoice                      },
194 197
    purchase_quotations      => sub { (ref($_[0]) eq 'SL::DB::Order')           &&  $_[0]->is_type('request_quotation') },
195 198
    purchase_orders          => sub { (ref($_[0]) eq 'SL::DB::Order')           &&  $_[0]->is_type('purchase_order')    },
196 199
    purchase_delivery_orders => sub { (ref($_[0]) eq 'SL::DB::DeliveryOrder')   &&  $_[0]->is_type('purchase_delivery_order') },
197 200
    supplier_delivery_orders => sub { (ref($_[0]) eq 'SL::DB::DeliveryOrder')   &&  $_[0]->is_type('supplier_delivery_order') },
201
    purchase_reclamation     => sub { (ref($_[0]) eq 'SL::DB::Reclamation')     &&  $_[0]->is_type('purchase_reclamation')},
198 202
    purchase_invoices        => sub { (ref($_[0]) eq 'SL::DB::PurchaseInvoice') &&  $_[0]->invoice                      },
199 203
    ap_transactions          => sub { (ref($_[0]) eq 'SL::DB::PurchaseInvoice') && !$_[0]->invoice                      },
200 204
    sepa_collections         => sub { (ref($_[0]) eq 'SL::DB::SepaExportItem')  &&  $_[0]->ar_id                        },
......
433 437
  );
434 438
}
435 439

  
440
sub _sales_reclamation_list {
441
  my ($list, %params) = @_;
442

  
443
  return record_list(
444
    $list,
445
    title   => $::locale->text('Sales Reclamation'),
446
    type    => 'sales_reclamation',
447
    columns => [
448
      [ $::locale->text('Reclamation Date'),        'transdate'                                                          ],
449
      [ $::locale->text('Reclamation Number'),      sub { $_[0]->presenter->sales_reclamation(display => 'table-cell') } ],
450
      [ $::locale->text('Customer'),                'customer'                                                           ],
451
      [ $::locale->text('Transaction description'), 'transaction_description'                                            ],
452
      [ $::locale->text('Project'),                 'globalproject',                                                     ],
453
      [ $::locale->text('Delivered'),               'delivered'                                                          ],
454
      [ $::locale->text('Closed'),                  'closed'                                                             ],
455
    ],
456
    %params,
457
  );
458
}
459

  
436 460
sub _sales_invoice_list {
437 461
  my ($list, %params) = @_;
438 462

  
......
712 736

  
713 737
=item * rma delivery orders
714 738

  
739
=item * sales reclamation
740

  
715 741
=item * sales invoices
716 742

  
717 743
=item * AR transactions
......
724 750

  
725 751
=item * supplier delivery orders
726 752

  
753
=item * purchase reclamation
754

  
727 755
=item * purchase invoices
728 756

  
729 757
=item * AP transactions

Auch abrufbar als: Unified diff