Default deliverable cost/price calculator

package org.openpsa.sales

 Methods

generate_invoice_number ()

Returns identifier number for next invoice

Returns

intinvoice number

get_cost ()

Returns the calculated cost

Returns

floatcost value

get_invoice_items (\org_openpsa_invoices_invoice_dba $invoice)

Returns the invoice items that should be written

Parameters

$invoice

Returns

array

get_price ()

Returns the calculated price

Returns

floatprice value

run (\org_openpsa_sales_salesproject_deliverable_dba $deliverable)

Perform the cost/price calculation

Parameters

$deliverable

_find_tasks ()

_generate_invoice_item ($description, $units, \org_openpsa_projects_task_dba $task)

Parameters

$description

$units

$task

 Properties

 

float $_cost

The deliverable's cost
 

\org_openpsa_sales_salesproject_deliverable_dba $_deliverable

The deliverable we're processing
 

float $_price

The deliverable's price