|
Defining the objects
Because invoices, time "tickets," and projects are all
predicated to some extent on clients, you first create the
Client object. Some incarnation of a client or customer
object is present in most applications, so the structure
presented in Figure 1 is probably a familiar concept.
Click here for larger image
Figure 1. The Client object structure
This
Client object has the standard informational fields,
such as an address and contact information, as well as an
extra field-rate. The rate property allows users to set
different rates for different clients.
Your next object is the
Project, and its structure is
represented in Figure 2.

Figure 2. The Project object structure
The
Project object is associated with its owner
through the client_id property. It also has a
code property that can be used to store a
client's internal reference or project number.
The
Ticket object, depicted in Figure 3, is the time-
tracking object. It contains the time slips, or tickets,
that users submit using the AIR client.
Click here for larger image
Figure 3. The Ticket object structure
The
Ticket is the most complex object so far, and it
contains several key attributes to help you store, classify,
and present them:
account_id: Links a ticket to a usercategory: Used to track how time is spent-for example, development, on-site, or researchstart_time: A UNIX time stamp indicating when the ticket was first openedend_time: A UNIX time stamp indicating when the ticket was last closed
Finally, the
Invoice object represents the invoices that
will be generated. Its structure is shown in Figure 4.

Figure 4. The Invoice object structure
| Comments: | ||
No Messages FoundYou can post questions/corrections/feedback here
| ||
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly. | ||


