JobInfo() ![]()
Returns information about the currently selected job card.
Syntax
JobInfo(<nOp>, [<nMode>]) --> xResult
Arguments
<nOp> --> The type of information to request back.
<nMode> --> additional data in relation to the information type, such as the stage number.
Returns
Returns the requested information. A value of -1 is returned if an error condition arises.
Description
This function returns information about the currently selected job card. The SMJOBS table must be open before calling this function. The information request and return data is documented in the following table.
|
nOp |
Description |
|
1 |
Total of all job charges ex taxes. |
|
2 |
Total of all job charges including taxes. |
|
3 |
Total profit on job. |
|
4 |
Total costs excluding all taxes. |
|
5 |
Total costs including related taxes. |
|
6 |
Work-in-progress cost (work not yet charged). |
|
7 |
Job is being tax flag. TRUE = taxed. |
|
8 |
Total tax assigned to job. |
|
9 |
Billing profit. This is the difference between total billed to date and total costs. It is exclusive of tax. |
|
10 |
Stock material costs ex tax. |
|
11 |
Total value of all invoices generated for this job including tax. |
|
12 |
Total value of all invoices generated for this job excluding tax. |
|
13 |
Billing remaining to be performed. |
|
14 |
Total time/labour costs ex tax. |
|
15 |
Total of all assigned expenses. |
|
16 |
Total labour/time charges ex tax. |
|
17 |
Total of all user charges (Some of these charges may include tax.) |
|
18 |
Total stock/materials charged ex tax. |
|
19 |
Total value of labour/time inclusive of tax. |
|
20 |
Total value of user charges inclusive of tax. |
|
21 |
Total inclusive tax apportioned to job. |
|
22 |
Total user charges ex tax. |
|
23 |
Adjusted cost caused by direct job invoice alteration after creation, ex tax. |
|
24 |
Adjusted charge total caused by direct job invoice alteration after creation. |
|
25 |
Adjusted tax due to direct editing of job invoice after creation. |
|
26 |
Adjusted charge total due to direct editing of job invoices after creation, ex tax. |
|
27 |
Total user charges invoiced. |
|
28 |
Total of user charged tax that is inclusive. |
|
29 |
Total remaining to charge/invoice. |
|
30 |
Total tax on periodic billing items billed. |
|
31 |
Total inclusive tax on periodic billing items. |
|
32 |
Adjusted inclusive tax due to direct editing of job invoice after creation. |
|
33 |
The stage name. Assign nMode the stage number to query. |
|
34 |
Total charges assigned to stage. Assign nMode the stage number to query. |
|
35 |
Total costs assigned to stage. Assign nMode the stage number to query. |
|
36 |
Total expenses assigned to stage. Assign nMode the stage number to query. |
|
37 |
Total labour/time assigned to stage. Assign nMode the stage number to query. |
|
38 |
Total stock/materials assigned to stage. Assign nMode the stage number to query. |
|
39 |
Total percentage of stock/materials billed/invoiced relating to stage. Assign nMode the stage number to query. |
|
40 |
Total percentage of labour/time billed relating to stage. Assign nMode the stage number to query. |
|
41 |
The date the stage was started. Assign nMode the stage number to query. |
|
42 |
The date the stage was completed. Assign nMode the stage number to query. |
|
43 |
The estimated labour/time component of the stage. Assign nMode the stage number to query. |
|
44 |
The estimated stock/materials component of the stage. Assign nMode the stage number to query. |
|
45 |
The estimated expenses to be allocated to the stage. Assign nMode the stage number to query. |
|
46 |
The estimated total costs to be assigned to the stage. Assign nMode the stage number to query. |
|
47 |
The estimated profit margin of the stage. Assign nMode the stage number to query. |
____________________________
Related Topics: