=head1: NAME LedgerSMB::Report: Stub function for custom reports. =head1: COPYRIGHT Copyright (c) 2007. LedgerSMB Core Team =cut package LedgerSMB::DBObject::Report; use base qw(LedgerSMB::DBObject); use strict; our $VERSION = '1.0.0'; 1; =head1 METHODS =cut # Place report definitions at the bottom of the file, please. CT =head1 DEFINED REPORTS =cut sub definition_invoice_aging { my ($self) = @_; @{$self->{entities}} = $self->exec_method(funcname => 'payment_get_all_accounts'); my $entity_options = []; for my $entity (@{$self->{entities}}){ my $option = {}; $option->{value} = $entity->{id}; $option->{label} = $entity->{name}; push @$entity_options, $option; } $self->{criteria} = [ {name => 'entity', type => 'select', label => 'Account', options => $entity_options}, ]; $self->{hidden_elements} = [ {name => 'account_class', value => $self->{account_class}} ]; $self->{columns} = [ {id => 'entity_id', label => 'Entity ID'}, {id => 'account_number', label => 'Account Number'}, {id => 'name', label => 'Name'}, {id => 'country', label => 'Country'}, {id => 'contact_name', label => 'Contact'}, {id => 'email', label => 'Email'}, {id => 'phone', label => 'Telephone'}, {id => 'fax', label => 'Fax'}, {id => 'invnumber', label => 'Invoice Number'}, {id => 'transdate', label => 'Date'}, {id => 'till', label => 'Till'}, {id => 'ordnumber', label => 'Order Number'}, {id => 'ponumber', label => 'PO Number'}, {id => 'c0', label => 'Current'}, {id => 'c30', label => '30'}, {id => 'c60', label => '60'}, {id => 'c90', label => '90'}, {id => 'duedate', label => 'Due'}, {id => 'curr', label => 'Currency'}, {id => 'exchangerate', label => 'Exchange Rate'}, ]; $self->{report_types} = [ {label => "Detailed", value => "detailed"}, {label => "Summary", value => "summary"}, {label => "Overdue", value => "overdue"}, {label => "Overdue Summary", value => "overdue_summary"}, ]; } =head1 ADDING DEFINED REPORTS =cut 1; space:mode:
Diffstat (limited to 'tags/92/54')
-rw-r--r--tags/92/54/1439884348.1468.4.camel@debian.org/debian0
-rw-r--r--tags/92/54/1439884348.1468.4.camel@debian.org/inbox0
-rw-r--r--tags/92/54/1439884348.1468.4.camel@debian.org/old0
-rw-r--r--tags/92/54/1439884348.1468.4.camel@debian.org/signed0
-rw-r--r--tags/92/54/167673321058.299911.15585485122354891220.reportbug@localhost/debian0
-rw-r--r--tags/92/54/167673321058.299911.15585485122354891220.reportbug@localhost/unread0
-rw-r--r--tags/92/54/20100827181300.GD1972@mostlylinux.ca/debian0
-rw-r--r--tags/92/54/20120909221049.GI5506@type.wlan.youpi.perso.aquilenet.fr/debian0
-rw-r--r--tags/92/54/20121026120404.4b53ac3c@limelight.wooz.org/inbox0
-rw-r--r--tags/92/54/20121026120404.4b53ac3c@limelight.wooz.org/old0
-rw-r--r--tags/92/54/20161017080802.200B11C0B5@jawa.homebase.dk/hb0
-rw-r--r--tags/92/54/20161017080802.200B11C0B5@jawa.homebase.dk/sys0
-rw-r--r--tags/92/54/20161017080802.200B11C0B5@jawa.homebase.dk/unread0
-rw-r--r--tags/92/54/20171214162829.2D0468537@lxp5.free-owl.de/sys0
-rw-r--r--tags/92/54/20171214162829.2D0468537@lxp5.free-owl.de/unread0
-rw-r--r--tags/92/54/620944b12d841_4fa2b1ff9c69c309433f@godard.mail/debian0
-rw-r--r--tags/92/54/620944b12d841_4fa2b1ff9c69c309433f@godard.mail/inbox0
-rw-r--r--tags/92/54/620944b12d841_4fa2b1ff9c69c309433f@godard.mail/killed0
-rw-r--r--tags/92/54/620944b12d841_4fa2b1ff9c69c309433f@godard.mail/unread0
-rw-r--r--tags/92/54/9812A4E2-8AAF-4CDF-A941-0A84C9EAF544@kaospilot.dk/hb0
-rw-r--r--tags/92/54/9812A4E2-8AAF-4CDF-A941-0A84C9EAF544@kaospilot.dk/unread0
-rw-r--r--tags/92/54/alpine.DEB.1.10.0906231205220.20610@bobo.thuis.net/attachment0
-rw-r--r--tags/92/54/alpine.DEB.1.10.0906231205220.20610@bobo.thuis.net/debian0
23 files changed, 0 insertions, 0 deletions