[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[6014] trunk



Revision: 6014
          http://sourceforge.net/p/ledger-smb/code/6014
Author:   einhverfr
Date:     2013-09-13 15:06:30 +0000 (Fri, 13 Sep 2013)
Log Message:
-----------
Moving tax form reports onto new framework

Modified Paths:
--------------
    trunk/LedgerSMB/Scripts/taxform.pm
    trunk/UI/Reports/filters/taxforms.html
    trunk/sql/Pg-database.sql
    trunk/sql/modules/menu_rebuild.sql

Added Paths:
-----------
    trunk/LedgerSMB/Report/Taxform/
    trunk/LedgerSMB/Report/Taxform/Detail.pm
    trunk/LedgerSMB/Report/Taxform/Summary.pm

Removed Paths:
-------------
    trunk/UI/taxform/details_report.html
    trunk/UI/taxform/summary_report.html

Added: trunk/LedgerSMB/Report/Taxform/Detail.pm
===================================================================
--- trunk/LedgerSMB/Report/Taxform/Detail.pm	                        (rev 0)
+++ trunk/LedgerSMB/Report/Taxform/Detail.pm	2013-09-13 15:06:30 UTC (rev 6014)
@@ -0,0 +1,159 @@
+=head1 NAME
+
+LedgerSMB::Report::Taxform::Details - 1099 and similar details forms for 
+LedgerSMB
+
+=head1 SYNPOSIS
+
+  my $report = LedgerSMB::Report::Taxform::Details->new(%$request);
+  $report->render($report);
+
+=cut
+
+package LedgerSMB::Report::Taxform::Details;
+use Moose;
+extends 'LedgerSMB::Report';
+with 'LedgerSMB::Report::Dates';
+
+=head1 DESCRIPTION
+
+Taxforms are used to handle VAT reporting in Europe and 1099 reporting in the
+US.  These can be set up to do accrual or cash basis reporting (different 
+countries have different requirements).
+
+This report provides a listing of transactions and invoices which are reported
+for a given vendor.  This is used largely for verifying the values reported.
+
+=head1 CRITERIA PROPERTIES
+
+=head2 taxform_id
+
+This is the id of the taxform.
+
+=cut
+
+has taxform_id => (is => 'ro', isa => 'Int', required => '1');
+
+=head2 meta_number
+
+This is the vendor number.
+
+=cut
+
+has meta_number => (is => 'ro', isa => 'Str', required => '1');
+
+=head1 REPORT CONSTANTS
+
+=head2 columns
+
+=item legal_name
+
+=item account_type
+
+=item meta_number
+
+=item invnumber
+
+=item acc_sum
+
+=item invoice_sum
+
+=item total
+
+
+=cut
+
+sub columns {
+    return [{
+        col_id => 'legal_name',
+        type   => 'text',
+        name   => LedgerSMB::Report::text('Company'), },
+
+      { col_id => 'account_type',
+        type   => 'text',
+        name   => LedgerSMB::Report::text('Account Type'), },
+
+      { col_id => 'meta_number',
+        type   => 'text',
+        name   => LedgerSMB::Report::text('Account Number'), },
+
+     { col_id  => 'invnumber',
+       type    => 'text',
+       name    => LedgerSMB::Report::text('Invoice Number') },
+
+     { col_id  => 'acc_sum',
+       type    => 'text',
+       name    => LedgerSMB::Report::text('Acc_trans Sum') },
+
+     { col_id  => 'invoice_sum',
+       type    => 'text',
+       name    => LedgerSMB::Report::text('Invoice Sum') },
+
+     { col_id  => 'total',
+       type    => 'text',
+       name    => LedgerSMB::Report::text('Total') },
+     ];
+}
+
+=head2 header_lines
+
+=cut
+
+sub header_lines {
+    return [
+       { name => 'from_date', text => LedgerSMB::Report::text('From Date') },
+       { name => 'to_date',   text => LedgerSMB::Report::text('To Date') },
+       { name => 'taxform',   text => LedgerSMB::Report::text('Tax Form') },
+       { name => 'meta_number',   text => LedgerSMB::Report::text('Account Number') },
+    ];
+}
+=head2 name 
+
+=cut
+
+sub name {
+    return LedgerSMB::Report::text('Tax Form Details Report');
+}
+
+=head2 buttons
+
+=cut
+
+sub buttons {
+    return [{name => 'action',
+             type => 'submit',
+             text => LedgerSMB::Report::text('Print'),
+            value => 'print'}];
+}
+
+=head1 METHODS
+=head1 METHODS
+
+=head2 run_report
+
+=cut
+
+sub run_report {
+    my ($self) = @_;
+    my $tf = LedgerSMB::DBObject::TaxForm->get($self->taxform_id);
+    $self->taxform($tf->{form_name});
+    my $fname = 'tax_form_details_report';
+    $fname .= '_accrual' if $tf->{is_accrual};
+    my @rows = $self->exec_method(funcname => $fname);
+
+    for my $row(@rows){
+       $row->{total} = $row->{acc_total} + $row->{invoice_total};
+    }
+    $self->rows(@rows);
+}
+
+=head1 COPYRIGHT
+
+COPYRIGHT(C) 2013 The LedgerSMB Core Team.  This file may be used under the
+terms of the GNU General Public License version 2 or at your option any later 
+version.  Please see the LICENSE.TXT that came with this software for more
+details.
+
+=cut
+
+__PACKAGE__->meta->make_immutable;

Added: trunk/LedgerSMB/Report/Taxform/Summary.pm
===================================================================
--- trunk/LedgerSMB/Report/Taxform/Summary.pm	                        (rev 0)
+++ trunk/LedgerSMB/Report/Taxform/Summary.pm	2013-09-13 15:06:30 UTC (rev 6014)
@@ -0,0 +1,162 @@
+=head1 NAME 
+
+LedgerSMB::Report::Taxform::Summary - Summary reports for 1099 and similar 
+forms for LedgerSMB
+
+=head1 SYNPOSIS
+
+ $report = LedgerSMB::Report::Taxform::Summary->new(%$request);
+ $report->render($request);
+
+=cut
+
+package LedgerSMB::Report::Taxform::Summary;
+use LedgerSMB::DBObject::TaxForm;
+use Moose;
+extends 'LedgerSMB::Report';
+with 'LedgerSMB::Report::Dates';
+
+=head1 DESCRIPTION
+
+Taxforms are used to handle VAT reporting in Europe and 1099 reporting in the
+US.  These can be set up to do accrual or cash basis reporting (different 
+countries have different requirements).
+
+This particular report shows the summary for a vendor over a given period of 
+time.  The numbers are broken up into transactions and with inventory.  Although
+this usually has no significance regarding tax reporting, it is helpful for 
+internally revieing the numbers for accuracy.
+
+=head1 CRITERIA PROPERTIES
+
+In addition to the standard dates, there is only one property expected.
+
+=head2 taxform_id
+
+This is the id of the taxform.
+
+=cut
+
+has taxform_id => (is => 'ro', isa => 'Int', required => '1');
+
+has taxform => (is => 'rw', isa => 'Str', required => 0);
+
+=head1 REPORT CONSTANTS
+
+=head2 columns
+
+=over
+
+=item legal_name
+
+=item account_type
+
+=item meta_number
+
+=item acc_sum
+
+=item invoice_sum
+
+=item total
+
+=cut
+
+sub columns {
+    return [{
+        col_id => 'legal_name',
+        type   => 'text',
+        name   => LedgerSMB::Report::text('Company'), },
+
+      { col_id => 'account_type',
+        type   => 'text',
+        name   => LedgerSMB::Report::text('Account Type'), },
+
+      { col_id => 'meta_number',
+        type   => 'text',
+        name   => LedgerSMB::Report::text('Account Number'), },
+
+     { col_id  => 'control_code',
+       type    => 'text',
+       name    => LedgerSMB::Report::text('Control Code') },
+
+     { col_id  => 'acc_sum',
+       type    => 'text',
+       name    => LedgerSMB::Report::text('Acc_trans Sum') },
+
+     { col_id  => 'invoice_sum',
+       type    => 'text',
+       name    => LedgerSMB::Report::text('Invoice Sum') },
+
+     { col_id  => 'total',
+       type    => 'href',
+       href_base => 'taxform.pl?action=generate_report&',
+       name    => LedgerSMB::Report::text('Total') },
+     ];
+}
+
+=head2 header_lines
+
+=cut
+
+sub header_lines {
+    return [
+       { name => 'from_date', text => LedgerSMB::Report::text('From Date') },
+       { name => 'to_date',   text => LedgerSMB::Report::text('To Date') },
+       { name => 'taxform',   text => LedgerSMB::Report::text('Tax Form') },
+    ];
+}
+
+=head2 name
+
+=cut
+
+sub name {
+    return LedgerSMB::Report::text('Tax Form Report');
+}
+
+=head2 buttons
+
+=cut
+
+sub buttons {
+    return [{name => 'action',
+             type => 'submit',
+             text => LedgerSMB::Report::text('Print'),
+            value => 'print'}];
+}
+
+=head1 METHODS
+
+=head2 run_report
+
+=cut
+
+sub run_report {
+    my ($self) = @_;
+    my $tf = LedgerSMB::DBObject::TaxForm->get($self->taxform_id);
+    $self->taxform($tf->{form_name});
+    my $fname = 'tax_form_summary_report';
+    $fname .= '_accrual' if $tf->{is_accrual};
+    my @rows = $self->exec_method(funcname => $fname);
+
+    my $href_suffix_base = 'from_date=' . $self->from_date 
+                         . '&to_date=' . $self->to_date
+                         . '&taxform_id=' . $self->taxform_id;
+    for my $row(@rows){
+       $row->{total_href_suffix} = $href_suffix_base 
+                                 . '&meta_number=' . $row->{meta_number};
+       $row->{total} = $row->{acc_total} + $row->{invoice_total};
+    }
+    $self->rows(@rows);
+}
+
+=head1 COPYRIGHT
+
+COPYRIGHT(C) 2013 The LedgerSMB Core Team.  This file may be used under the
+terms of the GNU General Public License version 2 or at your option any later 
+version.  Please see the LICENSE.TXT that came with this software for more
+details.
+
+=cut
+
+__PACKAGE__->meta->make_immutable;

Modified: trunk/LedgerSMB/Scripts/taxform.pm
===================================================================
--- trunk/LedgerSMB/Scripts/taxform.pm	2013-09-13 11:24:59 UTC (rev 6013)
+++ trunk/LedgerSMB/Scripts/taxform.pm	2013-09-13 15:06:30 UTC (rev 6014)
@@ -27,7 +27,8 @@
 use LedgerSMB::DBObject::Date;
 use LedgerSMB::Template;
 use LedgerSMB::Form;
-use LedgerSMB::DBObject::Vendor;
+use LedgerSMB::Report::Taxform::Summary;
+use LedgerSMB::Report::Taxform::Detail;
 
 =pod
 
@@ -39,32 +40,16 @@
 
 =cut
 
-sub __default {
+sub report {
+    use LedgerSMB::Scripts::reports;
     my ($request) = @_;
-    my $template;
-    my %hits = ();
+    $request->{report_name} = 'taxforms';
     
-    $template = LedgerSMB::Template->new(
-            path => 'UI/taxform',
-            template => 'filter',
-	    format => 'HTML',
-    );
-    
     # Get tax forms.
     my $taxform = LedgerSMB::DBObject::TaxForm->new({base => $request});
     $taxform->get_forms();
     $request->{forms} = $taxform->{forms};
-    
-    # Lets build filter by period
-    my $locale = $request->{_locale};
-    my $date = LedgerSMB::DBObject::Date->new({base => $request});
-    $date->build_filter_by_period($locale);
-    
-    $request->{all_years} = $date->{yearsOptions};
-    $request->{accountingmonths} = $date->{monthsOptions};
-    $request->{days} = $date->{daysOptions};
-    
-    $template->render($request);
+    LedgerSMB::Scripts::reports::start_report($request);    
 }
 
 =pod
@@ -118,19 +103,36 @@
 
 =cut
 
+sub _generate_report {
+    my ($request) = @_;
+    my $report;
+    if ($request->{meta_number}){
+        $report = LedgerSMB::Report::Taxform::Detail->new(%$request);
+    } else {
+        $report = LedgerSMB::Report::Taxform::Summary->new(%$request);
+    }
+    return $report;
+}
+
+
 sub generate_report {
-    
-    
     my ($request) = @_;
-    if (!$request->{format}){
-       $request->{format} = 'HTML';
+    my $report = _generate_report($request);
+    $report->render($request);
+}
+
+sub print { 
+    my ($request) = @_;
+    my $report = LedgerSMB::Report::Taxform::Summary->new(%$request);
+    $report->run_report($request);
+    if ($request->{meta_number}){
+       my $rows = $report->rows;
+       for my (@$rows){
+           delete $_ unless $_->{meta_number} eq $request->{meta_number}
+       }
+       $report->rows($rows);
     }
 
-
-    my ($tf) = $request->call_procedure(
-              procname => 'taxform__get', args => $request->{'tax_form_id'});
-    my $sfx = '';
-    $stf = '_accrual' if $th->{is_accrual};
     # Business settings for 1099
     #
     my $cc = $LedgerSMB::Company_Config::settings;
@@ -138,79 +140,15 @@
     $request->{company_address}   = $cc->{company_address};
     $request->{company_telephone} = $cc->{company_phone};
     $request->{my_tax_code}       = $cc->{businessnumber};
-    # TODO:  Eliminate duplicate code!
-    if ($request->{meta_number}) {
-      my @call_args = ($request->{'tax_form_id'},
-                       $request->{begin_year}.'-'.$request->{begin_month}.'-'.$request->{begin_day}, $request->{end_year}.'-'.$request->{end_month}.'-'.$request->{end_day}, 
-                       $request->{meta_number});
-                       
-      my @results = $request->call_procedure(procname => "tax_form_details_report$sfx", args => ..hidden..);
-      my $credit_id;
-      for my $r (@results){
-          $r->{acc_sum} = $request->format_amount({amount => $r->{acc_sum}});
-          $r->{invoice_sum} = 
-               $request->format_amount({amount => $r->{invoice_sum}});
-          ($request->{total_sum}) ? $request->{total_sum} + $r->{total_sum}
-                                  : $r->{total_sum};
-          $r->{total_sum} = $request->format_amount({amount => $r->{total_sum}});
-          $credit_id = $r->{credit_id};
-      }
-      $request->{total_sum} = $request->format_amount(
-                                      {amount => $request->{total_sum}}
-      ) || '0';
-      #XXX Please note, the line below is a kludge because we don't support
-      # generic companies at present on instantiation.  This means I have to 
-      # specify that this is either a customer or vendor.  Right now I am 
-      # specifying as a vendor.  This should have no effect on subsequent code
-      # but if this is somethign we end up depending on, we need to fix it.
-      my $company = LedgerSMB::DBObject::Vendor->new(base => $request);
-      $company->{id} = $credit_id;
-      $company->get_billing_info;
-      delete $company->{id}; 
-      $request->merge($company);
-      $request->{results} = ..hidden..;
-      $request->debug({file=>'/tmp/taxformdebug'});
       
-      my $template = LedgerSMB::Template->new(
+    my $template = LedgerSMB::Template->new(
           user => $request->{_user}, 
           locale => $request->{_locale},
           path => 'UI',
           media => 'screen',
-          template => 'taxform/details_report',
-          format => $request->{format},
-      );
-      $template->render($request);
-    } 
-    else {
-        
-        my @call_args = ($request->{'tax_form_id'}, $request->{begin_year}.'-'.$request->{begin_month}.'-'.$request->{begin_day}, $request->{end_year}.'-'.$request->{end_month}.'-'.$request->{end_day});
-        my @results = $request->call_procedure(procname => "tax_form_summary_report$sfx", args => ..hidden..);
-        for my $r (@results){
-            my $company = LedgerSMB::DBObject::Vendor->new(base => $request);
-            $company->{id} = $r->{credit_id};
-            $company->get_billing_info;
-            delete $company->{id};
-            for my $k (keys %$company){
-                 $r->{$k} = $company->{$k} unless $k == 'entity_class';
-            }
- 
-            $r->{acc_sum} = $request->format_amount({amount => $r->{acc_sum}});
-            $r->{invoice_sum} = 
-                 $request->format_amount({amount => $r->{invoice_sum}});
-            $r->{total_sum} = $request->format_amount({amount => $r->{total_sum}});
-        }
-        $request->{results} = ..hidden..;
-        
-        my $template = LedgerSMB::Template->new(
-            user => $request->{_user}, 
-            locale => $request->{_locale},
-            path => 'UI',
-            media => 'screen',
-            template => 'taxform/summary_report',
-            format => $request->{format},
-        );
-        $template->render($request);
-    }
+          template => 'taxform/summary_report',
+          format => 'PDF',
+    );
 }
 
 sub save

Modified: trunk/UI/Reports/filters/taxforms.html
===================================================================
--- trunk/UI/Reports/filters/taxforms.html	2013-09-13 11:24:59 UTC (rev 6013)
+++ trunk/UI/Reports/filters/taxforms.html	2013-09-13 15:06:30 UTC (rev 6014)
@@ -4,9 +4,10 @@
 * optional vendor text box 
 -->
 <?lsmb INCLUDE 'ui-header.html' 
-       	include_script = ["UI/ajax/scriptaculous/lib/prototype.js","UI/ajax/scriptaculous/src/scriptaculous.js?load=builder,effects,dragdrop,controls","UI/ajax/helpers.js"]
+       	include_script = ["UI/ajax/scriptaculous/lib/prototype.js","UI/ajax/scriptaculous/src/scriptaculous.js?load=builder,effects,dragdrop,controls","UI/ajax/helpers.js"];
         PROCESS 'elements.html';
         PROCESS 'report_base.html';
+?>
 <body>
 
 <form method="post" action="<?lsmb script ?>">
@@ -26,7 +27,7 @@
       <table>
         <tr>
 	<th align="right"><?lsmb text('Form') ?></th>
-	<td colspan="3">
+	<td colspan="6">
         <?lsmb PROCESS select element_data = {
                name = "tax_form_id"
                options = forms
@@ -39,15 +40,15 @@
       </tr>
 	<tr>
 	  <th align="right"><?lsmb text('Vendor Number') ?></th>
-	  <td colspan="3"><?lsmb INCLUDE input element_data = {
+	  <td colspan="6"><?lsmb INCLUDE input element_data = {
 	                  name = "meta_number"
 	                  size = '35'
            } ?></td>
 	</tr>
+  </tr>
+  <?lsmb PROCESS date_row ?> 
       </table>
     </td>
-  </tr>
-  <?lsmb PROCESS date_row ?> 
   <tr>
     <td><hr size=3 noshade></td>
   </tr>

Deleted: trunk/UI/taxform/details_report.html
===================================================================
--- trunk/UI/taxform/details_report.html	2013-09-13 11:24:59 UTC (rev 6013)
+++ trunk/UI/taxform/details_report.html	2013-09-13 15:06:30 UTC (rev 6014)
@@ -1,62 +0,0 @@
-<?lsmb INCLUDE 'ui-header.html' 
-       	include_script = ["UI/ajax/scriptaculous/lib/prototype.js","UI/ajax/scriptaculous/src/scriptaculous.js?load=builder,effects,dragdrop,controls","UI/ajax/helpers.js"]
-?>
-<?lsmb PROCESS 'elements.html' ?>
-<!--
- * Occurs from filter_screen if vendor meta_number added, or from summary report of total amount is clicked
- * vendor.meta_number (click through to edit vendor)
- * transaction ap.invnumber (click through to review transaction, i.e. to edit transaction screen)
- * transaction ap.duedate
- * sum of acc_trans reportable entries
- * sum of invoice reportable entries
- * total of sums above 
--->
-<body>
-
-<table width="100%">
-  <tr class="listtop">
-    <th><?lsmb text('Company') ?></th>
-    <th><?lsmb text('Account Type') ?></th>
-    <th><?lsmb text('Account Number') ?></th>
-    <th><?lsmb text('Invoice Number') ?></th>
-    <th><?lsmb text('Due Date') ?></th>
-    <th><?lsmb text('Acc_trans Sum') ?></th>
-    <th><?lsmb text('Invoice Sum') ?></th>
-    <th><?lsmb text('Total') ?></th>
-  </tr>
-  <tr height="5"><td></td></tr>
-<?lsmb 
-FOREACH result IN results; i = loop.count;
-   IF result.entity_class == 1; RES_ROLE = text('Vendor');
-   ELSE; RES_ROLE = text('Customer');
-   END;
-?>
-    <tr>
-      <td><?lsmb result.legal_name ?></td>
-      <td><?lsmb RES_ROLE ?></td>
-      <td><a href="vendor.pl?action=get&account_class=<?lsmb result.entity_class ?>&entity_id=<?lsmb result.entity_id ?>&meta_number=<?lsmb result.meta_number ?>"><?lsmb result.meta_number ?></a></td>
-      <td><a href="ap.pl?AP=&vendor=&meta_number=<?lsmb result.meta_number ?>&invnumber=<?lsmb result.invnumber ?>&ordnumber=&ponumber=&source=&description=&notes=&shipvia=&transdatefrom=&transdateto=&month=&year=&interval=0&invoice_type=1&open=Y&summary=1&title=AP+Transactions&outstanding=&sort=transdate&l_invnumber=Y&l_transdate=Y&l_name=Y&l_amount=Y&l_paid=Y&action=continue&action=continue&nextsub=transactions&path=bin"><?lsmb result.invnumber ?></a></td>
-      <td><?lsmb result.duedate ?></td>
-      <td><?lsmb result.acc_sum ?></td>
-      <td><?lsmb result.invoice_sum ?></td>
-      <td><?lsmb result.total_sum ?></td>
-    </tr>
-<?lsmb END ?>
-</table>
-<form action="taxform.pl" method="POST">
-<?lsmb INCLUDE "taxform/report_hiddens.html" ?>
-<?lsmb PROCESS input element_data = {
-    name="print_all"
-    type="hidden"
-    value="0"
-} ?>
-<?lsmb PROCESS button  element_data = {
-    name="action"
-    text=text("Print")
-    value="print"
-    class="submit"
-    type="submit"
-} ?>
-</form>
-</body>
-</html>

Deleted: trunk/UI/taxform/summary_report.html
===================================================================
--- trunk/UI/taxform/summary_report.html	2013-09-13 11:24:59 UTC (rev 6013)
+++ trunk/UI/taxform/summary_report.html	2013-09-13 15:06:30 UTC (rev 6014)
@@ -1,60 +0,0 @@
-<?lsmb INCLUDE 'ui-header.html' 
-       	include_script = ["UI/ajax/scriptaculous/lib/prototype.js","UI/ajax/scriptaculous/src/scriptaculous.js?load=builder,effects,dragdrop,controls","UI/ajax/helpers.js"]
-?>
-<?lsmb PROCESS 'elements.html' ?>
-<!--
- * Occurs from filter screen if no vendor meta_number added
- * vendor company.legal_name
- * vendor entity_credit_account.meta_number (click through to edit vendor!)
- * vendor entity.control_code
- * sum of acc_trans reportable entries
- * sum of invoice reportable entries
- * total of sums above (click through to details report) 
--->
-<body>
-
-<table width="100%">
-  <tr class="listtop">
-    <th><?lsmb text('Company') ?></th>
-    <th><?lsmb text('Account Type') ?></th> 
-    <th><?lsmb text('Account Number') ?></th>
-    <th><?lsmb text('Control Code') ?></th>
-    <th><?lsmb text('Acc_trans Sum') ?></th>
-    <th><?lsmb text('Invoice Sum') ?></th>
-    <th><?lsmb text('Total') ?></th>
-  </tr>
-  <tr height="5"><td></td></tr>
-<?lsmb 
-FOREACH result IN results; i = loop.count;
-   IF result.entity_class == 1; RES_ROLE = text('Vendor');
-   ELSE; RES_ROLE = text('Customer');
-   END;
-?>
-    <tr>
-      <td><?lsmb result.legal_name ?></td>
-      <td><?lsmb RES_ROLE ?></td>
-      <td><a href="vendor.pl?action=get&account_class=<?lsmb result.entity_class ?>&entity_id=<?lsmb result.entity_id ?>&meta_number=<?lsmb result.meta_number ?>"><?lsmb result.meta_number ?></a></td>
-      <td><?lsmb result.control_code ?></td>
-      <td><?lsmb result.acc_sum ?></td>
-      <td><?lsmb result.invoice_sum ?></td>
-      <td><a href="taxform.pl?action=generate_report&tax_form_id=<?lsmb tax_form_id ?>&begin_day=<?lsmb begin_day ?>&begin_month=<?lsmb begin_month ?>&begin_year=<?lsmb begin_year ?>&end_day=<?lsmb end_day ?>&end_month=<?lsmb end_month ?>&end_year=<?lsmb end_year ?>&meta_number=<?lsmb result.meta_number ?>"><?lsmb result.total_sum ?></a></td>
-    </tr>
-<?lsmb END ?>
-</table>
-<form action="taxform.pl" method="POST">
-<?lsmb INCLUDE "taxform/report_hiddens.html" ?>
-<?lsmb PROCESS input element_data = {
-    name="print_all"
-    type="hidden"
-    value="1"
-} ?>
-<?lsmb PROCESS button element_data = {
-    name="action"
-    text=text("Print")
-    value="print"
-    class="submit"
-    type="submit"
-} ?>
-</form>
-</body>
-</html>

Modified: trunk/sql/Pg-database.sql
===================================================================
--- trunk/sql/Pg-database.sql	2013-09-13 11:24:59 UTC (rev 6013)
+++ trunk/sql/Pg-database.sql	2013-09-13 15:06:30 UTC (rev 6014)
@@ -3366,6 +3366,7 @@
 225	module	taxform.pl	613
 225	action	list_all	614
 226	module	taxform.pl	615
+226	action	report	201
 227	menu	1	616
 228	menu	1	617
 229	menu	1	618

Modified: trunk/sql/modules/menu_rebuild.sql
===================================================================
--- trunk/sql/modules/menu_rebuild.sql	2013-09-13 11:24:59 UTC (rev 6013)
+++ trunk/sql/modules/menu_rebuild.sql	2013-09-13 15:06:30 UTC (rev 6014)
@@ -676,6 +676,7 @@
 225	module	taxform.pl	613
 225	action	list_all	614
 226	module	taxform.pl	615
+226	action	report	201
 227	menu	1	616
 228	menu	1	617
 229	menu	1	618

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits