Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8563cbf6

Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt

  • ID 8563cbf68935601aa757a228b9ad9df5a3e1b786
  • Vorgänger d2da377f
  • Nachfolger f4acea58

Reclamation: added to RecordLinks

Unterschiede anzeigen:

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