MidCOM wrapped class for access to deliverables

package org.openpsa.sales

 Methods

__get ($property)

Parameters

$property

_on_created ()

_on_creating ()

_on_deleted ()

_on_updated ()

_on_updating ()

calculate_price ($update)

Parameters

$update

copyFromProduct (\org_openpsa_products_product_dba $product)

helper function to copy some defaults from the given product to the deliverable

Parameters

$product

\org_openpsa_products_product_dba

decline ()

deliver ($update_deliveries)

Parameters

$update_deliveries

get_at_entries ()

get_status ()

invoice ()

order ()

update_units (integer $task_id, array $hours)

Helper function to recalculate the deliverable's unit trackers based on data form a (recently updated) task

Parameters

$task_id

integerThe ID of the task that requested the update

$hours

arrayThe task's hours

_generate_html ()

_update_parent ()

 Properties

 

mixed $__mgdschema_class_name__

 

mixed $__midcom_class_name__

 

string $_deliverable_html

Combination property containing HTML depiction of the deliverable
 

boolean $_update_parent_on_save

Flag that controls if parent' price and cost need re-caculated if the current object is saved.

 Constants

 

STATUS_DECLINED

 

STATUS_DELIVERED

 

STATUS_INVOICED

 

STATUS_NEW

 

STATUS_ORDERED

 

STATUS_PROPOSED

 

STATUS_STARTED