\Estimate
Synopsis
class Estimate
extends Order
{
- // members
- private static array $summary_fields = ;
- // methods
- public void convertToOrder()
- public void getCMSFields()
- public void onBeforeWrite()
- // Inherited methods from Order
- public void QuoteLink()
- public void InvoiceLink()
- public void populateDefaults()
- public void getCMSFields()
- public void getBillingAddress()
- public String getCountryFull()
- public void getDeliveryAddress()
- public String getDeliveryCountryFull()
- public Order markComplete()
- public void hasDiscount()
- public Decimal getSubTotal()
- public Decimal getPostage()
- public Decimal getTaxTotal()
- public Decimal getTotal()
- public string getItemSummary()
- public string getItemSummaryHTML()
- protected void generate_order_number()
- protected void generate_random_string()
- protected void validAccessKey()
- protected void validOrderNumber()
- public DataObject duplicate()
- public void onBeforeDelete()
- public void onBeforeWrite()
- public void onAfterWrite()
- public void providePermissions()
- public Boolean canView()
- public Boolean canCreate()
- public Boolean canEdit()
- public Boolean canChangeStatus()
- public Boolean canDelete()
Hierarchy
Extends
Members
private
- $summary_fields
Methods
public
- convertToOrder() — Factory method to convert this estimate to an order.
- getCMSFields()
- onBeforeWrite()
Inherited from Order
protected
public
- InvoiceLink()
- QuoteLink()
- canChangeStatus() — Only users with EDIT admin rights can view an order
- canCreate() — Anyone can create orders, even guest users
- canDelete() — No one should be able to delete an order once it has been created
- canEdit() — Only users with EDIT admin rights can view an order
- canView() — Only order creators or users with VIEW admin rights can view
- duplicate() — Create a duplicate of this order/estimate as well as duplicating associated items
- getBillingAddress()
- getCMSFields()
- getCountryFull() — Get the rendered name of the billing country, based on the local
- getDeliveryAddress()
- getDeliveryCountryFull() — Get the rendered name of the delivery country, based on the local
- getItemSummary() — Return a list string summarising each item in this order
- getItemSummaryHTML() — Return a list string summarising each item in this order
- getPostage() — Get the postage cost for this order
- getSubTotal() — Total values of items in this order (without any tax)
- getTaxTotal() — Total values of items in this order
- getTotal() — Total of order including postage
- hasDiscount()
- markComplete() — Mark this order as "complete" which generally is intended to mean "paid for, ready for processing".
- onAfterWrite() — API Callback after this object is written to the DB
- onBeforeDelete() — API Callback before this object is removed from to the DB
- onBeforeWrite() — API Callback after this object is written to the DB
- populateDefaults()
- providePermissions()