Class Mage_Sales_Model_Order_Creditmemo
Order creditmemo model
- Varien_Object
- Mage_Core_Model_Abstract
- Mage_Sales_Model_Abstract
- Mage_Sales_Model_Order_Creditmemo
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/Creditmemo.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/Creditmemo.php
protected
|
|
protected
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
float
|
#
roundPrice( float $price, string $type = 'regular', boolean $negative = false )
Round price considering delta |
public
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public static
array
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
#
addComment( boolean $comment, boolean $notify = false, mixed $visibleOnFront = false )
Adds comment to credit memo 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 creditmemo update information |
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
#
getFilteredCollectionItems( array|null $filter = null )
Get creditmemos collection filtered by $filter |
getCreatedAtDate(),
getCreatedAtStoreDate()
|
integer |
STATE_OPEN
|
1 |
|
integer |
STATE_REFUNDED
|
2 |
|
integer |
STATE_CANCELED
|
3 |
|
string |
XML_PATH_EMAIL_TEMPLATE
|
'sales_email/creditmemo/template' |
|
string |
XML_PATH_EMAIL_GUEST_TEMPLATE
|
'sales_email/creditmemo/guest_template' |
|
string |
XML_PATH_EMAIL_IDENTITY
|
'sales_email/creditmemo/identity' |
|
string |
XML_PATH_EMAIL_COPY_TO
|
'sales_email/creditmemo/copy_to' |
|
string |
XML_PATH_EMAIL_COPY_METHOD
|
'sales_email/creditmemo/copy_method' |
|
string |
XML_PATH_EMAIL_ENABLED
|
'sales_email/creditmemo/enabled' |
|
string |
XML_PATH_UPDATE_EMAIL_TEMPLATE
|
'sales_email/creditmemo_comment/template' |
|
string |
XML_PATH_UPDATE_EMAIL_GUEST_TEMPLATE
|
'sales_email/creditmemo_comment/guest_template' |
|
string |
XML_PATH_UPDATE_EMAIL_IDENTITY
|
'sales_email/creditmemo_comment/identity' |
|
string |
XML_PATH_UPDATE_EMAIL_COPY_TO
|
'sales_email/creditmemo_comment/copy_to' |
|
string |
XML_PATH_UPDATE_EMAIL_COPY_METHOD
|
'sales_email/creditmemo_comment/copy_method' |
|
string |
XML_PATH_UPDATE_EMAIL_ENABLED
|
'sales_email/creditmemo_comment/enabled' |
|
string |
REPORT_DATE_TYPE_ORDER_CREATED
|
'order_created' |
|
string |
REPORT_DATE_TYPE_REFUND_CREATED
|
'refund_created' |
|
string |
HISTORY_ENTITY_NAME
|
'creditmemo' |
protected static
mixed
|
$_states |
|
|
protected
mixed
|
$_items |
|
|
protected
mixed
|
$_order |
|
|
protected
mixed
|
$_comments |
|
|
protected
array
|
$_calculators | array() |
#
Calculator instances for delta rounding of prices |
protected
string
|
$_eventPrefix | 'sales_order_creditmemo' |
#
Prefix of model events names |
protected
string
|
$_eventObject | 'creditmemo' |
#
Parameter name in event |
$_cacheTag,
$_dataSaveAllowed,
$_isObjectNew,
$_resource,
$_resourceCollectionName,
$_resourceName
|