SilverCommerce\Reports\Items\CustomerOrdersItem
Synopsis
class CustomerOrdersItem
extends ViewableData
{
- // members
- private Contact $contact;
- private DateTime $start_date;
- private DateTime $end_date;
- private static array $casting = ;
- // methods
- public void getFirstName()
- public void getSurname()
- public void getEmail()
- public int getInvoiceCount()
- public int getInvoiceTotal()
- public int getInvoiceTax()
- protected DataList getInvoices()
- public void canView()
- public Contact getContact()
- public CustomerOrdersItem setContact()
- public DateTime getStartDate()
- public CustomerOrdersItem setStartDate()
- public DateTime getEndDate()
- public CustomerOrdersItem setEndDate()
Hierarchy
Extends
- SilverStripe\View\ViewableData
Members
private
- $casting
- $contact
—
\SilverCommerce\ContactAdmin\Model\Contact
Customer object assigned to this item - $end_date
—
DateTime
End date for this item - $start_date
—
DateTime
Start date for this item
Methods
protected
- getInvoices() — Get the invoices for this contact (within the set timeframe)
public
- canView()
- getContact() — Get customer object assigned to this item
- getEmail()
- getEndDate() — Get end date for this item
- getFirstName()
- getInvoiceCount() — Get the total number of invoices applicable for this report
- getInvoiceTax() — Get the total number of invoices applicable for this report
- getInvoiceTotal() — Get the total number of invoices applicable for this report
- getStartDate() — Get start date for this item
- getSurname()
- setContact() — Set customer object assigned to this item
- setEndDate() — Set end date for this item
- setStartDate() — Set start date for this item