Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
|
Callback
Support |
If you live in USA, UK, Canada, Australia or New
Zealand, you can leave us details on your question and request us to call you back and discuss
them with you personally (charges apply). |
Click Here
|
Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
|
Help with using correct filter for sp_TimeByJobDetail |
Author |
Message |
rick |
|
Group | : Members |
Posts | : 16 |
Joined | : 2006-04-20 |
|
Profile |
|
Posted : 2006-11-09 05:35:01 |
I am trying to get the billed and/or unbilled time for a customer. When I try the following I get data for all customers:
sp_report TimeByJobDetail show ReportTitle, RowType, Text, Blank, Date, Name, BillingStatus, Duration, DurationHours parameters DateFrom = {d'2006-01-01'}
When I try using a filter I do not get any data:
sp_report TimeByJobDetail show ReportTitle, RowType, Text, Blank, Date, Name, BillingStatus, Duration, DurationHours parameters DateFrom = {d'2006-01-01'}, EntityFilterFullNameWithChildren = '50-000 Apache Corporation:50-824 WD 40A ScadaPack Panel'
When I try using "AccountFilterFullNameWithChildren" i get an error saying that this is not a valid parameter.
So I know that I am not doing the filter correctly.
Can you help me out and tell me what the correct query would be?
Thanks |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2006-11-09 11:54:11 |
The EntityFilterFullNames filter is a Multi Lookup, but the EntityFilterFullNameWithChildren filter is a Single Lookup. For example:
sp_report TimeByJobDetail show ReportTitle, RowType, Text, Blank, Date, Name, BillingStatus, Duration, DurationHours parameters DateFrom = {d'2006-01-01'}, EntityFilterFullNames = 'Gregg O. Schneider', 'Elizabeth N. Mason'
sp_report TimeByJobDetail show ReportTitle, RowType, Text, Blank, Date, Name, BillingStatus, Duration, DurationHours parameters DateFrom = {d'2006-01-01'}, EntityFilterFullNameWithChildren = 'Gregg O. Schneider'
Use:
sp_parameters TimeByJobDetail
to see all the filter parameters for the report and
sp_reportcolumns TimeByJobDetail
to see all the report columns in the report. |
|
|
|
rick |
|
Group | : Members |
Posts | : 16 |
Joined | : 2006-04-20 |
|
Profile |
|
Posted : 2006-11-10 03:35:39 |
Tom,
Thanks for the information. I guess that I am using the wrong report. From the sp_TimeByJobDetails I can get the time for each employee but I would have to know what employees worked on a project.
What I need is the billed and unbilled time for a job so I guess that I need to use sp_UnbilledCostsByJob. This would give me all of the employees who had time to a project and if the time was billed or unbilled.
Is this correct? I am still learning what report to run to get certain information
Thanks |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2006-11-10 09:09:06 |
|
|
|
rick |
|
Group | : Members |
Posts | : 16 |
Joined | : 2006-04-20 |
|
Profile |
|
Posted : 2006-11-11 00:10:32 |
Tom,
I have looked at the the sp_report information and the sp_parameters, sp_reportcolumns.
When I run the TimeByJobDetail report in QB and I use the 'billing status' filter and the 'customer:job' filter i get the data that i am looking for. My problem is that these filters do not showup as options when i run the sp_parameters and the sp_reportcolumns.
Does the reports in QB have extra filters that are not available in the sp_reports?
|
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2006-11-11 08:43:44 |
You can use the standard SQL WHERE clause in reports to do further filtering, for example:
sp_report SalesByItemDetail show Account, Text, Blank, TxnType, Date, RefNumber, Memo, Name, Quantity, UnitPrice, Amount parameters DateMacro = 'LastQuarter' where Account = 'Maintenance Renewal' |
|
|
|
|