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

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



Revision: 5967
          http://sourceforge.net/p/ledger-smb/code/5967
Author:   einhverfr
Date:     2013-08-24 10:35:06 +0000 (Sat, 24 Aug 2013)
Log Message:
-----------
Fixing batch type selection box

Modified Paths:
--------------
    trunk/LedgerSMB/Report/Unapproved/Batch_Overview.pm
    trunk/UI/Reports/filters/unapproved.html

Modified: trunk/LedgerSMB/Report/Unapproved/Batch_Overview.pm
===================================================================
--- trunk/LedgerSMB/Report/Unapproved/Batch_Overview.pm	2013-08-24 10:11:46 UTC (rev 5966)
+++ trunk/LedgerSMB/Report/Unapproved/Batch_Overview.pm	2013-08-24 10:35:06 UTC (rev 5967)
@@ -190,8 +190,16 @@
 
 =cut
 
-has 'batch_class' => (is => 'rw', isa => 'Maybe[Str]');
+has 'type' => (is => 'rw', isa => 'Int');
 
+=item class_id
+
+class id associated with type
+
+=cut
+
+has class_id => (is => 'rw', isa => 'Int');
+
 =item amount_gt
 
 The amount of the draft must be greater than this for it to show up.
@@ -222,6 +230,7 @@
 
 sub run_report{
     my ($self) = @_;
+    $self->class_id($self->type) if $self->type;
     $self->buttons([{
                     name  => 'action',
                     type  => 'submit',

Modified: trunk/UI/Reports/filters/unapproved.html
===================================================================
--- trunk/UI/Reports/filters/unapproved.html	2013-08-24 10:11:46 UTC (rev 5966)
+++ trunk/UI/Reports/filters/unapproved.html	2013-08-24 10:35:06 UTC (rev 5967)
@@ -21,7 +21,7 @@
    action = 'list_batches';
    FOR CLS IN batch_classes;
        CLS.text = CLS.class;
-       CLS.value = CLS.class;
+       CLS.value = CLS.id;
    END;
    batch_classes.unshift({});
 END;

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


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits