[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Employee search question for 1.3
- Subject: Re: Employee search question for 1.3
- From: John Locke <..hidden..>
- Date: Mon, 20 Jun 2011 12:59:35 -0700
Ok. Ran across a different issue related to the new tax account stuff,
that might be related.
LedgerSMB::DBObject provides an object wrapper around stored functions
-- when called with a method that is not populated in the class
definition, it looks for a stored function of that name, and then parses
the parameters that function takes and populates a query with those
properties on the object itself.
The problem is when there are multiple functions with the same name, but
a different parameter signature. I had two different account__save
functions in my database, and the DBObject was picking the old one with
fewer parameters. After deleting that, I got the new updated function.
And of course, since the signature had changed, CREATE OR UPDATE
FUNCTION didn't delete the old one.
So our upgrade functionality does need to delete any functions that have
a changed signature.
I'm guessing that's why this employee search isn't working for me -- I
don't have two employee__search functions, but I am seeing a handful of
other functions that have two different signatures...
Cheers,
John Locke
http://freelock.com
On 06/20/2011 12:02 PM, John Locke wrote:
> Hi, Chris,
>
> The current defaults look reasonable to me... possibly adding the email
> field. If this can be changed in the database (as it sounds like you've
> set up), that should be fine to start.
>
> However, I'm not getting correct data when I do a search... Maybe this
> is an update issue -- I ran the upgrade/3297-employee_changes.sql and
> upgrade/3299-person_functions.sql scripts, but the result of a search is
> a table with Number, Startdate and Role showing up but all the rest of
> the columns blank. And Number is blank on the most recent employee I
> added...
>
> Cheers,
> John Locke
> http://www.freelock.com
>
> On 06/20/2011 07:14 AM, Chris Travers wrote:
>> I have set up the search function to allow for the menu to specify
>> which column including checkboxes are to be checked.
>>
>> For those using 1.3, can you take a look and tell me which checkboxes
>> you think should be checked by default?
>>
>> Best wishes,
>> Chris Travers
>>
>> ------------------------------------------------------------------------------
>> EditLive Enterprise is the world's most technically advanced content
>> authoring tool. Experience the power of Track Changes, Inline Image
>> Editing and ensure content is compliant with Accessibility Checking.
>> http://p.sf.net/sfu/ephox-dev2dev
>> _______________________________________________
>> Ledger-smb-devel mailing list
>> ..hidden..
>> https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> Ledger-smb-devel mailing list
> ..hidden..
> https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel