Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3fc07914

Von Bernd Bleßmann vor 8 Monaten hinzugefügt

  • ID 3fc079140f257e0f3ee405047b350b8f3d3df961
  • Vorgänger c91e4426
  • Nachfolger f7321c99

Kosmetik: Ausrichtung

Unterschiede anzeigen:

SL/Presenter/Record.pm
43 43
  my %groups = _sort_grouped_lists(_group_records($list));
44 44
  my $output = '';
45 45

  
46
  $output .= _requirement_spec_list(          $groups{requirement_specs},          %params) if $groups{requirement_specs};
47
  $output .= _shop_order_list(                $groups{shop_orders},                %params) if $groups{shop_orders};
48
  $output .= _sales_quotation_list(           $groups{sales_quotations},           %params) if $groups{sales_quotations};
49
  $output .= _sales_order_intake_list(        $groups{sales_order_intakes},        %params) if $groups{sales_order_intakes};
50
  $output .= _sales_order_list(               $groups{sales_orders},               %params) if $groups{sales_orders};
51
  $output .= _sales_delivery_order_list(      $groups{sales_delivery_orders},      %params) if $groups{sales_delivery_orders};
52
  $output .= _rma_delivery_order_list(        $groups{rma_delivery_orders},        %params) if $groups{rma_delivery_orders};
53
  $output .= _sales_reclamation_list(         $groups{sales_reclamation},          %params) if $groups{sales_reclamation};
54
  $output .= _sales_invoice_list(             $groups{sales_invoices},             %params) if $groups{sales_invoices};
55
  $output .= _ar_transaction_list(            $groups{ar_transactions},            %params) if $groups{ar_transactions};
56

  
57
  $output .= _request_quotation_list(         $groups{purchase_quotations},        %params) if $groups{purchase_quotations};
58
  $output .= _purchase_quotation_intake_list( $groups{purchase_quotation_intakes}, %params) if $groups{purchase_quotation_intakes};
59
  $output .= _purchase_order_list(            $groups{purchase_orders},            %params) if $groups{purchase_orders};
46
  $output .= _requirement_spec_list(           $groups{requirement_specs},            %params) if $groups{requirement_specs};
47
  $output .= _shop_order_list(                 $groups{shop_orders},                  %params) if $groups{shop_orders};
48
  $output .= _sales_quotation_list(            $groups{sales_quotations},             %params) if $groups{sales_quotations};
49
  $output .= _sales_order_intake_list(         $groups{sales_order_intakes},          %params) if $groups{sales_order_intakes};
50
  $output .= _sales_order_list(                $groups{sales_orders},                 %params) if $groups{sales_orders};
51
  $output .= _sales_delivery_order_list(       $groups{sales_delivery_orders},        %params) if $groups{sales_delivery_orders};
52
  $output .= _rma_delivery_order_list(         $groups{rma_delivery_orders},          %params) if $groups{rma_delivery_orders};
53
  $output .= _sales_reclamation_list(          $groups{sales_reclamation},            %params) if $groups{sales_reclamation};
54
  $output .= _sales_invoice_list(              $groups{sales_invoices},               %params) if $groups{sales_invoices};
55
  $output .= _ar_transaction_list(             $groups{ar_transactions},              %params) if $groups{ar_transactions};
56

  
57
  $output .= _request_quotation_list(          $groups{purchase_quotations},          %params) if $groups{purchase_quotations};
58
  $output .= _purchase_quotation_intake_list(  $groups{purchase_quotation_intakes},   %params) if $groups{purchase_quotation_intakes};
59
  $output .= _purchase_order_list(             $groups{purchase_orders},              %params) if $groups{purchase_orders};
60 60
  $output .= _purchase_order_confirmation_list($groups{purchase_order_confirmations}, %params) if $groups{purchase_order_confirmations};
61
  $output .= _purchase_delivery_order_list(   $groups{purchase_delivery_orders},   %params) if $groups{purchase_delivery_orders};
62
  $output .= _supplier_delivery_order_list(   $groups{supplier_delivery_orders},   %params) if $groups{supplier_delivery_orders};
63
  $output .= _purchase_reclamation_list(      $groups{purchase_reclamation},       %params) if $groups{purchase_reclamation};
64
  $output .= _purchase_invoice_list(          $groups{purchase_invoices},          %params) if $groups{purchase_invoices};
65
  $output .= _ap_transaction_list(            $groups{ap_transactions},            %params) if $groups{ap_transactions};
61
  $output .= _purchase_delivery_order_list(    $groups{purchase_delivery_orders},     %params) if $groups{purchase_delivery_orders};
62
  $output .= _supplier_delivery_order_list(    $groups{supplier_delivery_orders},     %params) if $groups{supplier_delivery_orders};
63
  $output .= _purchase_reclamation_list(       $groups{purchase_reclamation},         %params) if $groups{purchase_reclamation};
64
  $output .= _purchase_invoice_list(           $groups{purchase_invoices},            %params) if $groups{purchase_invoices};
65
  $output .= _ap_transaction_list(             $groups{ap_transactions},              %params) if $groups{ap_transactions};
66 66

  
67
  $output .= _gl_transaction_list(            $groups{gl_transactions},            %params) if $groups{gl_transactions};
67
  $output .= _gl_transaction_list(             $groups{gl_transactions},              %params) if $groups{gl_transactions};
68 68

  
69
  $output .= _bank_transactions(              $groups{bank_transactions},          %params) if $groups{bank_transactions};
69
  $output .= _bank_transactions(               $groups{bank_transactions},            %params) if $groups{bank_transactions};
70 70

  
71
  $output .= _sepa_collection_list(           $groups{sepa_collections},           %params) if $groups{sepa_collections};
72
  $output .= _sepa_transfer_list(             $groups{sepa_transfers},             %params) if $groups{sepa_transfers};
71
  $output .= _sepa_collection_list(            $groups{sepa_collections},             %params) if $groups{sepa_collections};
72
  $output .= _sepa_transfer_list(              $groups{sepa_transfers},               %params) if $groups{sepa_transfers};
73 73

  
74
  $output .= _letter_list(                    $groups{letters},                    %params) if $groups{letters};
75
  $output .= _email_journal_list(             $groups{email_journals},             %params) if $groups{email_journals};
74
  $output .= _letter_list(                     $groups{letters},                      %params) if $groups{letters};
75
  $output .= _email_journal_list(              $groups{email_journals},               %params) if $groups{email_journals};
76 76

  
77
  $output .= _dunning_list(                   $groups{dunnings},                   %params) if $groups{dunnings};
77
  $output .= _dunning_list(                    $groups{dunnings},                     %params) if $groups{dunnings};
78 78

  
79
  $output  = SL::Presenter->get->render('presenter/record/grouped_record_list',    %params, output => $output);
79
  $output  = SL::Presenter->get->render('presenter/record/grouped_record_list',       %params, output => $output);
80 80

  
81 81
  return $output;
82 82
}
......
188 188
sub _group_records {
189 189
  my ($list) = @_;
190 190
  my %matchers = (
191
    requirement_specs          => sub { (ref($_[0]) eq 'SL::DB::RequirementSpec')                                         },
192
    shop_orders                => sub { (ref($_[0]) eq 'SL::DB::ShopOrder')       &&  $_[0]->id                           },
193
    sales_quotations           => sub { (ref($_[0]) eq 'SL::DB::Order')           &&  $_[0]->is_type('sales_quotation')   },
194
    sales_order_intakes        => sub { (ref($_[0]) eq 'SL::DB::Order')           &&  $_[0]->is_type('sales_order_intake') },
195
    sales_orders               => sub { (ref($_[0]) eq 'SL::DB::Order')           &&  $_[0]->is_type('sales_order')       },
196
    sales_delivery_orders      => sub { (ref($_[0]) eq 'SL::DB::DeliveryOrder')   &&  $_[0]->is_type('sales_delivery_order') },
197
    rma_delivery_orders        => sub { (ref($_[0]) eq 'SL::DB::DeliveryOrder')   &&  $_[0]->is_type('rma_delivery_order')   },
198
    sales_reclamation          => sub { (ref($_[0]) eq 'SL::DB::Reclamation')     &&  $_[0]->is_type('sales_reclamation') },
199
    sales_invoices             => sub { (ref($_[0]) eq 'SL::DB::Invoice')         &&  $_[0]->invoice                      },
200
    ar_transactions            => sub { (ref($_[0]) eq 'SL::DB::Invoice')         && !$_[0]->invoice                      },
201
    purchase_quotations        => sub { (ref($_[0]) eq 'SL::DB::Order')           &&  $_[0]->is_type('request_quotation') },
202
    purchase_quotation_intakes => sub { (ref($_[0]) eq 'SL::DB::Order')           &&  $_[0]->is_type('purchase_quotation_intake') },
203
    purchase_orders            => sub { (ref($_[0]) eq 'SL::DB::Order')           &&  $_[0]->is_type('purchase_order')    },
204
    purchase_order_confirmations => sub { (ref($_[0]) eq 'SL::DB::Order')         &&  $_[0]->is_type('purchase_order_confirmation') },
205
    purchase_delivery_orders   => sub { (ref($_[0]) eq 'SL::DB::DeliveryOrder')   &&  $_[0]->is_type('purchase_delivery_order') },
206
    supplier_delivery_orders   => sub { (ref($_[0]) eq 'SL::DB::DeliveryOrder')   &&  $_[0]->is_type('supplier_delivery_order') },
207
    purchase_reclamation       => sub { (ref($_[0]) eq 'SL::DB::Reclamation')     &&  $_[0]->is_type('purchase_reclamation')},
208
    purchase_invoices          => sub { (ref($_[0]) eq 'SL::DB::PurchaseInvoice') &&  $_[0]->invoice                      },
209
    ap_transactions            => sub { (ref($_[0]) eq 'SL::DB::PurchaseInvoice') && !$_[0]->invoice                      },
210
    sepa_collections           => sub { (ref($_[0]) eq 'SL::DB::SepaExportItem')  &&  $_[0]->ar_id                        },
211
    sepa_transfers             => sub { (ref($_[0]) eq 'SL::DB::SepaExportItem')  &&  $_[0]->ap_id                        },
212
    gl_transactions            => sub { (ref($_[0]) eq 'SL::DB::GLTransaction')                                           },
213
    bank_transactions          => sub { (ref($_[0]) eq 'SL::DB::BankTransaction') &&  $_[0]->id                           },
214
    letters                    => sub { (ref($_[0]) eq 'SL::DB::Letter')          &&  $_[0]->id                           },
215
    email_journals             => sub { (ref($_[0]) eq 'SL::DB::EmailJournal')    &&  $_[0]->id                           },
216
    dunnings                   => sub { (ref($_[0]) eq 'SL::DB::Dunning')                                                 },
191
    requirement_specs            => sub { (ref($_[0]) eq 'SL::DB::RequirementSpec')                                                   },
192
    shop_orders                  => sub { (ref($_[0]) eq 'SL::DB::ShopOrder')       &&  $_[0]->id                                     },
193
    sales_quotations             => sub { (ref($_[0]) eq 'SL::DB::Order')           &&  $_[0]->is_type('sales_quotation')             },
194
    sales_order_intakes          => sub { (ref($_[0]) eq 'SL::DB::Order')           &&  $_[0]->is_type('sales_order_intake')          },
195
    sales_orders                 => sub { (ref($_[0]) eq 'SL::DB::Order')           &&  $_[0]->is_type('sales_order')                 },
196
    sales_delivery_orders        => sub { (ref($_[0]) eq 'SL::DB::DeliveryOrder')   &&  $_[0]->is_type('sales_delivery_order')        },
197
    rma_delivery_orders          => sub { (ref($_[0]) eq 'SL::DB::DeliveryOrder')   &&  $_[0]->is_type('rma_delivery_order')          },
198
    sales_reclamation            => sub { (ref($_[0]) eq 'SL::DB::Reclamation')     &&  $_[0]->is_type('sales_reclamation')           },
199
    sales_invoices               => sub { (ref($_[0]) eq 'SL::DB::Invoice')         &&  $_[0]->invoice                                },
200
    ar_transactions              => sub { (ref($_[0]) eq 'SL::DB::Invoice')         && !$_[0]->invoice                                },
201
    purchase_quotations          => sub { (ref($_[0]) eq 'SL::DB::Order')           &&  $_[0]->is_type('request_quotation')           },
202
    purchase_quotation_intakes   => sub { (ref($_[0]) eq 'SL::DB::Order')           &&  $_[0]->is_type('purchase_quotation_intake')   },
203
    purchase_orders              => sub { (ref($_[0]) eq 'SL::DB::Order')           &&  $_[0]->is_type('purchase_order')              },
204
    purchase_order_confirmations => sub { (ref($_[0]) eq 'SL::DB::Order')           &&  $_[0]->is_type('purchase_order_confirmation') },
205
    purchase_delivery_orders     => sub { (ref($_[0]) eq 'SL::DB::DeliveryOrder')   &&  $_[0]->is_type('purchase_delivery_order')     },
206
    supplier_delivery_orders     => sub { (ref($_[0]) eq 'SL::DB::DeliveryOrder')   &&  $_[0]->is_type('supplier_delivery_order')     },
207
    purchase_reclamation         => sub { (ref($_[0]) eq 'SL::DB::Reclamation')     &&  $_[0]->is_type('purchase_reclamation')        },
208
    purchase_invoices            => sub { (ref($_[0]) eq 'SL::DB::PurchaseInvoice') &&  $_[0]->invoice                                },
209
    ap_transactions              => sub { (ref($_[0]) eq 'SL::DB::PurchaseInvoice') && !$_[0]->invoice                                },
210
    sepa_collections             => sub { (ref($_[0]) eq 'SL::DB::SepaExportItem')  &&  $_[0]->ar_id                                  },
211
    sepa_transfers               => sub { (ref($_[0]) eq 'SL::DB::SepaExportItem')  &&  $_[0]->ap_id                                  },
212
    gl_transactions              => sub { (ref($_[0]) eq 'SL::DB::GLTransaction')                                                     },
213
    bank_transactions            => sub { (ref($_[0]) eq 'SL::DB::BankTransaction') &&  $_[0]->id                                     },
214
    letters                      => sub { (ref($_[0]) eq 'SL::DB::Letter')          &&  $_[0]->id                                     },
215
    email_journals               => sub { (ref($_[0]) eq 'SL::DB::EmailJournal')    &&  $_[0]->id                                     },
216
    dunnings                     => sub { (ref($_[0]) eq 'SL::DB::Dunning')                                                           },
217 217
  );
218 218

  
219 219
  my %groups;
......
251 251
    type    => 'requirement_spec',
252 252
    columns => [
253 253
      [ $::locale->text('Requirement spec number'), sub { $_[0]->presenter->requirement_spec(display => 'table-cell') } ],
254
      [ $::locale->text('Customer'),                'customer'                                                      ],
255
      [ $::locale->text('Title'),                   'title'                                                         ],
256
      [ $::locale->text('Project'),                 'project',                                                      ],
257
      [ $::locale->text('Status'),                  sub { $_[0]->status->description }                              ],
254
      [ $::locale->text('Customer'),                'customer'                                                          ],
255
      [ $::locale->text('Title'),                   'title'                                                             ],
256
      [ $::locale->text('Project'),                 'project',                                                          ],
257
      [ $::locale->text('Status'),                  sub { $_[0]->status->description }                                  ],
258 258
    ],
259 259
    %params,
260 260
  );
......
268 268
    title   => $::locale->text('Shop Orders'),
269 269
    type    => 'shop_order',
270 270
    columns => [
271
      [ $::locale->text('Shop Order Date'),         sub { $_[0]->order_date->to_kivitendo }                         ],
272
      [ $::locale->text('Shop Order Number'),       sub { $_[0]->presenter->shop_order(display => 'table-cell') }   ],
273
      [ $::locale->text('Transfer Date'),           'transfer_date'                                                 ],
274
      [ $::locale->text('Amount'),                  'amount'                                                        ],
271
      [ $::locale->text('Shop Order Date'),         sub { $_[0]->order_date->to_kivitendo }                       ],
272
      [ $::locale->text('Shop Order Number'),       sub { $_[0]->presenter->shop_order(display => 'table-cell') } ],
273
      [ $::locale->text('Transfer Date'),           'transfer_date'                                               ],
274
      [ $::locale->text('Amount'),                  'amount'                                                      ],
275 275
    ],
276 276
    %params,
277 277
  );
......
285 285
    title   => $::locale->text('Sales Quotations'),
286 286
    type    => 'sales_quotation',
287 287
    columns => [
288
      [ $::locale->text('Quotation Date'),          'transdate'                                                                ],
289
      [ $::locale->text('Quotation Number'),        sub { $_[0]->presenter->sales_quotation(display => 'table-cell') }         ],
290
      [ $::locale->text('Customer'),                'customer'                                                                 ],
291
      [ $::locale->text('Net amount'),              'netamount'                                                                ],
292
      [ $::locale->text('Transaction description'), 'transaction_description'                                                  ],
293
      [ $::locale->text('Project'),                 'globalproject', ],
294
      [ $::locale->text('Closed'),                  'closed'                                                                   ],
288
      [ $::locale->text('Quotation Date'),          'transdate'                                                        ],
289
      [ $::locale->text('Quotation Number'),        sub { $_[0]->presenter->sales_quotation(display => 'table-cell') } ],
290
      [ $::locale->text('Customer'),                'customer'                                                         ],
291
      [ $::locale->text('Net amount'),              'netamount'                                                        ],
292
      [ $::locale->text('Transaction description'), 'transaction_description'                                          ],
293
      [ $::locale->text('Project'),                 'globalproject',                                                   ],
294
      [ $::locale->text('Closed'),                  'closed'                                                           ],
295 295
    ],
296 296
    %params,
297 297
  );
......
305 305
    title   => $::locale->text('Request Quotations'),
306 306
    type    => 'request_quotation',
307 307
    columns => [
308
      [ $::locale->text('Quotation Date'),          'transdate'                                                                ],
309
      [ $::locale->text('Quotation Number'),        sub { $_[0]->presenter->request_quotation(display => 'table-cell') }       ],
310
      [ $::locale->text('Vendor'),                  'vendor'                                                                   ],
311
      [ $::locale->text('Net amount'),              'netamount'                                                                ],
312
      [ $::locale->text('Transaction description'), 'transaction_description'                                                  ],
313
      [ $::locale->text('Project'),                 'globalproject', ],
314
      [ $::locale->text('Closed'),                  'closed'                                                                   ],
308
      [ $::locale->text('Quotation Date'),          'transdate'                                                          ],
309
      [ $::locale->text('Quotation Number'),        sub { $_[0]->presenter->request_quotation(display => 'table-cell') } ],
310
      [ $::locale->text('Vendor'),                  'vendor'                                                             ],
311
      [ $::locale->text('Net amount'),              'netamount'                                                          ],
312
      [ $::locale->text('Transaction description'), 'transaction_description'                                            ],
313
      [ $::locale->text('Project'),                 'globalproject',                                                     ],
314
      [ $::locale->text('Closed'),                  'closed'                                                             ],
315 315
    ],
316 316
    %params,
317 317
  );
......
325 325
    title   => $::locale->text('Purchase Quotation Intakes'),
326 326
    type    => 'purchase_quotation_intake',
327 327
    columns => [
328
      [ $::locale->text('Quotation Date'),          'transdate'                                                                ],
328
      [ $::locale->text('Quotation Date'),          'transdate'                                                                  ],
329 329
      [ $::locale->text('Quotation Number'),        sub { $_[0]->presenter->purchase_quotation_intake(display => 'table-cell') } ],
330
      [ $::locale->text('Vendor'),                  'vendor'                                                                   ],
331
      [ $::locale->text('Net amount'),              'netamount'                                                                ],
332
      [ $::locale->text('Transaction description'), 'transaction_description'                                                  ],
333
      [ $::locale->text('Project'),                 'globalproject', ],
334
      [ $::locale->text('Closed'),                  'closed'                                                                   ],
330
      [ $::locale->text('Vendor'),                  'vendor'                                                                     ],
331
      [ $::locale->text('Net amount'),              'netamount'                                                                  ],
332
      [ $::locale->text('Transaction description'), 'transaction_description'                                                    ],
333
      [ $::locale->text('Project'),                 'globalproject',                                                             ],
334
      [ $::locale->text('Closed'),                  'closed'                                                                     ],
335 335
    ],
336 336
    %params,
337 337
  );
......
345 345
    title   => $::locale->text('Sales Order Intakes'),
346 346
    type    => 'sales_order_intake',
347 347
    columns => [
348
      [ $::locale->text('Order Date'),              'transdate'                                                                ],
349
      [ $::locale->text('Order Number'),            sub { $_[0]->presenter->sales_order_intake(display => 'table-cell') }      ],
350
      [ $::locale->text('Quotation'),               'quonumber' ],
351
      [ $::locale->text('Customer'),                'customer'                                                                 ],
352
      [ $::locale->text('Net amount'),              'netamount'                                                                ],
353
      [ $::locale->text('Transaction description'), 'transaction_description'                                                  ],
354
      [ $::locale->text('Project'),                 'globalproject', ],
355
      [ $::locale->text('Closed'),                  'closed'                                                                   ],
348
      [ $::locale->text('Order Date'),              'transdate'                                                           ],
349
      [ $::locale->text('Order Number'),            sub { $_[0]->presenter->sales_order_intake(display => 'table-cell') } ],
350
      [ $::locale->text('Quotation'),               'quonumber'                                                           ],
351
      [ $::locale->text('Customer'),                'customer'                                                            ],
352
      [ $::locale->text('Net amount'),              'netamount'                                                           ],
353
      [ $::locale->text('Transaction description'), 'transaction_description'                                             ],
354
      [ $::locale->text('Project'),                 'globalproject',                                                      ],
355
      [ $::locale->text('Closed'),                  'closed'                                                              ],
356 356
    ],
357 357
    %params,
358 358
  );
......
366 366
    title   => $::locale->text('Sales Orders'),
367 367
    type    => 'sales_order',
368 368
    columns => [
369
      [ $::locale->text('Order Date'),              'transdate'                                                                ],
370
      [ $::locale->text('Order Number'),            sub { $_[0]->presenter->sales_order(display => 'table-cell') }             ],
371
      [ $::locale->text('Quotation'),               'quonumber' ],
372
      [ $::locale->text('Customer'),                'customer'                                                                 ],
373
      [ $::locale->text('Net amount'),              'netamount'                                                                ],
374
      [ $::locale->text('Transaction description'), 'transaction_description'                                                  ],
375
      [ $::locale->text('Project'),                 'globalproject', ],
376
      [ $::locale->text('Closed'),                  'closed'                                                                   ],
369
      [ $::locale->text('Order Date'),              'transdate'                                                    ],
370
      [ $::locale->text('Order Number'),            sub { $_[0]->presenter->sales_order(display => 'table-cell') } ],
371
      [ $::locale->text('Quotation'),               'quonumber'                                                    ],
372
      [ $::locale->text('Customer'),                'customer'                                                     ],
373
      [ $::locale->text('Net amount'),              'netamount'                                                    ],
374
      [ $::locale->text('Transaction description'), 'transaction_description'                                      ],
375
      [ $::locale->text('Project'),                 'globalproject',                                               ],
376
      [ $::locale->text('Closed'),                  'closed'                                                       ],
377 377
    ],
378 378
    %params,
379 379
  );
......
387 387
    title   => $::locale->text('Purchase Orders'),
388 388
    type    => 'purchase_order',
389 389
    columns => [
390
      [ $::locale->text('Order Date'),              'transdate'                                                                ],
391
      [ $::locale->text('Order Number'),            sub { $_[0]->presenter->purchase_order(display => 'table-cell') }          ],
392
      [ $::locale->text('Request for Quotation'),   'quonumber' ],
393
      [ $::locale->text('Vendor'),                  'vendor'                                                                 ],
394
      [ $::locale->text('Net amount'),              'netamount'                                                                ],
395
      [ $::locale->text('Transaction description'), 'transaction_description'                                                  ],
396
      [ $::locale->text('Project'),                 'globalproject', ],
397
      [ $::locale->text('Closed'),                  'closed'                                                                   ],
390
      [ $::locale->text('Order Date'),              'transdate'                                                       ],
391
      [ $::locale->text('Order Number'),            sub { $_[0]->presenter->purchase_order(display => 'table-cell') } ],
392
      [ $::locale->text('Request for Quotation'),   'quonumber'                                                       ],
393
      [ $::locale->text('Vendor'),                  'vendor'                                                          ],
394
      [ $::locale->text('Net amount'),              'netamount'                                                       ],
395
      [ $::locale->text('Transaction description'), 'transaction_description'                                         ],
396
      [ $::locale->text('Project'),                 'globalproject',                                                  ],
397
      [ $::locale->text('Closed'),                  'closed'                                                          ],
398 398
    ],
399 399
    %params,
400 400
  );
......
428 428
    title   => $::locale->text('Sales Delivery Orders'),
429 429
    type    => 'sales_delivery_order',
430 430
    columns => [
431
      [ $::locale->text('Delivery Order Date'),     'transdate'                                                                ],
432
      [ $::locale->text('Delivery Order Number'),   sub { $_[0]->presenter->sales_delivery_order(display => 'table-cell') }    ],
433
      [ $::locale->text('Order Number'),            'ordnumber' ],
434
      [ $::locale->text('Customer'),                'customer'                                                                 ],
435
      [ $::locale->text('Transaction description'), 'transaction_description'                                                  ],
436
      [ $::locale->text('Project'),                 'globalproject', ],
437
      [ $::locale->text('Delivered'),               'delivered'                                                                ],
438
      [ $::locale->text('Closed'),                  'closed'                                                                   ],
431
      [ $::locale->text('Delivery Order Date'),     'transdate'                                                             ],
432
      [ $::locale->text('Delivery Order Number'),   sub { $_[0]->presenter->sales_delivery_order(display => 'table-cell') } ],
433
      [ $::locale->text('Order Number'),            'ordnumber'                                                             ],
434
      [ $::locale->text('Customer'),                'customer'                                                              ],
435
      [ $::locale->text('Transaction description'), 'transaction_description'                                               ],
436
      [ $::locale->text('Project'),                 'globalproject',                                                        ],
437
      [ $::locale->text('Delivered'),               'delivered'                                                             ],
438
      [ $::locale->text('Closed'),                  'closed'                                                                ],
439 439
    ],
440 440
    %params,
441 441
  );
......
449 449
    title   => $::locale->text('RMA Delivery Orders'),
450 450
    type    => 'rma_delivery_order',
451 451
    columns => [
452
      [ $::locale->text('Delivery Order Date'),     'transdate'                                                                ],
453
      [ $::locale->text('Delivery Order Number'),   sub { $_[0]->presenter->rma_delivery_order(display => 'table-cell') }    ],
454
      [ $::locale->text('Order Number'),            'ordnumber' ],
455
      [ $::locale->text('Customer'),                'customer'                                                                 ],
456
      [ $::locale->text('Transaction description'), 'transaction_description'                                                  ],
457
      [ $::locale->text('Project'),                 'globalproject', ],
458
      [ $::locale->text('Delivered'),               'delivered'                                                                ],
459
      [ $::locale->text('Closed'),                  'closed'                                                                   ],
452
      [ $::locale->text('Delivery Order Date'),     'transdate'                                                           ],
453
      [ $::locale->text('Delivery Order Number'),   sub { $_[0]->presenter->rma_delivery_order(display => 'table-cell') } ],
454
      [ $::locale->text('Order Number'),            'ordnumber'                                                           ],
455
      [ $::locale->text('Customer'),                'customer'                                                            ],
456
      [ $::locale->text('Transaction description'), 'transaction_description'                                             ],
457
      [ $::locale->text('Project'),                 'globalproject',                                                      ],
458
      [ $::locale->text('Delivered'),               'delivered'                                                           ],
459
      [ $::locale->text('Closed'),                  'closed'                                                              ],
460 460
    ],
461 461
    %params,
462 462
  );
......
472 472
    columns => [
473 473
      [ $::locale->text('Delivery Order Date'),     'transdate'                                                                ],
474 474
      [ $::locale->text('Delivery Order Number'),   sub { $_[0]->presenter->purchase_delivery_order(display => 'table-cell') } ],
475
      [ $::locale->text('Order Number'),            'ordnumber' ],
476
      [ $::locale->text('Vendor'),                  'vendor'                                                                 ],
475
      [ $::locale->text('Order Number'),            'ordnumber'                                                                ],
476
      [ $::locale->text('Vendor'),                  'vendor'                                                                   ],
477 477
      [ $::locale->text('Transaction description'), 'transaction_description'                                                  ],
478
      [ $::locale->text('Project'),                 'globalproject', ],
478
      [ $::locale->text('Project'),                 'globalproject',                                                           ],
479 479
      [ $::locale->text('Delivered'),               'delivered'                                                                ],
480 480
      [ $::locale->text('Closed'),                  'closed'                                                                   ],
481 481
    ],
......
493 493
    columns => [
494 494
      [ $::locale->text('Delivery Order Date'),     'transdate'                                                                ],
495 495
      [ $::locale->text('Delivery Order Number'),   sub { $_[0]->presenter->supplier_delivery_order(display => 'table-cell') } ],
496
      [ $::locale->text('Order Number'),            'ordnumber' ],
497
      [ $::locale->text('Vendor'),                  'vendor'                                                                 ],
496
      [ $::locale->text('Order Number'),            'ordnumber'                                                                ],
497
      [ $::locale->text('Vendor'),                  'vendor'                                                                   ],
498 498
      [ $::locale->text('Transaction description'), 'transaction_description'                                                  ],
499
      [ $::locale->text('Project'),                 'globalproject', ],
499
      [ $::locale->text('Project'),                 'globalproject',                                                           ],
500 500
      [ $::locale->text('Delivered'),               'delivered'                                                                ],
501 501
      [ $::locale->text('Closed'),                  'closed'                                                                   ],
502 502
    ],
......
532 532
    title   => $::locale->text('Purchase Reclamation'),
533 533
    type    => 'purchase_reclamation',
534 534
    columns => [
535
      [ $::locale->text('Reclamation Date'),        'transdate'                                                          ],
535
      [ $::locale->text('Reclamation Date'),        'transdate'                                                             ],
536 536
      [ $::locale->text('Reclamation Number'),      sub { $_[0]->presenter->purchase_reclamation(display => 'table-cell') } ],
537
      [ $::locale->text('Vendor'),                'vendor'                                                           ],
538
      [ $::locale->text('Transaction description'), 'transaction_description'                                            ],
539
      [ $::locale->text('Project'),                 'globalproject',                                                     ],
540
      [ $::locale->text('Delivered'),               'delivered'                                                          ],
541
      [ $::locale->text('Closed'),                  'closed'                                                             ],
537
      [ $::locale->text('Vendor'),                'vendor'                                                                  ],
538
      [ $::locale->text('Transaction description'), 'transaction_description'                                               ],
539
      [ $::locale->text('Project'),                 'globalproject',                                                        ],
540
      [ $::locale->text('Delivered'),               'delivered'                                                             ],
541
      [ $::locale->text('Closed'),                  'closed'                                                                ],
542 542
    ],
543 543
    %params,
544 544
  );
......
552 552
    title   => $::locale->text('Sales Invoices'),
553 553
    type    => 'sales_invoice',
554 554
    columns => [
555
      [ $::locale->text('Invoice Date'),            'transdate'               ],
556
      [ $::locale->text('Type'),                    sub { $_[0]->displayable_type } ],
555
      [ $::locale->text('Invoice Date'),            'transdate'                                                      ],
556
      [ $::locale->text('Type'),                    sub { $_[0]->displayable_type }                                  ],
557 557
      [ $::locale->text('Invoice Number'),          sub { $_[0]->presenter->sales_invoice(display => 'table-cell') } ],
558
      [ $::locale->text('Quotation Number'),        'quonumber' ],
559
      [ $::locale->text('Order Number'),            'ordnumber' ],
560
      [ $::locale->text('Customer'),                'customer'                ],
561
      [ $::locale->text('Net amount'),              'netamount'               ],
562
      [ $::locale->text('Paid'),                    'paid'                    ],
563
      [ $::locale->text('Transaction description'), 'transaction_description' ],
558
      [ $::locale->text('Quotation Number'),        'quonumber'                                                      ],
559
      [ $::locale->text('Order Number'),            'ordnumber'                                                      ],
560
      [ $::locale->text('Customer'),                'customer'                                                       ],
561
      [ $::locale->text('Net amount'),              'netamount'                                                      ],
562
      [ $::locale->text('Paid'),                    'paid'                                                           ],
563
      [ $::locale->text('Transaction description'), 'transaction_description'                                        ],
564 564
    ],
565 565
    %params,
566 566
  );
......
574 574
    title   => $::locale->text('Purchase Invoices'),
575 575
    type    => 'purchase_invoice',
576 576
    columns => [
577
      [ $::locale->text('Invoice Date'),                 'transdate'               ],
577
      [ $::locale->text('Invoice Date'),                 'transdate'                                                         ],
578 578
      [ $::locale->text('Invoice Number'),               sub { $_[0]->presenter->purchase_invoice(display => 'table-cell') } ],
579
      [ $::locale->text('Request for Quotation Number'), 'quonumber' ],
580
      [ $::locale->text('Order Number'),                 'ordnumber' ],
581
      [ $::locale->text('Vendor'),                       'vendor'                 ],
582
      [ $::locale->text('Net amount'),                   'netamount'               ],
583
      [ $::locale->text('Paid'),                         'paid'                    ],
584
      [ $::locale->text('Transaction description'),      'transaction_description' ],
579
      [ $::locale->text('Request for Quotation Number'), 'quonumber'                                                         ],
580
      [ $::locale->text('Order Number'),                 'ordnumber'                                                         ],
581
      [ $::locale->text('Vendor'),                       'vendor'                                                            ],
582
      [ $::locale->text('Net amount'),                   'netamount'                                                         ],
583
      [ $::locale->text('Paid'),                         'paid'                                                              ],
584
      [ $::locale->text('Transaction description'),      'transaction_description'                                           ],
585 585
    ],
586 586
    %params,
587 587
  );
......
595 595
    title   => $::locale->text('AR Transactions'),
596 596
    type    => 'ar_transaction',
597 597
    columns => [
598
      [ $::locale->text('Invoice Date'),            'transdate'               ],
599
      [ $::locale->text('Type'),                    sub { $_[0]->displayable_type } ],
598
      [ $::locale->text('Invoice Date'),            'transdate'                                                       ],
599
      [ $::locale->text('Type'),                    sub { $_[0]->displayable_type }                                   ],
600 600
      [ $::locale->text('Invoice Number'),          sub { $_[0]->presenter->ar_transaction(display => 'table-cell') } ],
601
      [ $::locale->text('Customer'),                'customer'                ],
602
      [ $::locale->text('Net amount'),              'netamount'               ],
603
      [ $::locale->text('Paid'),                    'paid'                    ],
604
      [ $::locale->text('Transaction description'), 'transaction_description' ],
601
      [ $::locale->text('Customer'),                'customer'                                                        ],
602
      [ $::locale->text('Net amount'),              'netamount'                                                       ],
603
      [ $::locale->text('Paid'),                    'paid'                                                            ],
604
      [ $::locale->text('Transaction description'), 'transaction_description'                                         ],
605 605
    ],
606 606
    %params,
607 607
  );
......
615 615
    title   => $::locale->text('AP Transactions'),
616 616
    type    => 'ap_transaction',
617 617
    columns => [
618
      [ $::locale->text('Invoice Date'),            'transdate'                      ],
618
      [ $::locale->text('Invoice Date'),            'transdate'                                                       ],
619 619
      [ $::locale->text('Invoice Number'),          sub { $_[0]->presenter->ap_transaction(display => 'table-cell') } ],
620
      [ $::locale->text('Vendor'),                  'vendor'                         ],
621
      [ $::locale->text('Net amount'),              'netamount'                      ],
622
      [ $::locale->text('Paid'),                    'paid'                           ],
623
      [ $::locale->text('Transaction description'), 'transaction_description'        ],
620
      [ $::locale->text('Vendor'),                  'vendor'                                                          ],
621
      [ $::locale->text('Net amount'),              'netamount'                                                       ],
622
      [ $::locale->text('Paid'),                    'paid'                                                            ],
623
      [ $::locale->text('Transaction description'), 'transaction_description'                                         ],
624 624
    ],
625 625
    %params,
626 626
  );
......
634 634
    title   => $::locale->text('GL Transactions'),
635 635
    type    => 'gl_transaction',
636 636
    columns => [
637
      [ $::locale->text('Transdate'),        'transdate'                                                    ],
638
      [ $::locale->text('Reference'),   'reference'                                                    ],
637
      [ $::locale->text('Transdate'),   'transdate'                                                       ],
638
      [ $::locale->text('Reference'),   'reference'                                                       ],
639 639
      [ $::locale->text('Description'), sub { $_[0]->presenter->gl_transaction(display => 'table-cell') } ],
640 640
    ],
641 641
    %params,
......
650 650
    title   => $::locale->text('Bank transactions'),
651 651
    type    => 'bank_transactions',
652 652
    columns => [
653
      [ $::locale->text('Transdate'),            'transdate'                      ],
654
      [ $::locale->text('Local Bank Code'),      sub { $_[0]->local_bank_account->presenter->bank_code }  ],
653
      [ $::locale->text('Transdate'),            'transdate'                                                   ],
654
      [ $::locale->text('Local Bank Code'),      sub { $_[0]->local_bank_account->presenter->bank_code }       ],
655 655
      [ $::locale->text('Local account number'), sub { $_[0]->local_bank_account->presenter->account_number }  ],
656
      [ $::locale->text('Remote Bank Code'),     'remote_bank_code' ],
657
      [ $::locale->text('Remote account number'),'remote_account_number' ],
658
      [ $::locale->text('Valutadate'),           'valutadate' ],
659
      [ $::locale->text('Amount'),               'amount' ],
660
      [ $::locale->text('Currency'),             sub { $_[0]->currency->name } ],
661
      [ $::locale->text('Remote name'),          'remote_name' ],
662
      [ $::locale->text('Purpose'),              'purpose' ],
656
      [ $::locale->text('Remote Bank Code'),     'remote_bank_code'                                            ],
657
      [ $::locale->text('Remote account number'),'remote_account_number'                                       ],
658
      [ $::locale->text('Valutadate'),           'valutadate'                                                  ],
659
      [ $::locale->text('Amount'),               'amount'                                                      ],
660
      [ $::locale->text('Currency'),             sub { $_[0]->currency->name }                                 ],
661
      [ $::locale->text('Remote name'),          'remote_name'                                                 ],
662
      [ $::locale->text('Purpose'),              'purpose'                                                     ],
663 663
    ],
664 664
    %params,
665 665
  );
......
708 708
    title   => $::locale->text('Letters'),
709 709
    type    => 'letter',
710 710
    columns => [
711
      [ $::locale->text('Date'),         'date'                                                ],
711
      [ $::locale->text('Date'),         'date'                                                    ],
712 712
      [ $::locale->text('Letternumber'), sub { $_[0]->presenter->letter(display => 'table-cell') } ],
713
      [ $::locale->text('Customer'),     'customer'                                            ],
714
      [ $::locale->text('Reference'),    'reference'                                           ],
715
      [ $::locale->text('Subject'),      'subject'                                             ],
713
      [ $::locale->text('Customer'),     'customer'                                                ],
714
      [ $::locale->text('Reference'),    'reference'                                               ],
715
      [ $::locale->text('Subject'),      'subject'                                                 ],
716 716
    ],
717 717
    %params,
718 718
  );
......
726 726
    title   => $::locale->text('Email'),
727 727
    type    => 'email_journal',
728 728
    columns => [
729
      [ $::locale->text('Sent on'), sub { $_[0]->sent_on->to_kivitendo(precision => 'seconds') } ],
729
      [ $::locale->text('Sent on'), sub { $_[0]->sent_on->to_kivitendo(precision => 'seconds') }     ],
730 730
      [ $::locale->text('Subject'), sub { $_[0]->presenter->email_journal(display => 'table-cell') } ],
731
      [ $::locale->text('Status'),  'status'                                                     ],
732
      [ $::locale->text('From'),    'from'                                                       ],
733
      [ $::locale->text('To'),      'recipients'                                                 ],
731
      [ $::locale->text('Status'),  'status'                                                         ],
732
      [ $::locale->text('From'),    'from'                                                           ],
733
      [ $::locale->text('To'),      'recipients'                                                     ],
734 734
    ],
735 735
    %params,
736 736
  );

Auch abrufbar als: Unified diff