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

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



Revision: 6819
          http://sourceforge.net/p/ledger-smb/code/6819
Author:   einhverfr
Date:     2014-02-10 05:00:02 +0000 (Mon, 10 Feb 2014)
Log Message:
-----------
Adding currency/exchange rate handling to filter screen

Modified Paths:
--------------
    trunk/LedgerSMB/Scripts/reports.pm
    trunk/UI/Reports/filters/overpayments.html

Modified: trunk/LedgerSMB/Scripts/reports.pm
===================================================================
--- trunk/LedgerSMB/Scripts/reports.pm	2014-02-10 04:45:34 UTC (rev 6818)
+++ trunk/LedgerSMB/Scripts/reports.pm	2014-02-10 05:00:02 UTC (rev 6819)
@@ -81,6 +81,9 @@
     @{$request->{all_years}} = $request->call_procedure(
               procname => 'date_get_all_years'
     );
+    my $curr = LedgerSMB::Setting->get('curr');
+    @{$request->{currencies}} = split ':', $curr;
+    $_ = {id => $_, text => $_} for @{$request->{currencies}};
     my $months = LedgerSMB::App_State::all_months();
     $request->{all_months} = $months->{dropdown};
     if (!$request->{report_name}){

Modified: trunk/UI/Reports/filters/overpayments.html
===================================================================
--- trunk/UI/Reports/filters/overpayments.html	2014-02-10 04:45:34 UTC (rev 6818)
+++ trunk/UI/Reports/filters/overpayments.html	2014-02-10 05:00:02 UTC (rev 6819)
@@ -38,6 +38,20 @@
         class = 'name'
     } ?></td>
  </tr>
+ <tr class="listtop">
+  <th colspan="4"><?lsmb text('Reversal Information') ?></th>
+ </tr>
+ <tr><th><?lsmb text('Currency'); ?></th>
+     <td><?lsmb PROCESS select element_data = {
+          options = currencies
+             name = 'currency'
+   default_values = [currency]
+            class = 'currency'
+     }; ?></td>
+     <th><?lsmb text('Exhchange Rate'); ?></th>
+     <td><?lsmb PROCESS input element_data = {
+     }; ?></td>
+ </tr>
 </table>
 <?lsmb PROCESS button element_data = {
       name = 'action'

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


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits