Class Mage_Sales_Model_Order_Invoice
Enter description here ...
- Varien_Object
- Mage_Core_Model_Abstract
- Mage_Sales_Model_Abstract
- Mage_Sales_Model_Order_Invoice
Package: Mage\Sales
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Sales/Model/Order/Invoice.php
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Sales/Model/Order/Invoice.php
public
|
|
protected
|
|
protected
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
float
|
#
roundPrice( float $price, string $type = 'regular', boolean $negative = false )
Round price considering delta |
public
|
|
public
|
|
public
|
|
public
|
|
public static
array
|
|
public
string
|
|
public
unknown
|
|
public
boolean
|
|
public
|
#
addComment( boolean $comment, boolean $notify = false, mixed $visibleOnFront = false )
Adds comment to invoice with additional possibility to send it to customer via email and show it in customer account |
public
|
|
public
|
|
public
|
#
sendUpdateEmail( boolean $notifyCustomer = true, string $comment = '' )
Send email with invoice update information |
protected
|
|
protected
|
|
public
|
|
protected
|
|
protected
|
getCreatedAtDate(),
getCreatedAtStoreDate()
|
integer |
STATE_OPEN
|
1 |
#
Invoice states |
integer |
STATE_PAID
|
2 |
|
integer |
STATE_CANCELED
|
3 |
|
string |
CAPTURE_ONLINE
|
'online' |
|
string |
CAPTURE_OFFLINE
|
'offline' |
|
string |
NOT_CAPTURE
|
'not_capture' |
|
string |
XML_PATH_EMAIL_TEMPLATE
|
'sales_email/invoice/template' |
|
string |
XML_PATH_EMAIL_GUEST_TEMPLATE
|
'sales_email/invoice/guest_template' |
|
string |
XML_PATH_EMAIL_IDENTITY
|
'sales_email/invoice/identity' |
|
string |
XML_PATH_EMAIL_COPY_TO
|
'sales_email/invoice/copy_to' |
|
string |
XML_PATH_EMAIL_COPY_METHOD
|
'sales_email/invoice/copy_method' |
|
string |
XML_PATH_EMAIL_ENABLED
|
'sales_email/invoice/enabled' |
|
string |
XML_PATH_UPDATE_EMAIL_TEMPLATE
|
'sales_email/invoice_comment/template' |
|
string |
XML_PATH_UPDATE_EMAIL_GUEST_TEMPLATE
|
'sales_email/invoice_comment/guest_template' |
|
string |
XML_PATH_UPDATE_EMAIL_IDENTITY
|
'sales_email/invoice_comment/identity' |
|
string |
XML_PATH_UPDATE_EMAIL_COPY_TO
|
'sales_email/invoice_comment/copy_to' |
|
string |
XML_PATH_UPDATE_EMAIL_COPY_METHOD
|
'sales_email/invoice_comment/copy_method' |
|
string |
XML_PATH_UPDATE_EMAIL_ENABLED
|
'sales_email/invoice_comment/enabled' |
|
string |
REPORT_DATE_TYPE_ORDER_CREATED
|
'order_created' |
|
string |
REPORT_DATE_TYPE_INVOICE_CREATED
|
'invoice_created' |
|
string |
HISTORY_ENTITY_NAME
|
'invoice' |
protected static
mixed
|
$_states |
|
|
protected
mixed
|
$_items |
|
|
protected
mixed
|
$_comments |
|
|
protected
mixed
|
$_order |
|
|
protected
array
|
$_rounders | array() |
#
Calculator instances for delta rounding of prices |
protected
boolean
|
$_saveBeforeDestruct | false |
|
protected
string
|
$_eventPrefix | 'sales_order_invoice' |
#
Prefix of model events names |
protected
string
|
$_eventObject | 'invoice' |
#
Parameter name in event |
protected
boolean
|
$_wasPayCalled | false |
#
Whether the pay() was called |
$_cacheTag,
$_dataSaveAllowed,
$_isObjectNew,
$_resource,
$_resourceCollectionName,
$_resourceName
|