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

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



Revision: 2777
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2777&view=rev
Author:   einhverfr
Date:     2009-10-28 19:32:09 +0000 (Wed, 28 Oct 2009)

Log Message:
-----------
Undoing accidental commit of addon patch

Modified Paths:
--------------
    trunk/LedgerSMB/Sysconfig.pm
    trunk/bin/aa.pl
    trunk/bin/gl.pl

Modified: trunk/LedgerSMB/Sysconfig.pm
===================================================================
--- trunk/LedgerSMB/Sysconfig.pm	2009-10-28 18:24:03 UTC (rev 2776)
+++ trunk/LedgerSMB/Sysconfig.pm	2009-10-28 19:32:09 UTC (rev 2777)
@@ -4,7 +4,7 @@
 
 package LedgerSMB::Sysconfig;
 
-use LedgerSMB::Form;
+# use LedgerSMB::Form;
 use Config::Std;
 use DBI qw(:sql_types);
 binmode STDOUT, ':utf8';

Modified: trunk/bin/aa.pl
===================================================================
--- trunk/bin/aa.pl	2009-10-28 18:24:03 UTC (rev 2776)
+++ trunk/bin/aa.pl	2009-10-28 19:32:09 UTC (rev 2777)
@@ -959,8 +959,6 @@
 
             'save_info' => 
               { ndx => 9, key => 'I', value => $locale->text('Save Info') },
-            'save_temp' =>
-              { ndx => 10, key => 'T', value => $locale->text('Save Template')},
         );
         if (!$form->{approved} && !$form->{batch_id}){
            $button{approve} = { 
@@ -1030,21 +1028,6 @@
 |;
 }
 
-sub save_temp {
-    use LedgerSMB;
-    use LedgerSMB::DBObject::TransTemplate;
-    my $lsmb = LedgerSMB->new();
-    $lsmb->{is_invoice} = 1;
-    if ($form->{arap} eq 'ar'){
-        $lsmb->{entity_class} = 2;
-    } else {
-        $lsmb->{entity_class} = 1;
-    }
-    $template = LedgerSMB::DBObject::TransTemplate->new(base => $lsmb);
-    $template->save;
-    $form->redirect( $locale->text('Template Saved!') );
-}
-
 sub edit_and_approve {
     use LedgerSMB::DBObject::Draft;
     use LedgerSMB;

Modified: trunk/bin/gl.pl
===================================================================
--- trunk/bin/gl.pl	2009-10-28 18:24:03 UTC (rev 2776)
+++ trunk/bin/gl.pl	2009-10-28 19:32:09 UTC (rev 2777)
@@ -247,10 +247,6 @@
 		    { ndx => 7, key => 'H', value => $locale->text('Schedule') },
 		  'delete' =>
 		    { ndx => 8, key => 'D', value => $locale->text('Delete') },
-                  'save_temp' =>
-                    { ndx   => 9, 
-                      key   => 'T', 
-                      value => $locale->text('Save Template') },
 	      );
 
 	      if ($form->{separate_duties}){            
@@ -338,17 +334,7 @@
 }
  
 
-sub save_temp {
-    use LedgerSMB;
-    use LedgerSMB::DBObject::TransTemplate;
-    my $lsmb = LedgerSMB->new();
-    $lsmb->{type} = 'gl';
-    $template = LedgerSMB::DBObject::TransTemplate->new(base => $lsmb);
-    $template->save;
-    $form->redirect( $locale->text('Template Saved!') );
-}
 
-
 sub display_row
 {
  


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