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

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



Revision: 4408
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4408&view=rev
Author:   einhverfr
Date:     2012-03-08 07:25:22 +0000 (Thu, 08 Mar 2012)
Log Message:
-----------
Editing business units now works.  Note that stylesheet settings are no longer available to all templates now so we need a solution for that.

Modified Paths:
--------------
    trunk/LedgerSMB/Scripts/business_unit.pm
    trunk/UI/business_units/edit.html

Modified: trunk/LedgerSMB/Scripts/business_unit.pm
===================================================================
--- trunk/LedgerSMB/Scripts/business_unit.pm	2012-03-08 06:45:53 UTC (rev 4407)
+++ trunk/LedgerSMB/Scripts/business_unit.pm	2012-03-08 07:25:22 UTC (rev 4408)
@@ -69,8 +69,8 @@
     $request->{control_code} = '';
     $request->{class_id} = 0 unless $request->{class_id} = 0;
     my $b_unit = LedgerSMB::DBObject::Business_Unit->new(%$request);
-    $b_unit->get($request->{id});
-    _display($b_unit);
+    my $bu = $b_unit->get($request->{id});
+    _display($bu);
 }
 
 sub _display {

Modified: trunk/UI/business_units/edit.html
===================================================================
--- trunk/UI/business_units/edit.html	2012-03-08 06:45:53 UTC (rev 4407)
+++ trunk/UI/business_units/edit.html	2012-03-08 07:25:22 UTC (rev 4408)
@@ -3,7 +3,13 @@
 ?>
 <?lsmb PROCESS 'elements.html' ?>
 <body onLoad="init()">
-<div class="listtop"><?lsmb title ?></div>
+<div class="listtop">
+   <?lsmb 
+   IF id; 
+      text('Edit Reporting Unit');
+   ELSE;
+      text('Add Reporting Unit');
+    END; ?></div>
 <form action="<?lsmb script ?>" method="post">
 <!-- These are for Javascript automation of defaults -CT -->
 <?lsmb PROCESS input element_data = {

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