# $locale->text('Payments')
# $locale->text('Project Transactions')
# $locale->text('Business evaluation')
+# $locale->text('Final Invoice, please use mark as paid manually')
# $form->parse_html_template('rp/html_report_susa')
my $report = SL::ReportGenerator->new(\%myconfig, $form);
- my @columns = qw(statement ct invnumber transdate duedate amount open datepaid current_open);
+ my @columns = qw(statement ct invnumber transdate duedate amount open datepaid current_open type);
my %column_defs = (
'statement' => { raw_header_data => SL::Presenter::Tag::checkbox_tag("checkall", checkall => '[name^=statement_]'), 'visible' => $form->{ct} eq 'customer' ? 'HTML' : 0, align => "center" },
'ct' => { 'text' => $form->{ct} eq 'customer' ? $locale->text('Customer') : $locale->text('Vendor'), },
'open' => { 'text' => $locale->text('Open'), },
'datepaid' => { 'text' => $locale->text('Date of Last Payment'), visible => ($form->{reporttype} eq 'custom') },
'current_open' => { 'text' => $locale->text('Open Amount at Last Payment Date'), visible => ($form->{reporttype} eq 'custom') },
+ 'type' => { 'text' => $locale->text('Note'), },
);
my %column_alignment = ('statement' => 'center',
$form->{title} = sprintf($locale->text('Ap aging on %s'), $form->{todate});
}
+ $form->{callback} .= "&reporttype=" . E($form->{reporttype});
if ($form->{reporttype} eq 'free') {
if ($form->{fromdate}) {
push @options, $locale->text('for Period') . " " . $locale->text('From') . " " .
}
$row->{invnumber}->{link} = build_std_url("script=$ref->{module}.pl", 'action=edit', 'callback', 'id=' . E($ref->{id}));
+ if ($row->{type}->{data} eq 'final_invoice') {
+ $row->{type}->{data} = $locale->text('Final Invoice, please use mark as paid manually');
+ $row->{type}->{link} = build_std_url("script=$ref->{module}.pl", 'action=edit', 'callback', 'id=' . E($ref->{id}));
+ } else {
+ $row->{type}->{data} = '';
+ }
if ($previous_ctid != $ref->{ctid}) {
$row->{statement}->{raw_data} =