Invoice class.
NOTICE: Supports only Doctrine2 database engine.
category | OSS |
---|---|
package | OSS_Invoice |
copyright | Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland |
license | New BSD License |
getCurrentInvoice(\Entities\Customer $customer) : object
If it does not exist then creates one. Returns with an Invoice model object.
see | \global\self::getInvoicesFromThisMonth |
---|
\Entities\Customer
Invoice for customer
object
Invoice modelgetInvoicesBetweenStartEnd(string $minDate, string $maxDate, \Entities\Customer | null $customer) : object
string
string
\Entities\Customer
null
Customer for filtering invoices.
object
Doctrine_CollectiongetInvoicesFromThisMonth(\Entities\Customer | null $customer) : object
Calls getInvoicesBetweenStartEnd() .
see | \global\self::getInvoicesBetweenStartEnd |
---|
\Entities\Customer
null
Customer for filtering invoices.
object
Doctrine_CollectiongetOutstanding(\Entities\Customer $customer, string $maxDate, string $orderBy, string $orderByDir) : object
The Item objects in the collection are sorted by the due date, ascending.
\Entities\Customer
default null if not null then will limit the serach to invoices for a given user
string
default null if not null then will limit the serach to invoices having tax_date <= $pMaxDate, must be in "YYYY-MM-DD" format
string
Order by field
string
Order by direction e.g. ASC, DESC
object
getOutstandingStat(\Entities\Customer $customer) : array
\Entities\Customer
array
getReceivedSumValue(\Entities\Customer | null $customer) : float
\Entities\Customer
null
Customer for filtering invoice
float
getUnpaidInvoices(\Entites\Customer | null $customer) : array
If $customer not null it will filter unpaid invoices for customer.
\Entites\Customer
null
Customer for invoice filtering.
array
getStaticD2EM() : \EntityManager
\EntityManager