MidCOM wrapped base class, keep logic here

package org.openpsa.sales

 Methods

__get ($property)

Parameters

$property

_on_creating ()

_on_loaded ()

_on_updated ()

_on_updating ()

calculate_price ()

Calculates the prices of deliverables

and adds them up to the salesproject value

generate_salesproject_number ()

Static

get_actions ($limit_to_person)

Fills the next and previous action properties based on the confirmed relatedto links

If optional argument is set only considers actions where said person is involved, NOT IMPLEMENTED

todo Implement $limit_to_person support

Parameters

$limit_to_person

get_customer ()

get_members ()

Populates contacts as resources lists

get_project ()

mark_delivered ()

Marks the salesproject as delivered if no active or pending deliverables are left

mark_invoiced ()

Marks the salesproject as invoiced if no pending deliverables are left

refresh ()

_pid_to_obj ($pid)

Parameters

$pid

_sort_action_by_time ($a, $b)

For sorting arrays in get_actions method
Static

Parameters

$a

$b

_sort_action_by_time_reverse ($a, $b)

For sorting arrays in get_actions method
Static

Parameters

$a

$b

 Properties

 

mixed $__mgdschema_class_name__

 

mixed $__midcom_class_name__

 

mixed $autodelete_dependents

 

mixed $next_action

These two are filled correctly as arrays with the get_actions method
 

mixed $prev_action

These two are filled correctly as arrays with the get_actions method
 

mixed $_contacts

Shorthand access for contact members

 Constants

 

ROLE_MEMBER

 

STATUS_ACTIVE

 

STATUS_CANCELED

 

STATUS_DELIVERED

 

STATUS_INVOICED

 

STATUS_LOST

 

STATUS_WON