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

SF.net SVN: ledger-smb:[5168] branches/1.3/bin/is.pl



Revision: 5168
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5168&view=rev
Author:   ehuelsmann
Date:     2012-11-04 19:55:14 +0000 (Sun, 04 Nov 2012)
Log Message:
-----------
Change "On Hold" button text to "Off Hold" when invoice is held.

Reported by Brian Wolf

Modified Paths:
--------------
    branches/1.3/bin/is.pl

Modified: branches/1.3/bin/is.pl
===================================================================
--- branches/1.3/bin/is.pl	2012-10-28 17:50:09 UTC (rev 5167)
+++ branches/1.3/bin/is.pl	2012-11-04 19:55:14 UTC (rev 5168)
@@ -751,10 +751,13 @@
     $form->format_amount( \%myconfig, $form->{invtotal}, 2, 0 );
     
     my $hold;
-    
+    my $hold_button_text;
     if ($form->{on_hold}) {
         
         $hold = qq| <font size="17"><b> This invoice is On Hold </b></font> |;
+        $hold_button_text = $locale->text('Off Hold');
+    } else {
+        $hold_button_text = $locale->text('On Hold');
     }
 
     print qq|
@@ -963,7 +966,7 @@
             'delete' =>
               { ndx => 11, key => 'D', value => $locale->text('Delete') },
             'on_hold' =>
-              { ndx => 12, key => 'O', value => $locale->text('On Hold') },
+              { ndx => 12, key => 'O',  value => $hold_button_text },
              'void'  => 
                 { ndx => 13, key => 'V', value => $locale->text('Void') },
              'save_info'  => 

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