Interface for deliverable invoicing

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

\org_openpsa_invoices_invoice_dbaThe invoice we're working on

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