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

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



Revision: 873
          http://svn.sourceforge.net/ledger-smb/?rev=873&view=rev
Author:   einhverfr
Date:     2007-03-09 15:51:27 -0800 (Fri, 09 Mar 2007)

Log Message:
-----------
Employee search now works

Modified Paths:
--------------
    trunk/LedgerSMB/Location.pm
    trunk/sql/upgrade/1.2-1.3.sql

Modified: trunk/LedgerSMB/Location.pm
===================================================================
--- trunk/LedgerSMB/Location.pm	2007-03-09 23:44:20 UTC (rev 872)
+++ trunk/LedgerSMB/Location.pm	2007-03-09 23:51:27 UTC (rev 873)
@@ -37,8 +37,10 @@
 our @ISA = qw(LedgerSMB::DBObject);
 
 sub AUTOLOAD {
-	my $procname = "location_$LedgerSMB::Location::Autoload";
-	$self->exec_method($procname);
+	my $self = shift;
+	$AUTOLOAD =~ s/^.*:://;
+	my $procname = "location_$AUTOLOAD";
+	$self->exec_method($procname, @_);
 }
 
 sub save {

Modified: trunk/sql/upgrade/1.2-1.3.sql
===================================================================
--- trunk/sql/upgrade/1.2-1.3.sql	2007-03-09 23:44:20 UTC (rev 872)
+++ trunk/sql/upgrade/1.2-1.3.sql	2007-03-09 23:51:27 UTC (rev 873)
@@ -155,7 +155,7 @@
 
 CREATE OR REPLACE FUNCTION employee_search
 (in_startdatefrom date, in_startdateto date, in_name varchar, in_notes text,
-	in_enddateto date, in_enddatefrom date)
+	in_enddateto date, in_enddatefrom date, in_sales boolean)
 RETURNS SETOF employee_search AS
 $$
 DECLARE


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