Helper class for deliverable invoicing

package org.openpsa.invoices

 Methods

get_invoice ()

Invoice getter

Returns

\org_openpsa_invoices_invoice_dba

process_deliverable (\org_openpsa_sales_salesproject_deliverable_dba $deliverable, $cycle_number)

Parameters

$deliverable

$cycle_number

set_invoice (\org_openpsa_invoices_invoice_dba $invoice)

Invoice setter

Parameters

$invoice

\org_openpsa_invoices_invoice_dba

_create_invoice ($cycle_number)

Parameters

$cycle_number

_probe_invoice ($cycle_number)

Helper function that tries to locate unsent invoices for deliverables in the same salesproject

Example use case: A support contract with multiple hourly rates (defined as deliverables) for different types of work. Instead of sending the customer one invoice per hourly rate per month, one composite invoice for all fees is generated

Parameters

$cycle_number

 Properties

 

\org_openpsa_sales_salesproject_deliverable_dba $_deliverable

The deliverable we're processing
 

\org_openpsa_invoices_invoice_dba $_invoice

The invoice we're working on