$_component
$_component : string
The name of the component, e.g. net.nehmer.static. Should be used whenever the component's name is required instead of hardcoding it.
Helper class for deliverable invoicing
Note, that the request data, for ease of use, already contains the L10n Databases of the Component and MidCOM itself located in this class. They are stored as 'l10n' and 'l10n_midcom'. Also available as 'config' is the current component configuration.
$_deliverable : \org_openpsa_sales_salesproject_deliverable_dba
The deliverable we're processing
$_invoice : \org_openpsa_invoices_invoice_dba
The invoice we're working on
get_workflow(string $identifier, array $options = array()) : \midcom\workflow\dialog
string | $identifier | |
array | $options |
process_deliverable(\org_openpsa_sales_salesproject_deliverable_dba $deliverable, $cycle_number = null)
\org_openpsa_sales_salesproject_deliverable_dba | $deliverable | |
$cycle_number |
get_invoice() : \org_openpsa_invoices_invoice_dba
Invoice getter
set_invoice(\org_openpsa_invoices_invoice_dba $invoice)
Invoice setter
\org_openpsa_invoices_invoice_dba | $invoice |
_probe_invoice( $cycle_number)
Try 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
$cycle_number |