diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Widget/Chooser.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Widget/Chooser.php index a11cb3156cb..0b9bafee112 100644 --- a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Widget/Chooser.php +++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Widget/Chooser.php @@ -125,6 +125,7 @@ protected function _getModelAttributeByEntityId($modelType, $attributeName, $ent } return $result; } + /** * Category Tree node onClick listener js function * diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Items/Abstract.php b/app/code/core/Mage/Adminhtml/Block/Sales/Items/Abstract.php index f2648d65973..a5c61fa6648 100644 --- a/app/code/core/Mage/Adminhtml/Block/Sales/Items/Abstract.php +++ b/app/code/core/Mage/Adminhtml/Block/Sales/Items/Abstract.php @@ -551,6 +551,7 @@ public function canReturnItemToStock($item=null) { } return $canReturnToStock; } + /** * Whether to show 'Return to stock' column for item parent * @param Mage_Sales_Model_Order_Creditmemo_Item $item diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Reorder.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Reorder.php index 55bf6d8594c..ac06504ee04 100644 --- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Reorder.php +++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Reorder.php @@ -74,6 +74,7 @@ public function getLastOrder() return false; } + /** * Retrieve item collection * diff --git a/app/code/core/Mage/Adminhtml/Block/System/Convert/Profile/Run.php b/app/code/core/Mage/Adminhtml/Block/System/Convert/Profile/Run.php index 25b103f4623..c675cef26fe 100644 --- a/app/code/core/Mage/Adminhtml/Block/System/Convert/Profile/Run.php +++ b/app/code/core/Mage/Adminhtml/Block/System/Convert/Profile/Run.php @@ -106,6 +106,7 @@ protected function _prepareBatchModel() $this->_batchModelPrepared = true; return $this; } + /** * Return a batch model instance * @return Mage_Dataflow_Model_Batch @@ -114,6 +115,7 @@ protected function _getBatchModel() { return $this->_batchModel; } + /** * Return a batch model config JSON * @return string @@ -124,6 +126,7 @@ public function getBatchConfigJson() $this->getBatchConfig() ); } + /** * Encoding to JSON * @param string $source @@ -133,6 +136,7 @@ public function jsonEncode($source) { return Mage::helper('core')->jsonEncode($source); } + /** * Get a profile * @return object @@ -141,6 +145,7 @@ public function getProfile() { return Mage::registry('current_convert_profile'); } + /** * Generating form key * @return string @@ -149,6 +154,7 @@ public function getFormKey() { return Mage::getSingleton('core/session')->getFormKey(); } + /** * Return batch model and initialize it if need * @return Mage_Dataflow_Model_Batch @@ -158,6 +164,7 @@ public function getBatchModel() return $this->_prepareBatchModel() ->_getBatchModel(); } + /** * Generating exceptions data * @return array diff --git a/app/code/core/Mage/Adminhtml/Block/Tag/Customer/Grid.php b/app/code/core/Mage/Adminhtml/Block/Tag/Customer/Grid.php index 2fe84212654..03ec50136e4 100644 --- a/app/code/core/Mage/Adminhtml/Block/Tag/Customer/Grid.php +++ b/app/code/core/Mage/Adminhtml/Block/Tag/Customer/Grid.php @@ -42,6 +42,7 @@ public function __construct() $this->setDefaultDir('ASC'); $this->setUseAjax(true); } + /* * Retrieves Grid Url * diff --git a/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Renderer/Checkbox.php b/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Renderer/Checkbox.php index 95fda98f3db..f2df8428819 100644 --- a/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Renderer/Checkbox.php +++ b/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Renderer/Checkbox.php @@ -49,6 +49,7 @@ public function getValues() } return $this->_values; } + /** * Renders grid column * diff --git a/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Renderer/Radio.php b/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Renderer/Radio.php index 1cb5ca87ee3..290510b0a76 100644 --- a/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Renderer/Radio.php +++ b/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Renderer/Radio.php @@ -49,6 +49,7 @@ public function getValues() } return $this->_values; } + /** * Renders grid column * diff --git a/app/code/core/Mage/Adminhtml/controllers/Catalog/CategoryController.php b/app/code/core/Mage/Adminhtml/controllers/Catalog/CategoryController.php index 34dee0d26ef..3c68483a40d 100644 --- a/app/code/core/Mage/Adminhtml/controllers/Catalog/CategoryController.php +++ b/app/code/core/Mage/Adminhtml/controllers/Catalog/CategoryController.php @@ -77,6 +77,7 @@ protected function _initCategory($getRootInstead = false) Mage::getSingleton('cms/wysiwyg_config')->setStoreId($this->getRequest()->getParam('store')); return $category; } + /** * Catalog categories index action */ diff --git a/app/code/core/Mage/Adminhtml/controllers/Customer/GroupController.php b/app/code/core/Mage/Adminhtml/controllers/Customer/GroupController.php index 13a1f7a5959..6e7906430bd 100644 --- a/app/code/core/Mage/Adminhtml/controllers/Customer/GroupController.php +++ b/app/code/core/Mage/Adminhtml/controllers/Customer/GroupController.php @@ -55,6 +55,7 @@ protected function _initGroup() } } + /** * Customer groups list. */ diff --git a/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php b/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php index 03ca0bb20ca..6392d06fb3d 100644 --- a/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php +++ b/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php @@ -155,6 +155,7 @@ public function emailAction() } $this->_redirect('*/sales_order/view', array('order_id' => $order->getId())); } + /** * Cancel order */ diff --git a/app/code/core/Mage/Backup/Model/Resource/Helper/Mysql4.php b/app/code/core/Mage/Backup/Model/Resource/Helper/Mysql4.php index 48760bb908c..b54eb0041bd 100644 --- a/app/code/core/Mage/Backup/Model/Resource/Helper/Mysql4.php +++ b/app/code/core/Mage/Backup/Model/Resource/Helper/Mysql4.php @@ -110,6 +110,7 @@ public function getTableCreateScript($tableName, $addDropIfExists = false) return $script; } + /** * Retrieve SQL fragment for create table * @@ -156,6 +157,7 @@ public function getTableCreateSql($tableName, $withForeignKeys = false) return $sql . ';'; } + /** * Returns SQL header data, move from original resource model * @@ -267,6 +269,7 @@ public function getPartInsertSql($tableName, $count = null, $offset = null) return $sql; } + /** * Return table data SQL insert * @@ -277,6 +280,7 @@ public function getInsertSql($tableName) { return $this->getPartInsertSql($tableName); } + /** * Quote Table Row * diff --git a/app/code/core/Mage/Bundle/Model/Price/Index.php b/app/code/core/Mage/Bundle/Model/Price/Index.php index eb57a8fa1ce..950a6919fd1 100644 --- a/app/code/core/Mage/Bundle/Model/Price/Index.php +++ b/app/code/core/Mage/Bundle/Model/Price/Index.php @@ -34,10 +34,6 @@ * @method Mage_Bundle_Model_Price_Index setWebsiteId(int $value) * @method int getCustomerGroupId() * @method Mage_Bundle_Model_Price_Index setCustomerGroupId(int $value) - * @method float getMinPrice() - * @method Mage_Bundle_Model_Price_Index setMinPrice(float $value) - * @method float getMaxPrice() - * @method Mage_Bundle_Model_Price_Index setMaxPrice(float $value) * * @category Mage * @package Mage_Bundle @@ -151,4 +147,36 @@ public function addPriceIndexToProduct($product) } return $this; } + + /** + * @return float + */ + public function getMinPrice() + { + return (float) $this->_getData('min_price'); + } + + /** + * @return float + */ + public function getMaxPrice() + { + return (float) $this->_getData('max_price'); + } + + /** + * @return $this + */ + public function setMinPrice($value) + { + return $this->setData('min_price', (float) $value); + } + + /** + * @return $this + */ + public function setMaxPrice($value) + { + return $this->setData('max_price', (float) $value); + } } diff --git a/app/code/core/Mage/Bundle/Model/Selection.php b/app/code/core/Mage/Bundle/Model/Selection.php index 92b358dbf96..18e3c1ce7d6 100644 --- a/app/code/core/Mage/Bundle/Model/Selection.php +++ b/app/code/core/Mage/Bundle/Model/Selection.php @@ -47,10 +47,6 @@ * @method int getSelectionId() * @method int getSelectionPriceType() * @method $this setSelectionPriceType(int $value) - * @method float getSelectionPriceValue() - * @method $this setSelectionPriceValue(float $value) - * @method float getSelectionQty() - * @method $this setSelectionQty(float $value) * @method int getWebsiteId() * @method $this setWebsiteId(int $value) * @method $this unsSelectionPriceValue() @@ -92,4 +88,36 @@ protected function _afterSave() } parent::_afterSave(); } + + /** + * @return float + */ + public function getSelectionPriceValue() + { + return (float) $this->_getData('selection_price_value'); + } + + /** + * @return float + */ + public function getSelectionQty() + { + return (float) $this->_getData('selection_qty'); + } + + /** + * @return $this + */ + public function setSelectionPriceValue($value) + { + return $this->setData('selection_price_value', (float) $value); + } + + /** + * @return $this + */ + public function setSelectionQty($value) + { + return $this->setData('selection_qty', (float) $value); + } } diff --git a/app/code/core/Mage/Bundle/controllers/Adminhtml/Bundle/SelectionController.php b/app/code/core/Mage/Bundle/controllers/Adminhtml/Bundle/SelectionController.php index 3f930753627..2a34f4b5a6b 100644 --- a/app/code/core/Mage/Bundle/controllers/Adminhtml/Bundle/SelectionController.php +++ b/app/code/core/Mage/Bundle/controllers/Adminhtml/Bundle/SelectionController.php @@ -67,6 +67,7 @@ public function gridAction() ->toHtml() ); } + /** * Check for is allowed * diff --git a/app/code/core/Mage/Catalog/Helper/Data.php b/app/code/core/Mage/Catalog/Helper/Data.php index d860d721e9f..58bbf3b90c2 100644 --- a/app/code/core/Mage/Catalog/Helper/Data.php +++ b/app/code/core/Mage/Catalog/Helper/Data.php @@ -300,6 +300,7 @@ public function getOldFieldMap() } return (array) $node; } + /** * Check if Minimum Advertised Price is enabled * diff --git a/app/code/core/Mage/Catalog/Model/Product.php b/app/code/core/Mage/Catalog/Model/Product.php index 5dd0a324793..31c5e603346 100644 --- a/app/code/core/Mage/Catalog/Model/Product.php +++ b/app/code/core/Mage/Catalog/Model/Product.php @@ -42,7 +42,6 @@ * @method int getAttributeSetId() * @method $this setAttributeSetId(int $value) * - * @method float getBaseRowTotal() * @method array getBundleOptionsData() * @method $this setBundleOptionsData(array $value) * @method array getBundleSelectionsData() @@ -55,7 +54,6 @@ * @method bool getCanSaveConfigurableAttributes() * @method bool getCanShowPrice() * @method bool getCategoriesReadonly() - * @method $this setCartQty(float $value) * @method $this setCategory(Mage_Catalog_Model_Category $value) * @method bool hasCategoryIds() * @method array getChildAttributeLabelMapping() @@ -67,12 +65,9 @@ * @method array getConfigurableAttributesData() * @method array getConfigurableImagesFallbackArray() * @method $this setConfigurableImagesFallbackArray(array $value) - * @method float getConfigurablePrice() - * @method $this setConfigurablePrice(float $value) * @method array getConfigurableProductsData() * @method bool getConfigureMode() * @method $this setConfigureMode(bool $value) - * @method float getCost() * @method string getCustomLayoutUpdate() * @method bool hasCustomerGroupId() * @method int getCustomerGroupId() @@ -170,7 +165,6 @@ * @method int getPopularity() * @method string getPosition() * @method bool hasPreconfiguredValues() - * @method $this setPrice(float $value) * @method int getPriceType() * @method int getProductId() * @method array getProductOptions() @@ -178,12 +172,7 @@ * @method $this setProductTags(Mage_Tag_Model_Resource_Tag_Collection $value) * @method $this setProductUrl(string $value) * - * @method $this setQuoteItemPrice(float $value) - * @method $this setQuoteItemRowTotal(float $value) * @method $this setQuoteItemQty(int $value) - * @method $this setQuoteQty(float $value) - * @method float getQty() - * @method $this setQty(float $value) * * @method $this setRatingSummary(Varien_Object $summary) * @method $this setRatingVotes(Mage_Rating_Model_Resource_Rating_Option_Vote_Collection $value) @@ -205,8 +194,7 @@ * @method bool getSelectionCanChangeQty() * @method string getSelectionId() * @method string getSelectionPriceType() - * @method float getSelectionPriceValue() - * @method float getSelectionQty() + * @method string getShipmentType() * @method string getShortDescription() * @method $this setShortDescription(string $value) @@ -230,8 +218,6 @@ * * @method int getTaxClassId() * @method string getThumbnail() - * @method float getTaxPercent() - * @method $this setTaxPercent(float $value) * @method $this setTypeId(int $value) * @method bool getTypeHasOptions() * @method $this setTypeHasOptions(bool $value) @@ -1419,6 +1405,7 @@ public function isSuperConfig() { return $this->isConfigurable(); } + /** * Check is product grouped * @@ -2350,4 +2337,124 @@ public function getEvent() return $event; } + + /** + * @return float + */ + public function getBaseRowTotal() + { + return (float) $this->_getData('base_row_total'); + } + + /** + * @return float + */ + public function getConfigurablePrice() + { + return (float) $this->_getData('configurable_price'); + } + + /** + * @return float + */ + public function getCost() + { + return (float) $this->_getData('cost'); + } + + /** + * @return float + */ + public function getQty() + { + return (float) $this->_getData('qty'); + } + + /** + * @return float + */ + public function getSelectionPriceValue() + { + return (float) $this->_getData('selection_price_value'); + } + + /** + * @return float + */ + public function getSelectionQty() + { + return (float) $this->_getData('selection_qty'); + } + + /** + * @return float + */ + public function getTaxPercent() + { + return (float) $this->_getData('tax_percent'); + } + + /** + * @return $this + */ + public function setCartQty($value) + { + return $this->setData('cart_qty', (float) $value); + } + + /** + * @return $this + */ + public function setConfigurablePrice($value) + { + return $this->setData('configurable_price', (float) $value); + } + + /** + * @return $this + */ + public function setPrice($value) + { + return $this->setData('price', (float) $value); + } + + /** + * @return $this + */ + public function setQuoteItemPrice($value) + { + return $this->setData('quote_item_price', (float) $value); + } + + /** + * @return $this + */ + public function setQuoteItemRowTotal($value) + { + return $this->setData('quote_item_row_total', (float) $value); + } + + /** + * @return $this + */ + public function setQuoteQty($value) + { + return $this->setData('quote_qty', (float) $value); + } + + /** + * @return $this + */ + public function setQty($value) + { + return $this->setData('qty', (float) $value); + } + + /** + * @return $this + */ + public function setTaxPercent($value) + { + return $this->setData('tax_percent', (float) $value); + } } diff --git a/app/code/core/Mage/Catalog/Model/Product/Indexer/Price.php b/app/code/core/Mage/Catalog/Model/Product/Indexer/Price.php index d6453977c59..32f9d843d86 100644 --- a/app/code/core/Mage/Catalog/Model/Product/Indexer/Price.php +++ b/app/code/core/Mage/Catalog/Model/Product/Indexer/Price.php @@ -35,16 +35,6 @@ * @method Mage_Catalog_Model_Product_Indexer_Price setWebsiteId(int $value) * @method int getTaxClassId() * @method Mage_Catalog_Model_Product_Indexer_Price setTaxClassId(int $value) - * @method float getPrice() - * @method Mage_Catalog_Model_Product_Indexer_Price setPrice(float $value) - * @method float getFinalPrice() - * @method Mage_Catalog_Model_Product_Indexer_Price setFinalPrice(float $value) - * @method float getMinPrice() - * @method Mage_Catalog_Model_Product_Indexer_Price setMinPrice(float $value) - * @method float getMaxPrice() - * @method Mage_Catalog_Model_Product_Indexer_Price setMaxPrice(float $value) - * @method float getTierPrice() - * @method Mage_Catalog_Model_Product_Indexer_Price setTierPrice(float $value) * * @category Mage * @package Mage_Catalog @@ -303,4 +293,84 @@ protected function _processEvent(Mage_Index_Model_Event $event) $this->callEventHandler($event); } } + + /** + * @return float + */ + public function getPrice() + { + return (float) $this->_getData('price'); + } + + /** + * @return float + */ + public function getFinalPrice() + { + return (float) $this->_getData('final_price'); + } + + /** + * @return float + */ + public function getMinPrice() + { + return (float) $this->_getData('min_price'); + } + + /** + * @return float + */ + public function getMaxPrice() + { + return (float) $this->_getData('max_price'); + } + + /** + * @return float + */ + public function getTierPrice() + { + return (float) $this->_getData('tier_price'); + } + + /** + * @return $this + */ + public function setPrice($value) + { + return $this->setData('price', (float) $value); + } + + /** + * @return $this + */ + public function setFinalPrice($value) + { + return $this->setData('final_price', (float) $value); + } + + /** + * @return $this + */ + public function setMinPrice($value) + { + return $this->setData('min_price', (float) $value); + } + + /** + * @return $this + */ + public function setMaxPrice($value) + { + return $this->setData('max_price', (float) $value); + } + + /** + * @return $this + */ + public function setTierPrice($value) + { + return $this->setData('tier_price', (float) $value); + } } diff --git a/app/code/core/Mage/Catalog/Model/Product/Option.php b/app/code/core/Mage/Catalog/Model/Product/Option.php index db86e12e826..c8bb13e7e95 100644 --- a/app/code/core/Mage/Catalog/Model/Product/Option.php +++ b/app/code/core/Mage/Catalog/Model/Product/Option.php @@ -52,7 +52,6 @@ * @method int getSortOrder() * @method $this setSortOrder(int $value) * @method int getStoreId() - * @method float getStorePrice() * @method string getStoreTitle() * @method string getTitle() * @method string getType() @@ -601,4 +600,12 @@ public function isMultipleType() } return false; } + + /** + * @return float + */ + public function getStorePrice() + { + return (float) $this->_getData('store_price'); + } } diff --git a/app/code/core/Mage/Catalog/Model/Product/Option/Value.php b/app/code/core/Mage/Catalog/Model/Product/Option/Value.php index f1419135c20..0fc8349f09e 100644 --- a/app/code/core/Mage/Catalog/Model/Product/Option/Value.php +++ b/app/code/core/Mage/Catalog/Model/Product/Option/Value.php @@ -38,7 +38,6 @@ * @method $this setSku(string $value) * @method int getSortOrder() * @method $this setSortOrder(int $value) - * @method float getStorePrice() * @method string getStoreTitle() * @method string getTitle() * @@ -267,4 +266,12 @@ public function duplicate($oldOptionId, $newOptionId) $this->getResource()->duplicate($this, $oldOptionId, $newOptionId); return $this; } + + /** + * @return float + */ + public function getStorePrice() + { + return (float) $this->_getData('store_price'); + } } diff --git a/app/code/core/Mage/Catalog/Model/Product/Type/Abstract.php b/app/code/core/Mage/Catalog/Model/Product/Type/Abstract.php index 6351912ef43..6ada6ce3e7e 100644 --- a/app/code/core/Mage/Catalog/Model/Product/Type/Abstract.php +++ b/app/code/core/Mage/Catalog/Model/Product/Type/Abstract.php @@ -767,6 +767,7 @@ public function getOptionSku($product = null, $sku = '') } return $sku; } + /** * Default action to get weight of product * diff --git a/app/code/core/Mage/Catalog/Model/Product/Visibility.php b/app/code/core/Mage/Catalog/Model/Product/Visibility.php index 6022cdfe039..52d6a404c13 100644 --- a/app/code/core/Mage/Catalog/Model/Product/Visibility.php +++ b/app/code/core/Mage/Catalog/Model/Product/Visibility.php @@ -68,6 +68,7 @@ public function addVisibleInCatalogFilterToCollection(Mage_Catalog_Model_Resourc $collection->setVisibility($this->getVisibleInCatalogIds()); return $this; } + /** * Add visibility in searchfilter to collection * @@ -80,6 +81,7 @@ public function addVisibleInSearchFilterToCollection(Mage_Catalog_Model_Resource $collection->setVisibility($this->getVisibleInSearchIds()); return $this; } + /** * Add visibility in site filter to collection * diff --git a/app/code/core/Mage/CatalogIndex/Model/Indexer/Minimalprice.php b/app/code/core/Mage/CatalogIndex/Model/Indexer/Minimalprice.php index eac108fe5e3..b3890ea03e4 100644 --- a/app/code/core/Mage/CatalogIndex/Model/Indexer/Minimalprice.php +++ b/app/code/core/Mage/CatalogIndex/Model/Indexer/Minimalprice.php @@ -35,10 +35,6 @@ * @method $this setEntityId(int $value) * @method int getCustomerGroupId() * @method $this setCustomerGroupId(int $value) - * @method float getQty() - * @method $this setQty(float $value) - * @method float getValue() - * @method $this setValue(float $value) * @method int getTaxClassId() * @method $this setTaxClassId(int $value) * @method int getWebsiteId() @@ -159,4 +155,36 @@ protected function _isAttributeIndexable(Mage_Eav_Model_Entity_Attribute_Abstrac return true; } + + /** + * @return float + */ + public function getQty() + { + return (float) $this->_getData('qty'); + } + + /** + * @return float + */ + public function getValue() + { + return (float) $this->_getData('value'); + } + + /** + * @return $this + */ + public function setQty($value) + { + return $this->setData('qty', (float) $value); + } + + /** + * @return $this + */ + public function setValue($value) + { + return $this->setData('value', (float) $value); + } } diff --git a/app/code/core/Mage/CatalogIndex/Model/Indexer/Price.php b/app/code/core/Mage/CatalogIndex/Model/Indexer/Price.php index 213a009d024..532ed933d5e 100644 --- a/app/code/core/Mage/CatalogIndex/Model/Indexer/Price.php +++ b/app/code/core/Mage/CatalogIndex/Model/Indexer/Price.php @@ -37,16 +37,6 @@ * @method Mage_CatalogIndex_Model_Indexer_Price setWebsiteId(int $value) * @method int getTaxClassId() * @method Mage_CatalogIndex_Model_Indexer_Price setTaxClassId(int $value) - * @method float getPrice() - * @method Mage_CatalogIndex_Model_Indexer_Price setPrice(float $value) - * @method float getFinalPrice() - * @method Mage_CatalogIndex_Model_Indexer_Price setFinalPrice(float $value) - * @method float getMinPrice() - * @method Mage_CatalogIndex_Model_Indexer_Price setMinPrice(float $value) - * @method float getMaxPrice() - * @method Mage_CatalogIndex_Model_Indexer_Price setMaxPrice(float $value) - * @method float getTierPrice() - * @method Mage_CatalogIndex_Model_Indexer_Price setTierPrice(float $value) * * @category Mage * @package Mage_CatalogIndex @@ -120,4 +110,84 @@ protected function _getIndexableAttributeConditions() $conditions = "frontend_input = 'price' AND attribute_code <> 'price'"; return $conditions; } + + /** + * @return float + */ + public function getPrice() + { + return (float) $this->_getData('price'); + } + + /** + * @return float + */ + public function getFinalPrice() + { + return (float) $this->_getData('final_price'); + } + + /** + * @return float + */ + public function getMinPrice() + { + return (float) $this->_getData('min_price'); + } + + /** + * @return float + */ + public function getMaxPrice() + { + return (float) $this->_getData('max_price'); + } + + /** + * @return float + */ + public function getTierPrice() + { + return (float) $this->_getData('tier_price'); + } + + /** + * @return $this + */ + public function setPrice($value) + { + return $this->setData('price', (float) $value); + } + + /** + * @return $this + */ + public function setFinalPrice($value) + { + return $this->setData('final_price', (float) $value); + } + + /** + * @return $this + */ + public function setMinPrice($value) + { + return $this->setData('min_price', (float) $value); + } + + /** + * @return $this + */ + public function setMaxPrice($value) + { + return $this->setData('max_price', (float) $value); + } + + /** + * @return $this + */ + public function setTierPrice($value) + { + return $this->setData('tier_price', (float) $value); + } } diff --git a/app/code/core/Mage/CatalogIndex/Model/Indexer/Tierprice.php b/app/code/core/Mage/CatalogIndex/Model/Indexer/Tierprice.php index 8189c2488d2..2a743dd462b 100644 --- a/app/code/core/Mage/CatalogIndex/Model/Indexer/Tierprice.php +++ b/app/code/core/Mage/CatalogIndex/Model/Indexer/Tierprice.php @@ -41,16 +41,6 @@ * @method $this setWebsiteId(int $value) * @method int getTaxClassId() * @method $this setTaxClassId(int $value) - * @method float getPrice() - * @method $this setPrice(float $value) - * @method float getFinalPrice() - * @method $this setFinalPrice(float $value) - * @method float getMinPrice() - * @method $this setMinPrice(float $value) - * @method float getMaxPrice() - * @method $this setMaxPrice(float $value) - * @method float getTierPrice() - * @method $this setTierPrice(float $value) * * @category Mage * @package Mage_CatalogIndex @@ -133,4 +123,84 @@ protected function _getIndexableAttributeConditions() return $conditions; } + + /** + * @return float + */ + public function getPrice() + { + return (float) $this->_getData('price'); + } + + /** + * @return float + */ + public function getFinalPrice() + { + return (float) $this->_getData('final_price'); + } + + /** + * @return float + */ + public function getMinPrice() + { + return (float) $this->_getData('min_price'); + } + + /** + * @return float + */ + public function getMaxPrice() + { + return (float) $this->_getData('max_price'); + } + + /** + * @return float + */ + public function getTierPrice() + { + return (float) $this->_getData('tier_price'); + } + + /** + * @return $this + */ + public function setPrice($value) + { + return $this->setData('price', (float) $value); + } + + /** + * @return $this + */ + public function setFinalPrice($value) + { + return $this->setData('final_price', (float) $value); + } + + /** + * @return $this + */ + public function setMinPrice($value) + { + return $this->setData('min_price', (float) $value); + } + + /** + * @return $this + */ + public function setMaxPrice($value) + { + return $this->setData('max_price', (float) $value); + } + + /** + * @return $this + */ + public function setTierPrice($value) + { + return $this->setData('tier_price', (float) $value); + } } diff --git a/app/code/core/Mage/CatalogIndex/Model/Price.php b/app/code/core/Mage/CatalogIndex/Model/Price.php index 5e02bb994a9..07852f6f292 100644 --- a/app/code/core/Mage/CatalogIndex/Model/Price.php +++ b/app/code/core/Mage/CatalogIndex/Model/Price.php @@ -37,16 +37,6 @@ * @method $this setWebsiteId(int $value) * @method int getTaxClassId() * @method $this setTaxClassId(int $value) - * @method float getPrice() - * @method $this setPrice(float $value) - * @method float getFinalPrice() - * @method $this setFinalPrice(float $value) - * @method float getMinPrice() - * @method $this setMinPrice(float $value) - * @method float getMaxPrice() - * @method $this setMaxPrice(float $value) - * @method float getTierPrice() - * @method $this setTierPrice(float $value) * * @category Mage * @package Mage_CatalogIndex @@ -122,4 +112,84 @@ public function addMinimalPrices(Mage_Catalog_Model_Resource_Product_Collection } } } + + /** + * @return float + */ + public function getPrice() + { + return (float) $this->_getData('price'); + } + + /** + * @return float + */ + public function getFinalPrice() + { + return (float) $this->_getData('final_price'); + } + + /** + * @return float + */ + public function getMinPrice() + { + return (float) $this->_getData('min_price'); + } + + /** + * @return float + */ + public function getMaxPrice() + { + return (float) $this->_getData('max_price'); + } + + /** + * @return float + */ + public function getTierPrice() + { + return (float) $this->_getData('tier_price'); + } + + /** + * @return $this + */ + public function setPrice($value) + { + return $this->setData('price', (float) $value); + } + + /** + * @return $this + */ + public function setFinalPrice($value) + { + return $this->setData('final_price', (float) $value); + } + + /** + * @return $this + */ + public function setMinPrice($value) + { + return $this->setData('min_price', (float) $value); + } + + /** + * @return $this + */ + public function setMaxPrice($value) + { + return $this->setData('max_price', (float) $value); + } + + /** + * @return $this + */ + public function setTierPrice($value) + { + return $this->setData('tier_price', (float) $value); + } } diff --git a/app/code/core/Mage/CatalogInventory/Model/Indexer/Stock.php b/app/code/core/Mage/CatalogInventory/Model/Indexer/Stock.php index 89ae0d7b60f..acdb98ac46e 100644 --- a/app/code/core/Mage/CatalogInventory/Model/Indexer/Stock.php +++ b/app/code/core/Mage/CatalogInventory/Model/Indexer/Stock.php @@ -35,8 +35,6 @@ * @method Mage_CatalogInventory_Model_Indexer_Stock setWebsiteId(int $value) * @method int getStockId() * @method Mage_CatalogInventory_Model_Indexer_Stock setStockId(int $value) - * @method float getQty() - * @method Mage_CatalogInventory_Model_Indexer_Stock setQty(float $value) * @method int getStockStatus() * @method Mage_CatalogInventory_Model_Indexer_Stock setStockStatus(int $value) * @@ -356,4 +354,20 @@ protected function _processEvent(Mage_Index_Model_Event $event) $this->callEventHandler($event); } } + + /** + * @return float + */ + public function getQty() + { + return (float) $this->_getData('qty'); + } + + /** + * @return $this + */ + public function setQty($value) + { + return $this->setData('qty', (float) $value); + } } diff --git a/app/code/core/Mage/CatalogInventory/Model/Stock/Item.php b/app/code/core/Mage/CatalogInventory/Model/Stock/Item.php index eb54bd5e7cf..5a9b83db49f 100644 --- a/app/code/core/Mage/CatalogInventory/Model/Stock/Item.php +++ b/app/code/core/Mage/CatalogInventory/Model/Stock/Item.php @@ -33,9 +33,6 @@ * * @method $this setProductId(int $value) * @method $this setStockId(int $value) - * @method float getQty() - * @method $this setQty(float $value) - * @method $this setMinQty(float $value) * @method int getUseConfigMinQty() * @method $this setUseConfigMinQty(int $value) * @method int getIsQtyDecimal() @@ -43,16 +40,13 @@ * @method $this setBackorders(int $value) * @method int getUseConfigBackorders() * @method $this setUseConfigBackorders(int $value) - * @method $this setMinSaleQty(float $value) * @method int getUseConfigMinSaleQty() * @method $this setUseConfigMinSaleQty(int $value) - * @method $this setMaxSaleQty(float $value) * @method int getUseConfigMaxSaleQty() * @method $this setUseConfigMaxSaleQty(int $value) * @method $this setIsInStock(int $value) * @method string getLowStockDate() * @method $this setLowStockDate(string $value) - * @method $this setNotifyStockQty(float $value) * @method int getUseConfigNotifyStockQty() * @method $this setUseConfigNotifyStockQty(int $value) * @method $this setManageStock(int $value) @@ -64,7 +58,6 @@ * @method $this setStockStatusChangedAutomatically(int $value) * @method int getUseConfigQtyIncrements() * @method $this setUseConfigQtyIncrements(int $value) - * @method $this setQtyIncrements(float $value) * @method int getUseConfigEnableQtyIncrements() * @method $this setUseConfigEnableQtyIncrements(int $value) * @method $this setEnableQtyIncrements(int $value) @@ -85,11 +78,7 @@ * @method bool getIsChildItem() * @method $this setIsChildItem(bool $value) * @method $this unsIsChildItem() - * @method float getOrderedItems() - * @method $this setOrderedItems(float $value) - * @method $this setStockQty(float $value) * @method bool hasStockQty() - * @method float getQtyCorrection() * * @category Mage * @package Mage_CatalogInventory @@ -956,4 +945,92 @@ public function afterCommitCallback() } return $this; } + + /** + * @return float + */ + public function getQty() + { + return (float) $this->_getData('qty'); + } + + /** + * @return float + */ + public function getOrderedItems() + { + return (float) $this->_getData('ordered_items'); + } + + /** + * @return float + */ + public function getQtyCorrection() + { + return (float) $this->_getData('qty_correction'); + } + + /** + * @return $this + */ + public function setQty($value) + { + return $this->setData('qty', (float) $value); + } + + /** + * @return $this + */ + public function setMinQty($value) + { + return $this->setData('min_qty', (float) $value); + } + + /** + * @return $this + */ + public function setMinSaleQty($value) + { + return $this->setData('min_sale_qty', (float) $value); + } + + /** + * @return $this + */ + public function setMaxSaleQty($value) + { + return $this->setData('max_sale_qty', (float) $value); + } + + /** + * @return $this + */ + public function setNotifyStockQty($value) + { + return $this->setData('notify_stock_qty', (float) $value); + } + + /** + * @return $this + */ + public function setQtyIncrements($value) + { + return $this->setData('qty_increments', (float) $value); + } + + /** + * @return $this + */ + public function setOrderedItems($value) + { + return $this->setData('ordered_items', (float) $value); + } + + /** + * @return $this + */ + public function setStockQty($value) + { + return $this->setData('stock_qty', (float) $value); + } } diff --git a/app/code/core/Mage/CatalogInventory/Model/Stock/Status.php b/app/code/core/Mage/CatalogInventory/Model/Stock/Status.php index 453fc68ebc1..9577d6160a3 100644 --- a/app/code/core/Mage/CatalogInventory/Model/Stock/Status.php +++ b/app/code/core/Mage/CatalogInventory/Model/Stock/Status.php @@ -35,8 +35,6 @@ * @method Mage_CatalogInventory_Model_Stock_Status setWebsiteId(int $value) * @method int getStockId() * @method Mage_CatalogInventory_Model_Stock_Status setStockId(int $value) - * @method float getQty() - * @method Mage_CatalogInventory_Model_Stock_Status setQty(float $value) * @method int getStockStatus() * @method Mage_CatalogInventory_Model_Stock_Status setStockStatus(int $value) * @@ -543,4 +541,20 @@ public function addIsInStockFilterToCollection($collection) $this->_getResource()->addIsInStockFilterToCollection($collection); return $this; } + + /** + * @return float + */ + public function getQty() + { + return (float) $this->_getData('qty'); + } + + /** + * @return $this + */ + public function setQty($value) + { + return $this->setData('qty', (float) $value); + } } diff --git a/app/code/core/Mage/CatalogRule/Model/Rule.php b/app/code/core/Mage/CatalogRule/Model/Rule.php index 07da70943ff..2cb6d7d3769 100644 --- a/app/code/core/Mage/CatalogRule/Model/Rule.php +++ b/app/code/core/Mage/CatalogRule/Model/Rule.php @@ -38,7 +38,6 @@ * @method $this setCollectedAttributes(array $value) * @method string getDescription() * @method $this setDescription(string $value) - * @method $this setDiscountAmount(float $value) * @method string getFromDate() * @method $this setFromDate(string $value) * @method string getName() @@ -52,7 +51,6 @@ * @method $this setStopRulesProcessing(int $value) * @method bool getSubIsEnable() * @method string getSubSimpleAction() - * @method float getSubDiscountAmount() * @method string getToDate() * @method $this setToDate(string $value) * @@ -499,4 +497,20 @@ public function loadProductRules(Mage_Catalog_Model_Product $product) } return $this; } + + /** + * @return float + */ + public function getSubDiscountAmount() + { + return (float) $this->_getData('sub_discount_amount'); + } + + /** + * @return $this + */ + public function setDiscountAmount($value) + { + return $this->setData('discount_amount', (float) $value); + } } diff --git a/app/code/core/Mage/CatalogRule/Model/Rule/Product/Price.php b/app/code/core/Mage/CatalogRule/Model/Rule/Product/Price.php index b0cda244a78..ada082e9eb1 100644 --- a/app/code/core/Mage/CatalogRule/Model/Rule/Product/Price.php +++ b/app/code/core/Mage/CatalogRule/Model/Rule/Product/Price.php @@ -36,8 +36,6 @@ * @method Mage_CatalogRule_Model_Rule_Product_Price setCustomerGroupId(int $value) * @method int getProductId() * @method Mage_CatalogRule_Model_Rule_Product_Price setProductId(int $value) - * @method float getRulePrice() - * @method Mage_CatalogRule_Model_Rule_Product_Price setRulePrice(float $value) * @method int getWebsiteId() * @method Mage_CatalogRule_Model_Rule_Product_Price setWebsiteId(int $value) * @method string getLatestStartDate() @@ -94,4 +92,20 @@ public function applyPriceRuleToIndexTable( return $this; } + + /** + * @return float + */ + public function getRulePrice() + { + return (float) $this->_getData('rule_price'); + } + + /** + * @return $this + */ + public function setRulePrice($value) + { + return $this->setData('rule_price', (float) $value); + } } diff --git a/app/code/core/Mage/CatalogSearch/Model/Query.php b/app/code/core/Mage/CatalogSearch/Model/Query.php index 037fac8ab5a..b9f474e67fb 100644 --- a/app/code/core/Mage/CatalogSearch/Model/Query.php +++ b/app/code/core/Mage/CatalogSearch/Model/Query.php @@ -45,7 +45,6 @@ * @method $this setPopularity(int $value) * @method string getQueryText() * @method $this setQueryText(string $value) - * @method $this setRatio(float $value) * @method string getRedirect() * @method $this setRedirect(string $value) * @method string getSynonymFor() @@ -259,4 +258,12 @@ public function getMaxQueryWords() { return Mage::getStoreConfig(self::XML_PATH_MAX_QUERY_WORDS, $this->getStoreId()); } + + /** + * @return $this + */ + public function setRatio($value) + { + return $this->setData('ratio', (float) $value); + } } diff --git a/app/code/core/Mage/CatalogSearch/controllers/ResultController.php b/app/code/core/Mage/CatalogSearch/controllers/ResultController.php index 656936b7a5e..b759339c21b 100644 --- a/app/code/core/Mage/CatalogSearch/controllers/ResultController.php +++ b/app/code/core/Mage/CatalogSearch/controllers/ResultController.php @@ -38,6 +38,7 @@ protected function _getSession() { return Mage::getSingleton('catalog/session'); } + /** * Display search result */ diff --git a/app/code/core/Mage/Checkout/Block/Cart/Item/Renderer.php b/app/code/core/Mage/Checkout/Block/Cart/Item/Renderer.php index 1251f7f5cd4..893b1e9b4a3 100644 --- a/app/code/core/Mage/Checkout/Block/Cart/Item/Renderer.php +++ b/app/code/core/Mage/Checkout/Block/Cart/Item/Renderer.php @@ -286,6 +286,7 @@ public function getAjaxUpdateUrl() ) ); } + /** * Get quote item qty * diff --git a/app/code/core/Mage/Core/Block/Html/Link.php b/app/code/core/Mage/Core/Block/Html/Link.php index 85eabfb13b6..3fbd94fe061 100644 --- a/app/code/core/Mage/Core/Block/Html/Link.php +++ b/app/code/core/Mage/Core/Block/Html/Link.php @@ -44,6 +44,7 @@ protected function _construct() $this->setTemplate('core/link.phtml'); parent::_construct(); } + /** * Prepare link attributes as serialized and formated string * diff --git a/app/code/core/Mage/Core/Controller/Request/Http.php b/app/code/core/Mage/Core/Controller/Request/Http.php index 18d9b7eaf4a..c25d7fff8bd 100644 --- a/app/code/core/Mage/Core/Controller/Request/Http.php +++ b/app/code/core/Mage/Core/Controller/Request/Http.php @@ -385,6 +385,7 @@ public function getModuleName() { return $this->_module; } + /** * Retrieve the controller name * @@ -394,6 +395,7 @@ public function getControllerName() { return $this->_controller; } + /** * Retrieve the action name * diff --git a/app/code/core/Mage/Core/Model/Resource.php b/app/code/core/Mage/Core/Model/Resource.php index 3a872a989b7..86e4d652951 100644 --- a/app/code/core/Mage/Core/Model/Resource.php +++ b/app/code/core/Mage/Core/Model/Resource.php @@ -396,6 +396,7 @@ public function setAutoUpdate($value) #Mage::app()->saveCache($value, self::AUTO_UPDATE_CACHE_KEY); return $this; } + /** * Retrieve 32bit UNIQUE HASH for a Table index * diff --git a/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php b/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php index b65c56b4333..082aea216ee 100644 --- a/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php +++ b/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php @@ -544,6 +544,7 @@ protected function _prepareSelect(Varien_Db_Select $select) return (string)$select; } + /** * Join table to collection select * diff --git a/app/code/core/Mage/Core/Model/Resource/Helper/Mysql4.php b/app/code/core/Mage/Core/Model/Resource/Helper/Mysql4.php index 92d25929432..a58145c6e64 100644 --- a/app/code/core/Mage/Core/Model/Resource/Helper/Mysql4.php +++ b/app/code/core/Mage/Core/Model/Resource/Helper/Mysql4.php @@ -43,6 +43,7 @@ public function castField($field) { return $field; } + /** * Returns analytic expression for database column * diff --git a/app/code/core/Mage/Customer/Model/Customer.php b/app/code/core/Mage/Customer/Model/Customer.php index f025929bb03..78b281011ea 100644 --- a/app/code/core/Mage/Customer/Model/Customer.php +++ b/app/code/core/Mage/Customer/Model/Customer.php @@ -110,7 +110,6 @@ * @method int getTagId() * @method $this setTaxClassId(bool $value) * @method string getTaxvat() - * @method $this setTotal(float $value) * * @method int getWebsiteId() * @method $this setWebsiteId(int $value) @@ -1600,4 +1599,12 @@ public function getMinPasswordLength() $absoluteMinLength = Mage_Core_Model_App::ABSOLUTE_MIN_PASSWORD_LENGTH; return ($minLength < $absoluteMinLength) ? $absoluteMinLength : $minLength; } + + /** + * @return $this + */ + public function setTotal($value) + { + return $this->setData('total', (float) $value); + } } diff --git a/app/code/core/Mage/Customer/Model/Entity/Address/Attribute/Source/Country.php b/app/code/core/Mage/Customer/Model/Entity/Address/Attribute/Source/Country.php index 557503ddab9..f63538ca6c4 100644 --- a/app/code/core/Mage/Customer/Model/Entity/Address/Attribute/Source/Country.php +++ b/app/code/core/Mage/Customer/Model/Entity/Address/Attribute/Source/Country.php @@ -50,6 +50,7 @@ public function __construct(array $args = array()) { $this->_factory = !empty($args['factory']) ? $args['factory'] : Mage::getSingleton('core/factory'); } + /** * Retrieve all options * diff --git a/app/code/core/Mage/Downloadable/Model/Link.php b/app/code/core/Mage/Downloadable/Model/Link.php index 6ba432fd1e7..726083c5301 100644 --- a/app/code/core/Mage/Downloadable/Model/Link.php +++ b/app/code/core/Mage/Downloadable/Model/Link.php @@ -56,8 +56,6 @@ * @method int getStoreId() * @method $this setStoreId(int $value) * @method string getStoreTitle() - * @method float getPrice() - * @method $this setPrice(float $value) * @method Mage_Catalog_Model_Product getProduct() * @method $this setProduct(Mage_Catalog_Model_Product $value) * @method array getProductWebsiteIds() @@ -67,7 +65,6 @@ * @method bool getUseDefaultTitle() * @method int getWebsiteId() * @method $this setWebsiteId(int $value) - * @method float getWebsitePrice() * * @category Mage * @package Mage_Downloadable @@ -167,4 +164,28 @@ public function getSearchableData($productId, $storeId) return $this->_getResource() ->getSearchableData($productId, $storeId); } + + /** + * @return float + */ + public function getPrice() + { + return (float) $this->_getData('price'); + } + + /** + * @return float + */ + public function getWebsitePrice() + { + return (float) $this->_getData('website_price'); + } + + /** + * @return $this + */ + public function setPrice($value) + { + return $this->setData('price', (float) $value); + } } diff --git a/app/code/core/Mage/Eav/Model/Entity/Attribute/Backend/Abstract.php b/app/code/core/Mage/Eav/Model/Entity/Attribute/Backend/Abstract.php index 90e8366f1e0..40d81a006b4 100644 --- a/app/code/core/Mage/Eav/Model/Entity/Attribute/Backend/Abstract.php +++ b/app/code/core/Mage/Eav/Model/Entity/Attribute/Backend/Abstract.php @@ -321,6 +321,7 @@ public function beforeDelete($object) { return $this; } + /** * After delete method * diff --git a/app/code/core/Mage/Eav/Model/Entity/Attribute/Backend/Time/Created.php b/app/code/core/Mage/Eav/Model/Entity/Attribute/Backend/Time/Created.php index 7fb967c245e..d73b3ae980b 100644 --- a/app/code/core/Mage/Eav/Model/Entity/Attribute/Backend/Time/Created.php +++ b/app/code/core/Mage/Eav/Model/Entity/Attribute/Backend/Time/Created.php @@ -47,6 +47,7 @@ protected function _getFormat($date) } return null; } + /** * Set created date * Set created date in UTC time zone diff --git a/app/code/core/Mage/Page/Block/Js/Cookie.php b/app/code/core/Mage/Page/Block/Js/Cookie.php index 84f28d844cb..1df59839ed6 100644 --- a/app/code/core/Mage/Page/Block/Js/Cookie.php +++ b/app/code/core/Mage/Page/Block/Js/Cookie.php @@ -35,6 +35,7 @@ public function getCookie() { return Mage::getSingleton('core/cookie'); } + /** * Get configured cookie domain * diff --git a/app/code/core/Mage/Paygate/Model/Authorizenet/Cards.php b/app/code/core/Mage/Paygate/Model/Authorizenet/Cards.php index 3b9c7c80816..f01c2665937 100644 --- a/app/code/core/Mage/Paygate/Model/Authorizenet/Cards.php +++ b/app/code/core/Mage/Paygate/Model/Authorizenet/Cards.php @@ -189,6 +189,7 @@ protected function _isPaymentValid() throw new Exception('Payment instance is not set'); } } + /** * Return total for cards data fields * diff --git a/app/code/core/Mage/Payment/Model/Recurring/Profile.php b/app/code/core/Mage/Payment/Model/Recurring/Profile.php index 2cfcdb3573d..d398ac62e83 100644 --- a/app/code/core/Mage/Payment/Model/Recurring/Profile.php +++ b/app/code/core/Mage/Payment/Model/Recurring/Profile.php @@ -28,7 +28,6 @@ * Recurring payment profile * Extends from Mage_Core_Abstract for a reason: to make descendants have its own resource * - * @method float getBillingAmount() * @method string getCurrencyCode() * @method bool getStartDateIsEditable() * @method $this setImportedStartDatetime(string $value) @@ -43,7 +42,6 @@ * @method string getStartDatetime() * @method $this setStartDatetime(string $value) * @method int getStoreId() - * @method float getTrialBillingAmount() * @method int getTrialPeriodFrequency() * @method int getTrialPeriodMaxCycles() * @method int getTrialPeriodUnit() @@ -671,4 +669,20 @@ protected function _renderSchedule($periodKey, $frequencyKey, $cyclesKey) } return $result; } + + /** + * @return float + */ + public function getBillingAmount() + { + return (float) $this->_getData('billing_amount'); + } + + /** + * @return float + */ + public function getTrialBillingAmount() + { + return (float) $this->_getData('trial_billing_amount'); + } } diff --git a/app/code/core/Mage/Paypal/Model/Report/Settlement/Row.php b/app/code/core/Mage/Paypal/Model/Report/Settlement/Row.php index 7e0220a3efa..75561c932cd 100644 --- a/app/code/core/Mage/Paypal/Model/Report/Settlement/Row.php +++ b/app/code/core/Mage/Paypal/Model/Report/Settlement/Row.php @@ -50,14 +50,10 @@ * @method Mage_Paypal_Model_Report_Settlement_Row setTransactionCompletionDate(string $value) * @method string getTransactionDebitOrCredit() * @method Mage_Paypal_Model_Report_Settlement_Row setTransactionDebitOrCredit(string $value) - * @method float getGrossTransactionAmount() - * @method Mage_Paypal_Model_Report_Settlement_Row setGrossTransactionAmount(float $value) * @method string getGrossTransactionCurrency() * @method Mage_Paypal_Model_Report_Settlement_Row setGrossTransactionCurrency(string $value) * @method string getFeeDebitOrCredit() * @method Mage_Paypal_Model_Report_Settlement_Row setFeeDebitOrCredit(string $value) - * @method float getFeeAmount() - * @method Mage_Paypal_Model_Report_Settlement_Row setFeeAmount(float $value) * @method string getFeeCurrency() * @method Mage_Paypal_Model_Report_Settlement_Row setFeeCurrency(string $value) * @method string getCustomField() @@ -297,4 +293,36 @@ protected function _generateEventLabels() asort(self::$_eventList); } } + + /** + * @return float + */ + public function getGrossTransactionAmount() + { + return (float) $this->_getData('gross_transaction_amount'); + } + + /** + * @return float + */ + public function getFeeAmount() + { + return (float) $this->_getData('fee_amount'); + } + + /** + * @return $this + */ + public function setGrossTransactionAmount($value) + { + return $this->setData('gross_transaction_amount', (float) $value); + } + + /** + * @return $this + */ + public function setFeeAmount($value) + { + return $this->setData('fee_amount', (float) $value); + } } diff --git a/app/code/core/Mage/Persistent/Model/Observer.php b/app/code/core/Mage/Persistent/Model/Observer.php index a17fe238da3..a9471f0523b 100644 --- a/app/code/core/Mage/Persistent/Model/Observer.php +++ b/app/code/core/Mage/Persistent/Model/Observer.php @@ -94,6 +94,7 @@ public function applyBlockPersistentData($observer) return $this; } + /** * Emulate welcome message with persistent data * @@ -107,6 +108,7 @@ public function emulateWelcomeMessageBlock($block) ); return $this; } + /** * Emulate 'welcome' block with persistent data * @@ -499,6 +501,7 @@ public function checkExpirePersistentQuote(Varien_Event_Observer $observer) $customerSession->setCustomerId(null)->setCustomerGroupId(null); } } + /** * Active Persistent Sessions */ diff --git a/app/code/core/Mage/Poll/Model/Poll/Answer.php b/app/code/core/Mage/Poll/Model/Poll/Answer.php index 9d34a83de81..cd6ed189ae7 100644 --- a/app/code/core/Mage/Poll/Model/Poll/Answer.php +++ b/app/code/core/Mage/Poll/Model/Poll/Answer.php @@ -36,8 +36,6 @@ * @method $this setAnswerOrder(int $value) * @method string getAnswerTitle() * @method $this setAnswerTitle(string $value) - * @method float getPercent() - * @method $this setPercent(float $round) * @method int getPollId() * @method $this setPollId(int $value) * @method int getVotesCount() @@ -97,4 +95,20 @@ protected function _afterDelete() ->resetVotesCount(); return parent::_afterDelete(); } + + /** + * @return float + */ + public function getPercent() + { + return (float) $this->_getData('percent'); + } + + /** + * @return $this + */ + public function setPercent($round) + { + return $this->setData('percent', (float) $round); + } } diff --git a/app/code/core/Mage/ProductAlert/Model/Price.php b/app/code/core/Mage/ProductAlert/Model/Price.php index a1d53b9eac6..540dfe0da1b 100644 --- a/app/code/core/Mage/ProductAlert/Model/Price.php +++ b/app/code/core/Mage/ProductAlert/Model/Price.php @@ -35,8 +35,6 @@ * @method $this setCustomerId(int $value) * @method int getProductId() * @method $this setProductId(int $value) - * @method float getPrice() - * @method $this setPrice(float $value) * @method int getWebsiteId() * @method $this setWebsiteId(int $value) * @method string getAddDate() @@ -88,4 +86,20 @@ public function deleteCustomer($customerId, $websiteId = 0) $this->getResource()->deleteCustomer($this, $customerId, $websiteId); return $this; } + + /** + * @return float + */ + public function getPrice() + { + return (float) $this->_getData('price'); + } + + /** + * @return $this + */ + public function setPrice($value) + { + return $this->setData('price', (float) $value); + } } diff --git a/app/code/core/Mage/Rating/Model/Rating.php b/app/code/core/Mage/Rating/Model/Rating.php index 098fec01721..921f6481a80 100644 --- a/app/code/core/Mage/Rating/Model/Rating.php +++ b/app/code/core/Mage/Rating/Model/Rating.php @@ -53,7 +53,6 @@ * @method array getStores() * @method $this setStores(array $value) * @method $this setSum(int $value) - * @method $this setSummary(float|int $param) * @method int getVoteId() * * @category Mage @@ -163,4 +162,12 @@ public function getEntityIdByCode($entityCode) { return $this->getResource()->getEntityIdByCode($entityCode); } + + /** + * @return $this + */ + public function setSummary($param) + { + return $this->setData('summary', (float) $param); + } } diff --git a/app/code/core/Mage/Reports/Model/Resource/Customer/Orders/Collection.php b/app/code/core/Mage/Reports/Model/Resource/Customer/Orders/Collection.php index 804695ef06f..a73648e07f1 100644 --- a/app/code/core/Mage/Reports/Model/Resource/Customer/Orders/Collection.php +++ b/app/code/core/Mage/Reports/Model/Resource/Customer/Orders/Collection.php @@ -39,6 +39,7 @@ protected function _construct() parent::_construct(); $this->_useAnalyticFunction = true; } + /** * Join fields * diff --git a/app/code/core/Mage/Reports/Model/Resource/Customer/Totals/Collection.php b/app/code/core/Mage/Reports/Model/Resource/Customer/Totals/Collection.php index affb3afb2e5..09405edcc2e 100644 --- a/app/code/core/Mage/Reports/Model/Resource/Customer/Totals/Collection.php +++ b/app/code/core/Mage/Reports/Model/Resource/Customer/Totals/Collection.php @@ -39,6 +39,7 @@ protected function _construct() parent::_construct(); $this->_useAnalyticFunction = true; } + /** * Join fields * diff --git a/app/code/core/Mage/Reports/Model/Resource/Product/Collection.php b/app/code/core/Mage/Reports/Model/Resource/Product/Collection.php index f6c39397237..c5512433124 100644 --- a/app/code/core/Mage/Reports/Model/Resource/Product/Collection.php +++ b/app/code/core/Mage/Reports/Model/Resource/Product/Collection.php @@ -78,6 +78,7 @@ public function __construct() parent::__construct(); } + /** * Set Type for COUNT SQL Select * diff --git a/app/code/core/Mage/Reports/Model/Resource/Product/Downloads/Collection.php b/app/code/core/Mage/Reports/Model/Resource/Product/Downloads/Collection.php index 04ad4be2b37..67350cd06f9 100644 --- a/app/code/core/Mage/Reports/Model/Resource/Product/Downloads/Collection.php +++ b/app/code/core/Mage/Reports/Model/Resource/Product/Downloads/Collection.php @@ -45,6 +45,7 @@ protected function _construct() { parent::_construct(); } + /** * Add downloads summary grouping by product * diff --git a/app/code/core/Mage/Reports/Model/Resource/Product/Sold/Collection.php b/app/code/core/Mage/Reports/Model/Resource/Product/Sold/Collection.php index c855afecdb5..8515985d2a2 100644 --- a/app/code/core/Mage/Reports/Model/Resource/Product/Sold/Collection.php +++ b/app/code/core/Mage/Reports/Model/Resource/Product/Sold/Collection.php @@ -45,6 +45,7 @@ protected function _construct() // skip adding stock information to collection for perfromance reasons $this->setFlag('no_stock_data', true); } + /** * Set Date range to collection * diff --git a/app/code/core/Mage/Reports/Model/Resource/Review/Product/Collection.php b/app/code/core/Mage/Reports/Model/Resource/Review/Product/Collection.php index 3c3862aed2a..8a2b7da28a1 100644 --- a/app/code/core/Mage/Reports/Model/Resource/Review/Product/Collection.php +++ b/app/code/core/Mage/Reports/Model/Resource/Review/Product/Collection.php @@ -39,6 +39,7 @@ protected function _construct() parent::_construct(); $this->_useAnalyticFunction = true; } + /** * Join review table to result * diff --git a/app/code/core/Mage/Reports/Model/Resource/Tag/Customer/Collection.php b/app/code/core/Mage/Reports/Model/Resource/Tag/Customer/Collection.php index 7e69858b64e..898ef0b8dc3 100644 --- a/app/code/core/Mage/Reports/Model/Resource/Tag/Customer/Collection.php +++ b/app/code/core/Mage/Reports/Model/Resource/Tag/Customer/Collection.php @@ -39,6 +39,7 @@ protected function _construct() parent::_construct(); $this->_useAnalyticFunction = true; } + /** * Add target count * diff --git a/app/code/core/Mage/Reports/Model/Resource/Tag/Product/Collection.php b/app/code/core/Mage/Reports/Model/Resource/Tag/Product/Collection.php index 7ce47b5df10..2abdc65b3a6 100644 --- a/app/code/core/Mage/Reports/Model/Resource/Tag/Product/Collection.php +++ b/app/code/core/Mage/Reports/Model/Resource/Tag/Product/Collection.php @@ -42,6 +42,7 @@ protected function _construct() */ $this->_useAnalyticFunction = true; } + /** * Add unique target count to result * diff --git a/app/code/core/Mage/Reports/Model/Resource/Wishlist/Collection.php b/app/code/core/Mage/Reports/Model/Resource/Wishlist/Collection.php index 47002820361..e27cc3b769a 100644 --- a/app/code/core/Mage/Reports/Model/Resource/Wishlist/Collection.php +++ b/app/code/core/Mage/Reports/Model/Resource/Wishlist/Collection.php @@ -50,6 +50,7 @@ protected function _construct() $this->_init('wishlist/wishlist'); $this->setWishlistTable($this->getTable('wishlist/wishlist')); } + /** * Set wishlist table name * diff --git a/app/code/core/Mage/Review/controllers/ProductController.php b/app/code/core/Mage/Review/controllers/ProductController.php index cccb24397c2..9b039b6ce0b 100644 --- a/app/code/core/Mage/Review/controllers/ProductController.php +++ b/app/code/core/Mage/Review/controllers/ProductController.php @@ -66,6 +66,7 @@ public function preDispatch() return $this; } + /** * Initialize and check product * diff --git a/app/code/core/Mage/Rule/Model/Abstract.php b/app/code/core/Mage/Rule/Model/Abstract.php index dc7e78a4092..7ab0d51c7cc 100644 --- a/app/code/core/Mage/Rule/Model/Abstract.php +++ b/app/code/core/Mage/Rule/Model/Abstract.php @@ -45,7 +45,6 @@ * @method array getCustomerGroupIds() * @method $this setCustomerGroupIds(array $value) * @method bool hasDiscountAmount() - * @method float getDiscountAmount() * @method bool hasWebsiteIds() * @method $this setWebsiteIds(array $value) */ @@ -523,4 +522,12 @@ protected function _prepareWebsiteIds() { return $this; } + + /** + * @return float + */ + public function getDiscountAmount() + { + return (float) $this->_getData('discount_amount'); + } } diff --git a/app/code/core/Mage/Sales/Model/Api2/Order/Item/Rest.php b/app/code/core/Mage/Sales/Model/Api2/Order/Item/Rest.php index 9b002df18f9..9f6a2f8380f 100644 --- a/app/code/core/Mage/Sales/Model/Api2/Order/Item/Rest.php +++ b/app/code/core/Mage/Sales/Model/Api2/Order/Item/Rest.php @@ -55,6 +55,7 @@ protected function _retrieveCollection() } return $data; } + /** * Retrieve order items collection * diff --git a/app/code/core/Mage/Sales/Model/Order.php b/app/code/core/Mage/Sales/Model/Order.php index ad23b81ec2b..41287fcf6c0 100644 --- a/app/code/core/Mage/Sales/Model/Order.php +++ b/app/code/core/Mage/Sales/Model/Order.php @@ -38,10 +38,6 @@ * @method Mage_Sales_Model_Resource_Order getResource() * @method Mage_Sales_Model_Resource_Order_Collection getCollection() * - * @method float getAdjustmentNegative() - * @method $this setAdjustmentNegative(float $value) - * @method float getAdjustmentPositive() - * @method $this setAdjustmentPositive(float $value) * @method string getAppliedRuleIds() * @method $this setAppliedRuleIds(string $value) * @method array getAppliedTaxes() @@ -50,89 +46,8 @@ * @method $this setAppliedTaxIsSaved(bool $value) * * @method string getBackUrl() - * @method float getBaseAdjustmentNegative() - * @method $this setBaseAdjustmentNegative(float $value) - * @method float getBaseAdjustmentPositive() - * @method $this setBaseAdjustmentPositive(float $value) * @method string getBaseCurrencyCode() * @method $this setBaseCurrencyCode(string $value) - * @method float getBaseDiscountAmount() - * @method $this setBaseDiscountAmount(float $value) - * @method float getBaseDiscountCanceled() - * @method $this setBaseDiscountCanceled(float $value) - * @method float getBaseDiscountInvoiced() - * @method $this setBaseDiscountInvoiced(float $value) - * @method float getBaseDiscountRefunded() - * @method $this setBaseDiscountRefunded(float $value) - * @method float getBaseGrandTotal() - * @method $this setBaseGrandTotal(float $value) - * @method float getBaseHiddenTaxAmount() - * @method $this setBaseHiddenTaxAmount(float $value) - * @method float getBaseHiddenTaxInvoiced() - * @method $this setBaseHiddenTaxInvoiced(float $value) - * @method float getBaseHiddenTaxRefunded() - * @method $this setBaseHiddenTaxRefunded(float $value) - * @method float getBaseShippingAmount() - * @method $this setBaseShippingAmount(float $value) - * @method float getBaseShippingCanceled() - * @method $this setBaseShippingCanceled(float $value) - * @method float getBaseShippingDiscountAmount() - * @method $this setBaseShippingDiscountAmount(float $value) - * @method float getBaseShippingHiddenTaxAmount() - * @method $this setBaseShippingHiddenTaxAmount(float $value) - * @method float getBaseShippingHiddenTaxInvoiced() - * @method float getBaseShippingHiddenTaxRefunded() - * @method float getBaseShippingInclTax() - * @method $this setBaseShippingInclTax(float $value) - * @method float getBaseShippingInvoiced() - * @method $this setBaseShippingInvoiced(float $value) - * @method float getBaseShippingRefunded() - * @method $this setBaseShippingRefunded(float $value) - * @method float getBaseShippingTaxAmount() - * @method $this setBaseShippingTaxAmount(float $value) - * @method float getBaseShippingTaxInvoiced() - * @method $this setBaseShippingTaxInvoiced(float $value) - * @method float getBaseShippingTaxRefunded() - * @method $this setBaseShippingTaxRefunded(float $value) - * @method float getBaseSubtotal() - * @method $this setBaseSubtotal(float $value) - * @method float getBaseSubtotalCanceled() - * @method $this setBaseSubtotalCanceled(float $value) - * @method float getBaseSubtotalInclTax() - * @method $this setBaseSubtotalInclTax(float $value) - * @method float getBaseSubtotalInvoiced() - * @method $this setBaseSubtotalInvoiced(float $value) - * @method float getBaseSubtotalRefunded() - * @method $this setBaseSubtotalRefunded(float $value) - * @method float getBaseTaxAmount() - * @method $this setBaseTaxAmount(float $value) - * @method float getBaseTaxCanceled() - * @method $this setBaseTaxCanceled(float $value) - * @method float getBaseTaxInvoiced() - * @method $this setBaseTaxInvoiced(float $value) - * @method float getBaseTaxRefunded() - * @method $this setBaseTaxRefunded(float $value) - * @method float getBaseToGlobalRate() - * @method $this setBaseToGlobalRate(float $value) - * @method float getBaseToOrderRate() - * @method $this setBaseToOrderRate(float $value) - * @method float getBaseTotalCanceled() - * @method $this setBaseTotalCanceled(float $value) - * @method $this setBaseTotalDue(float $value) - * @method float getBaseTotalInvoiced() - * @method $this setBaseTotalInvoiced(float $value) - * @method float getBaseTotalInvoicedCost() - * @method $this setBaseTotalInvoicedCost(float $value) - * @method float getBaseTotalOfflineRefunded() - * @method $this setBaseTotalOfflineRefunded(float $value) - * @method float getBaseTotalOnlineRefunded() - * @method $this setBaseTotalOnlineRefunded(float $value) - * @method float getBaseTotalPaid() - * @method $this setBaseTotalPaid(float $value) - * @method float getBaseTotalQtyOrdered() - * @method $this setBaseTotalQtyOrdered(float $value) - * @method float getBaseTotalRefunded() - * @method $this setBaseTotalRefunded(float $value) * @method bool hasBillingAddressId() * @method int getBillingAddressId() * @method $this setBillingAddressId(int $value) @@ -186,16 +101,8 @@ * @method string getCustomerTaxvat() * @method $this setCustomerTaxvat(string $value) * - * @method float getDiscountAmount() - * @method $this setDiscountAmount(float $value) - * @method float getDiscountCanceled() - * @method $this setDiscountCanceled(float $value) * @method string getDiscountDescription() * @method $this setDiscountDescription(string $value) - * @method float getDiscountInvoiced() - * @method $this setDiscountInvoiced(float $value) - * @method float getDiscountRefunded() - * @method $this setDiscountRefunded(float $value) * * @method int getEditIncrement() * @method $this setEditIncrement(int $value) @@ -217,15 +124,7 @@ * @method $this setGiftMessageId(int $value) * @method string getGlobalCurrencyCode() * @method $this setGlobalCurrencyCode(string $value) - * @method float getGrandTotal() - * @method $this setGrandTotal(float $value) * - * @method float getHiddenTaxAmount() - * @method $this setHiddenTaxAmount(float $value) - * @method float getHiddenTaxInvoiced() - * @method $this setHiddenTaxInvoiced(float $value) - * @method float getHiddenTaxRefunded() - * @method $this setHiddenTaxRefunded(float $value) * @method string getHoldBeforeState() * @method $this setHoldBeforeState(string $value) * @method string getHoldBeforeStatus() @@ -242,8 +141,6 @@ * @method string getOriginalIncrementId() * @method $this setOriginalIncrementId(string $value) * - * @method float getPaymentAuthorizationAmount() - * @method $this setPaymentAuthorizationAmount(float $value) * @method int getPaymentAuthorizationExpiration() * @method $this setPaymentAuthorizationExpiration(int $value) * @method int getPaypalIpnCustomerNotified() @@ -251,11 +148,9 @@ * @method string getProtectCode() * @method $this setProtectCode(string $value) * - * @method float getQuantity() * @method Mage_Sales_Model_Quote getQuote() * @method int getQuoteAddressId() * @method $this setQuoteAddressId(int $value) - * @method float getQuoteBaseGrandTotal() * @method int getQuoteId() * @method $this setQuoteId(int $value) * @method $this setQuote(Mage_Sales_Model_Quote $value) @@ -271,39 +166,15 @@ * @method string getRemoteIp() * @method $this setRemoteIp(string $value) * @method bool getReordered() - * @method float getRevenue() * @method int getRowTaxDisplayPrecision() * - * @method float getShipping() * @method bool hasShippingAddressId() * @method int getShippingAddressId() * @method $this setShippingAddressId(int $value) * @method $this unsShippingAddressId() - * @method float getShippingAmount() - * @method $this setShippingAmount(float $value) - * @method float getShippingCanceled() - * @method $this setShippingCanceled(float $value) * @method string getShippingDescription() * @method $this setShippingDescription(string $value) - * @method float getShippingDiscountAmount() - * @method $this setShippingDiscountAmount(float $value) - * @method float getShippingHiddenTaxAmount() - * @method $this setShippingHiddenTaxAmount(float $value) - * @method float getShippingHiddenTaxInvoiced() - * @method float getShippingHiddenTaxRefunded() - * @method float getShippingInclTax() - * @method $this setShippingInclTax(float $value) - * @method float getShippingInvoiced() - * @method $this setShippingInvoiced(float $value) * @method $this setShippingMethod(string $value) - * @method float getShippingRefunded() - * @method $this setShippingRefunded(float $value) - * @method float getShippingTaxAmount() - * @method $this setShippingTaxAmount(float $value) - * @method float getShippingTaxInvoiced() - * @method $this setShippingTaxInvoiced(float $value) - * @method float getShippingTaxRefunded() - * @method $this setShippingTaxRefunded(float $value) * @method string getState() * @method string getStatus() * @method $this setStatus(string $value) @@ -313,47 +184,9 @@ * @method $this setStoreId(int $value) * @method string getStoreName() * @method $this setStoreName(string $value) - * @method float getStoreToBaseRate() - * @method $this setStoreToBaseRate(float $value) - * @method float getStoreToOrderRate() - * @method $this setStoreToOrderRate(float $value) - * @method float getSubtotal() - * @method $this setSubtotal(float $value) - * @method float getSubtotalCanceled() - * @method $this setSubtotalCanceled(float $value) - * @method float getSubtotalInclTax() - * @method $this setSubtotalInclTax(float $value) - * @method float getSubtotalInvoiced() - * @method $this setSubtotalInvoiced(float $value) - * @method float getSubtotalRefunded() - * @method $this setSubtotalRefunded(float $value) * - * @method float getTax() - * @method float getTaxAmount() - * @method $this setTaxAmount(float $value) - * @method float getTaxCanceled() - * @method $this setTaxCanceled(float $value) - * @method float getTaxInvoiced() - * @method $this setTaxInvoiced(float $value) - * @method float getTaxRefunded() - * @method $this setTaxRefunded(float $value) - * @method float getTotalCanceled() - * @method $this setTotalCanceled(float $value) - * @method $this setTotalDue(float $value) - * @method float getTotalInvoiced() - * @method $this setTotalInvoiced(float $value) * @method int getTotalItemCount() * @method $this setTotalItemCount(int $value) - * @method float getTotalOfflineRefunded() - * @method $this setTotalOfflineRefunded(float $value) - * @method float getTotalOnlineRefunded() - * @method $this setTotalOnlineRefunded(float $value) - * @method float getTotalPaid() - * @method $this setTotalPaid(float $value) - * @method float getTotalQtyOrdered() - * @method $this setTotalQtyOrdered(float $value) - * @method float getTotalRefunded() - * @method $this setTotalRefunded(float $value) * * @method string getUpdatedAt() * @method $this setUpdatedAt(string $value) @@ -361,8 +194,6 @@ * @method int getIsVirtual() * @method $this setIsVirtual(int $value) * - * @method float getWeight() - * @method $this setWeight(float $value) * * @method string getXForwardedFor() * @method $this setXForwardedFor(string $value) @@ -2529,4 +2360,1356 @@ protected function _beforeDelete() $this->_protectFromNonAdmin(); return parent::_beforeDelete(); } + + /** + * @return float + */ + public function getAdjustmentNegative() + { + return (float) $this->_getData('adjustment_negative'); + } + + /** + * @return float + */ + public function getAdjustmentPositive() + { + return (float) $this->_getData('adjustment_positive'); + } + + /** + * @return float + */ + public function getBaseAdjustmentNegative() + { + return (float) $this->_getData('base_adjustment_negative'); + } + + /** + * @return float + */ + public function getBaseAdjustmentPositive() + { + return (float) $this->_getData('base_adjustment_positive'); + } + + /** + * @return float + */ + public function getBaseDiscountAmount() + { + return (float) $this->_getData('base_discount_amount'); + } + + /** + * @return float + */ + public function getBaseDiscountCanceled() + { + return (float) $this->_getData('base_discount_canceled'); + } + + /** + * @return float + */ + public function getBaseDiscountInvoiced() + { + return (float) $this->_getData('base_discount_invoiced'); + } + + /** + * @return float + */ + public function getBaseDiscountRefunded() + { + return (float) $this->_getData('base_discount_refunded'); + } + + /** + * @return float + */ + public function getBaseGrandTotal() + { + return (float) $this->_getData('base_grand_total'); + } + + /** + * @return float + */ + public function getBaseHiddenTaxAmount() + { + return (float) $this->_getData('base_hidden_tax_amount'); + } + + /** + * @return float + */ + public function getBaseHiddenTaxInvoiced() + { + return (float) $this->_getData('base_hidden_tax_invoiced'); + } + + /** + * @return float + */ + public function getBaseHiddenTaxRefunded() + { + return (float) $this->_getData('base_hidden_tax_refunded'); + } + + /** + * @return float + */ + public function getBaseShippingAmount() + { + return (float) $this->_getData('base_shipping_amount'); + } + + /** + * @return float + */ + public function getBaseShippingCanceled() + { + return (float) $this->_getData('base_shipping_canceled'); + } + + /** + * @return float + */ + public function getBaseShippingDiscountAmount() + { + return (float) $this->_getData('base_shipping_discount_amount'); + } + + /** + * @return float + */ + public function getBaseShippingHiddenTaxAmount() + { + return (float) $this->_getData('base_shipping_hidden_tax_amount'); + } + + /** + * @return float + */ + public function getBaseShippingHiddenTaxInvoiced() + { + return (float) $this->_getData('base_shipping_hidden_tax_invoiced'); + } + + /** + * @return float + */ + public function getBaseShippingHiddenTaxRefunded() + { + return (float) $this->_getData('base_shipping_hidden_tax_refunded'); + } + + /** + * @return float + */ + public function getBaseShippingInclTax() + { + return (float) $this->_getData('base_shipping_incl_tax'); + } + + /** + * @return float + */ + public function getBaseShippingInvoiced() + { + return (float) $this->_getData('base_shipping_invoiced'); + } + + /** + * @return float + */ + public function getBaseShippingRefunded() + { + return (float) $this->_getData('base_shipping_refunded'); + } + + /** + * @return float + */ + public function getBaseShippingTaxAmount() + { + return (float) $this->_getData('base_shipping_tax_amount'); + } + + /** + * @return float + */ + public function getBaseShippingTaxInvoiced() + { + return (float) $this->_getData('base_shipping_tax_invoiced'); + } + + /** + * @return float + */ + public function getBaseShippingTaxRefunded() + { + return (float) $this->_getData('base_shipping_tax_refunded'); + } + + /** + * @return float + */ + public function getBaseSubtotal() + { + return (float) $this->_getData('base_subtotal'); + } + + /** + * @return float + */ + public function getBaseSubtotalCanceled() + { + return (float) $this->_getData('base_subtotal_canceled'); + } + + /** + * @return float + */ + public function getBaseSubtotalInclTax() + { + return (float) $this->_getData('base_subtotal_incl_tax'); + } + + /** + * @return float + */ + public function getBaseSubtotalInvoiced() + { + return (float) $this->_getData('base_subtotal_invoiced'); + } + + /** + * @return float + */ + public function getBaseSubtotalRefunded() + { + return (float) $this->_getData('base_subtotal_refunded'); + } + + /** + * @return float + */ + public function getBaseTaxAmount() + { + return (float) $this->_getData('base_tax_amount'); + } + + /** + * @return float + */ + public function getBaseTaxCanceled() + { + return (float) $this->_getData('base_tax_canceled'); + } + + /** + * @return float + */ + public function getBaseTaxInvoiced() + { + return (float) $this->_getData('base_tax_invoiced'); + } + + /** + * @return float + */ + public function getBaseTaxRefunded() + { + return (float) $this->_getData('base_tax_refunded'); + } + + /** + * @return float + */ + public function getBaseToGlobalRate() + { + return (float) $this->_getData('base_to_global_rate'); + } + + /** + * @return float + */ + public function getBaseToOrderRate() + { + return (float) $this->_getData('base_to_order_rate'); + } + + /** + * @return float + */ + public function getBaseTotalCanceled() + { + return (float) $this->_getData('base_total_canceled'); + } + + /** + * @return float + */ + public function getBaseTotalInvoiced() + { + return (float) $this->_getData('base_total_invoiced'); + } + + /** + * @return float + */ + public function getBaseTotalInvoicedCost() + { + return (float) $this->_getData('base_total_invoiced_cost'); + } + + /** + * @return float + */ + public function getBaseTotalOfflineRefunded() + { + return (float) $this->_getData('base_total_offline_refunded'); + } + + /** + * @return float + */ + public function getBaseTotalOnlineRefunded() + { + return (float) $this->_getData('base_total_online_refunded'); + } + + /** + * @return float + */ + public function getBaseTotalPaid() + { + return (float) $this->_getData('base_total_paid'); + } + + /** + * @return float + */ + public function getBaseTotalQtyOrdered() + { + return (float) $this->_getData('base_total_qty_ordered'); + } + + /** + * @return float + */ + public function getBaseTotalRefunded() + { + return (float) $this->_getData('base_total_refunded'); + } + + /** + * @return float + */ + public function getDiscountAmount() + { + return (float) $this->_getData('discount_amount'); + } + + /** + * @return float + */ + public function getDiscountCanceled() + { + return (float) $this->_getData('discount_canceled'); + } + + /** + * @return float + */ + public function getDiscountInvoiced() + { + return (float) $this->_getData('discount_invoiced'); + } + + /** + * @return float + */ + public function getDiscountRefunded() + { + return (float) $this->_getData('discount_refunded'); + } + + /** + * @return float + */ + public function getGrandTotal() + { + return (float) $this->_getData('grand_total'); + } + + /** + * @return float + */ + public function getHiddenTaxAmount() + { + return (float) $this->_getData('hidden_tax_amount'); + } + + /** + * @return float + */ + public function getHiddenTaxInvoiced() + { + return (float) $this->_getData('hidden_tax_invoiced'); + } + + /** + * @return float + */ + public function getHiddenTaxRefunded() + { + return (float) $this->_getData('hidden_tax_refunded'); + } + + /** + * @return float + */ + public function getPaymentAuthorizationAmount() + { + return (float) $this->_getData('payment_authorization_amount'); + } + + /** + * @return float + */ + public function getQuantity() + { + return (float) $this->_getData('quantity'); + } + + /** + * @return float + */ + public function getQuoteBaseGrandTotal() + { + return (float) $this->_getData('quote_base_grand_total'); + } + + /** + * @return float + */ + public function getRevenue() + { + return (float) $this->_getData('revenue'); + } + + /** + * @return float + */ + public function getShipping() + { + return (float) $this->_getData('shipping'); + } + + /** + * @return float + */ + public function getShippingAmount() + { + return (float) $this->_getData('shipping_amount'); + } + + /** + * @return float + */ + public function getShippingCanceled() + { + return (float) $this->_getData('shipping_canceled'); + } + + /** + * @return float + */ + public function getShippingDiscountAmount() + { + return (float) $this->_getData('shipping_discount_amount'); + } + + /** + * @return float + */ + public function getShippingHiddenTaxAmount() + { + return (float) $this->_getData('shipping_hidden_tax_amount'); + } + + /** + * @return float + */ + public function getShippingHiddenTaxInvoiced() + { + return (float) $this->_getData('shipping_hidden_tax_invoiced'); + } + + /** + * @return float + */ + public function getShippingHiddenTaxRefunded() + { + return (float) $this->_getData('shipping_hidden_tax_refunded'); + } + + /** + * @return float + */ + public function getShippingInclTax() + { + return (float) $this->_getData('shipping_incl_tax'); + } + + /** + * @return float + */ + public function getShippingInvoiced() + { + return (float) $this->_getData('shipping_invoiced'); + } + + /** + * @return float + */ + public function getShippingRefunded() + { + return (float) $this->_getData('shipping_refunded'); + } + + /** + * @return float + */ + public function getShippingTaxAmount() + { + return (float) $this->_getData('shipping_tax_amount'); + } + + /** + * @return float + */ + public function getShippingTaxInvoiced() + { + return (float) $this->_getData('shipping_tax_invoiced'); + } + + /** + * @return float + */ + public function getShippingTaxRefunded() + { + return (float) $this->_getData('shipping_tax_refunded'); + } + + /** + * @return float + */ + public function getStoreToBaseRate() + { + return (float) $this->_getData('store_to_base_rate'); + } + + /** + * @return float + */ + public function getStoreToOrderRate() + { + return (float) $this->_getData('store_to_order_rate'); + } + + /** + * @return float + */ + public function getSubtotal() + { + return (float) $this->_getData('subtotal'); + } + + /** + * @return float + */ + public function getSubtotalCanceled() + { + return (float) $this->_getData('subtotal_canceled'); + } + + /** + * @return float + */ + public function getSubtotalInclTax() + { + return (float) $this->_getData('subtotal_incl_tax'); + } + + /** + * @return float + */ + public function getSubtotalInvoiced() + { + return (float) $this->_getData('subtotal_invoiced'); + } + + /** + * @return float + */ + public function getSubtotalRefunded() + { + return (float) $this->_getData('subtotal_refunded'); + } + + /** + * @return float + */ + public function getTax() + { + return (float) $this->_getData('tax'); + } + + /** + * @return float + */ + public function getTaxAmount() + { + return (float) $this->_getData('tax_amount'); + } + + /** + * @return float + */ + public function getTaxCanceled() + { + return (float) $this->_getData('tax_canceled'); + } + + /** + * @return float + */ + public function getTaxInvoiced() + { + return (float) $this->_getData('tax_invoiced'); + } + + /** + * @return float + */ + public function getTaxRefunded() + { + return (float) $this->_getData('tax_refunded'); + } + + /** + * @return float + */ + public function getTotalCanceled() + { + return (float) $this->_getData('total_canceled'); + } + + /** + * @return float + */ + public function getTotalInvoiced() + { + return (float) $this->_getData('total_invoiced'); + } + + /** + * @return float + */ + public function getTotalOfflineRefunded() + { + return (float) $this->_getData('total_offline_refunded'); + } + + /** + * @return float + */ + public function getTotalOnlineRefunded() + { + return (float) $this->_getData('total_online_refunded'); + } + + /** + * @return float + */ + public function getTotalPaid() + { + return (float) $this->_getData('total_paid'); + } + + /** + * @return float + */ + public function getTotalQtyOrdered() + { + return (float) $this->_getData('total_qty_ordered'); + } + + /** + * @return float + */ + public function getTotalRefunded() + { + return (float) $this->_getData('total_refunded'); + } + + /** + * @return float + */ + public function getWeight() + { + return (float) $this->_getData('weight'); + } + + /** + * @return $this + */ + public function setAdjustmentNegative($value) + { + return $this->setData('adjustment_negative', (float) $value); + } + + /** + * @return $this + */ + public function setAdjustmentPositive($value) + { + return $this->setData('adjustment_positive', (float) $value); + } + + /** + * @return $this + */ + public function setBaseAdjustmentNegative($value) + { + return $this->setData('base_adjustment_negative', (float) $value); + } + + /** + * @return $this + */ + public function setBaseAdjustmentPositive($value) + { + return $this->setData('base_adjustment_positive', (float) $value); + } + + /** + * @return $this + */ + public function setBaseDiscountAmount($value) + { + return $this->setData('base_discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseDiscountCanceled($value) + { + return $this->setData('base_discount_canceled', (float) $value); + } + + /** + * @return $this + */ + public function setBaseDiscountInvoiced($value) + { + return $this->setData('base_discount_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setBaseDiscountRefunded($value) + { + return $this->setData('base_discount_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setBaseGrandTotal($value) + { + return $this->setData('base_grand_total', (float) $value); + } + + /** + * @return $this + */ + public function setBaseHiddenTaxAmount($value) + { + return $this->setData('base_hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseHiddenTaxInvoiced($value) + { + return $this->setData('base_hidden_tax_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setBaseHiddenTaxRefunded($value) + { + return $this->setData('base_hidden_tax_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingAmount($value) + { + return $this->setData('base_shipping_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingCanceled($value) + { + return $this->setData('base_shipping_canceled', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingDiscountAmount($value) + { + return $this->setData('base_shipping_discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingHiddenTaxAmount($value) + { + return $this->setData('base_shipping_hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingInclTax($value) + { + return $this->setData('base_shipping_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingInvoiced($value) + { + return $this->setData('base_shipping_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingRefunded($value) + { + return $this->setData('base_shipping_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingTaxAmount($value) + { + return $this->setData('base_shipping_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingTaxInvoiced($value) + { + return $this->setData('base_shipping_tax_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingTaxRefunded($value) + { + return $this->setData('base_shipping_tax_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setBaseSubtotal($value) + { + return $this->setData('base_subtotal', (float) $value); + } + + /** + * @return $this + */ + public function setBaseSubtotalCanceled($value) + { + return $this->setData('base_subtotal_canceled', (float) $value); + } + + /** + * @return $this + */ + public function setBaseSubtotalInclTax($value) + { + return $this->setData('base_subtotal_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setBaseSubtotalInvoiced($value) + { + return $this->setData('base_subtotal_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setBaseSubtotalRefunded($value) + { + return $this->setData('base_subtotal_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxAmount($value) + { + return $this->setData('base_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxCanceled($value) + { + return $this->setData('base_tax_canceled', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxInvoiced($value) + { + return $this->setData('base_tax_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxRefunded($value) + { + return $this->setData('base_tax_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setBaseToGlobalRate($value) + { + return $this->setData('base_to_global_rate', (float) $value); + } + + /** + * @return $this + */ + public function setBaseToOrderRate($value) + { + return $this->setData('base_to_order_rate', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTotalCanceled($value) + { + return $this->setData('base_total_canceled', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTotalDue($value) + { + return $this->setData('base_total_due', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTotalInvoiced($value) + { + return $this->setData('base_total_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTotalInvoicedCost($value) + { + return $this->setData('base_total_invoiced_cost', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTotalOfflineRefunded($value) + { + return $this->setData('base_total_offline_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTotalOnlineRefunded($value) + { + return $this->setData('base_total_online_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTotalPaid($value) + { + return $this->setData('base_total_paid', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTotalQtyOrdered($value) + { + return $this->setData('base_total_qty_ordered', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTotalRefunded($value) + { + return $this->setData('base_total_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountAmount($value) + { + return $this->setData('discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountCanceled($value) + { + return $this->setData('discount_canceled', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountInvoiced($value) + { + return $this->setData('discount_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountRefunded($value) + { + return $this->setData('discount_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setGrandTotal($value) + { + return $this->setData('grand_total', (float) $value); + } + + /** + * @return $this + */ + public function setHiddenTaxAmount($value) + { + return $this->setData('hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setHiddenTaxInvoiced($value) + { + return $this->setData('hidden_tax_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setHiddenTaxRefunded($value) + { + return $this->setData('hidden_tax_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setPaymentAuthorizationAmount($value) + { + return $this->setData('payment_authorization_amount', (float) $value); + } + + /** + * @return $this + */ + public function setShippingAmount($value) + { + return $this->setData('shipping_amount', (float) $value); + } + + /** + * @return $this + */ + public function setShippingCanceled($value) + { + return $this->setData('shipping_canceled', (float) $value); + } + + /** + * @return $this + */ + public function setShippingDiscountAmount($value) + { + return $this->setData('shipping_discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setShippingHiddenTaxAmount($value) + { + return $this->setData('shipping_hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setShippingInclTax($value) + { + return $this->setData('shipping_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setShippingInvoiced($value) + { + return $this->setData('shipping_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setShippingRefunded($value) + { + return $this->setData('shipping_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setShippingTaxAmount($value) + { + return $this->setData('shipping_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setShippingTaxInvoiced($value) + { + return $this->setData('shipping_tax_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setShippingTaxRefunded($value) + { + return $this->setData('shipping_tax_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setStoreToBaseRate($value) + { + return $this->setData('store_to_base_rate', (float) $value); + } + + /** + * @return $this + */ + public function setStoreToOrderRate($value) + { + return $this->setData('store_to_order_rate', (float) $value); + } + + /** + * @return $this + */ + public function setSubtotal($value) + { + return $this->setData('subtotal', (float) $value); + } + + /** + * @return $this + */ + public function setSubtotalCanceled($value) + { + return $this->setData('subtotal_canceled', (float) $value); + } + + /** + * @return $this + */ + public function setSubtotalInclTax($value) + { + return $this->setData('subtotal_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setSubtotalInvoiced($value) + { + return $this->setData('subtotal_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setSubtotalRefunded($value) + { + return $this->setData('subtotal_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setTaxAmount($value) + { + return $this->setData('tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setTaxCanceled($value) + { + return $this->setData('tax_canceled', (float) $value); + } + + /** + * @return $this + */ + public function setTaxInvoiced($value) + { + return $this->setData('tax_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setTaxRefunded($value) + { + return $this->setData('tax_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setTotalCanceled($value) + { + return $this->setData('total_canceled', (float) $value); + } + + /** + * @return $this + */ + public function setTotalDue($value) + { + return $this->setData('total_due', (float) $value); + } + + /** + * @return $this + */ + public function setTotalInvoiced($value) + { + return $this->setData('total_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setTotalOfflineRefunded($value) + { + return $this->setData('total_offline_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setTotalOnlineRefunded($value) + { + return $this->setData('total_online_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setTotalPaid($value) + { + return $this->setData('total_paid', (float) $value); + } + + /** + * @return $this + */ + public function setTotalQtyOrdered($value) + { + return $this->setData('total_qty_ordered', (float) $value); + } + + /** + * @return $this + */ + public function setTotalRefunded($value) + { + return $this->setData('total_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setWeight($value) + { + return $this->setData('weight', (float) $value); + } } diff --git a/app/code/core/Mage/Sales/Model/Order/Creditmemo.php b/app/code/core/Mage/Sales/Model/Order/Creditmemo.php index f6743a80d14..7188cf12fe2 100644 --- a/app/code/core/Mage/Sales/Model/Order/Creditmemo.php +++ b/app/code/core/Mage/Sales/Model/Order/Creditmemo.php @@ -31,29 +31,9 @@ * @method Mage_Sales_Model_Resource_Order_Creditmemo getResource() * @method Mage_Sales_Model_Resource_Order_Creditmemo_Collection getCollection() * - * @method float getAdjustment() - * @method $this setAdjustment(float $value) - * @method float getAdjustmentNegative() - * @method float getAdjustmentPositive() * - * @method float getBaseAdjustment() - * @method $this setBaseAdjustment(float $value) - * @method float getBaseAdjustmentNegative() - * @method $this setBaseAdjustmentNegative(float $value) - * @method float getBaseAdjustmentPositive() - * @method $this setBaseAdjustmentPositive(float $value) * @method string getBaseCurrencyCode() * @method $this setBaseCurrencyCode(string $value) - * @method float getBaseDiscountAmount() - * @method $this setBaseDiscountAmount(float $value) - * @method float getBaseShippingAmount() - * @method $this setBaseShippingAmount(float $value) - * @method float getBaseShippingTaxAmount() - * @method $this setBaseShippingTaxAmount(float $value) - * @method float getBaseSubtotalInclTax() - * @method $this setBaseSubtotalInclTax(float $value) - * @method float getBaseToOrderRate() - * @method $this setBaseToOrderRate(float $value) * @method int getBillingAddressId() * @method $this setBillingAddressId(int $value) * @@ -63,45 +43,20 @@ * @method int getCreditmemoStatus() * @method $this setCreditmemoStatus(int $value) * - * @method float getDiscountAmount() - * @method $this setDiscountAmount(float $value) * * @method int getEmailSent() * @method $this setEmailSent(int $value) * - * @method float getGrandTotal() - * @method $this setGrandTotal(float $value) * * @method $this setStoreId(int $value) - * @method float getStoreToOrderRate() - * @method $this setStoreToOrderRate(float $value) - * @method float getShippingAmount() * @method int getShippingAddressId() * @method $this setShippingAddressId(int $value) - * @method float getShippingTaxAmount() - * @method $this setShippingTaxAmount(float $value) - * @method float getSubtotal() - * @method $this setSubtotal(float $value) - * @method float getSubtotalInclTax() - * @method $this setSubtotalInclTax(float $value) * @method int getState() * @method $this setState(int $value) - * @method float getStoreToBaseRate() - * @method $this setStoreToBaseRate(float $value) * - * @method float getTaxAmount() - * @method $this setTaxAmount(float $value) * @method string getTransactionId() * @method $this setTransactionId(string $value) * - * @method float getBaseToGlobalRate() - * @method $this setBaseToGlobalRate(float $value) - * @method float getBaseSubtotal() - * @method $this setBaseSubtotal(float $value) - * @method float getBaseGrandTotal() - * @method $this setBaseGrandTotal(float $value) - * @method float getBaseTaxAmount() - * @method $this setBaseTaxAmount(float $value) * @method int getOrderId() * @method $this setOrderId(int $value) * @method int getInvoiceId() @@ -118,37 +73,18 @@ * @method $this setIncrementId(string $value) * @method string getUpdatedAt() * @method $this setUpdatedAt(string $value) - * @method float getHiddenTaxAmount() - * @method $this setHiddenTaxAmount(float $value) - * @method float getBaseHiddenTaxAmount() - * @method $this setBaseHiddenTaxAmount(float $value) - * @method float getShippingHiddenTaxAmount() - * @method $this setShippingHiddenTaxAmount(float $value) - * @method float getBaseShippingHiddenTaxAmount() - * @method $this setBaseShippingHiddenTaxAmount(float $value) - * @method float getShippingInclTax() - * @method $this setShippingInclTax(float $value) - * @method float getBaseShippingInclTax() - * @method $this setPaymentRefundDisallowed(float $value) * @method $this setAutomaticallyCreated(bool $value) * @method Mage_Sales_Model_Order_Invoice getInvoice() * @method bool getDoTransaction() * @method Mage_Sales_Model_Order_Invoice setDoTransaction(bool $value) - * @method float getBaseCost() - * @method float getBaseCustomerBalanceReturnMax() - * @method Mage_Sales_Model_Order_Invoice setBaseCustomerBalanceTotalRefunded(float $value) - * @method Mage_Sales_Model_Order_Invoice setBsCustomerBalTotalRefunded(float $value) * @method Mage_Sales_Model_Order_Invoice setCustomerBalanceRefundFlag(bool $value) * @method bool hasBaseShippingAmount() - * @method Mage_Sales_Model_Order_Invoice setBaseShippingInclTax(float $value) * @method getCanVoidFlag() * @method $this setCanVoidFlag(bool $value) - * @method $this setBaseCost(float $value) * @method $this setCustomerId(int $value) * @method $this setInvoice(Mage_Sales_Model_Order_Invoice $value) * @method bool getOfflineRequested() * @method bool getPaymentRefundDisallowed() - * @method $this setTotalQty(float $value) * * @category Mage * @package Mage_Sales @@ -1031,4 +967,516 @@ public function isLast() } return true; } + + /** + * @return float + */ + public function getAdjustment() + { + return (float) $this->_getData('adjustment'); + } + + /** + * @return float + */ + public function getAdjustmentNegative() + { + return (float) $this->_getData('adjustment_negative'); + } + + /** + * @return float + */ + public function getAdjustmentPositive() + { + return (float) $this->_getData('adjustment_positive'); + } + + /** + * @return float + */ + public function getBaseAdjustment() + { + return (float) $this->_getData('base_adjustment'); + } + + /** + * @return float + */ + public function getBaseAdjustmentNegative() + { + return (float) $this->_getData('base_adjustment_negative'); + } + + /** + * @return float + */ + public function getBaseAdjustmentPositive() + { + return (float) $this->_getData('base_adjustment_positive'); + } + + /** + * @return float + */ + public function getBaseDiscountAmount() + { + return (float) $this->_getData('base_discount_amount'); + } + + /** + * @return float + */ + public function getBaseShippingAmount() + { + return (float) $this->_getData('base_shipping_amount'); + } + + /** + * @return float + */ + public function getBaseShippingTaxAmount() + { + return (float) $this->_getData('base_shipping_tax_amount'); + } + + /** + * @return float + */ + public function getBaseSubtotalInclTax() + { + return (float) $this->_getData('base_subtotal_incl_tax'); + } + + /** + * @return float + */ + public function getBaseToOrderRate() + { + return (float) $this->_getData('base_to_order_rate'); + } + + /** + * @return float + */ + public function getDiscountAmount() + { + return (float) $this->_getData('discount_amount'); + } + + /** + * @return float + */ + public function getGrandTotal() + { + return (float) $this->_getData('grand_total'); + } + + /** + * @return float + */ + public function getStoreToOrderRate() + { + return (float) $this->_getData('store_to_order_rate'); + } + + /** + * @return float + */ + public function getShippingAmount() + { + return (float) $this->_getData('shipping_amount'); + } + + /** + * @return float + */ + public function getShippingTaxAmount() + { + return (float) $this->_getData('shipping_tax_amount'); + } + + /** + * @return float + */ + public function getSubtotal() + { + return (float) $this->_getData('subtotal'); + } + + /** + * @return float + */ + public function getSubtotalInclTax() + { + return (float) $this->_getData('subtotal_incl_tax'); + } + + /** + * @return float + */ + public function getStoreToBaseRate() + { + return (float) $this->_getData('store_to_base_rate'); + } + + /** + * @return float + */ + public function getTaxAmount() + { + return (float) $this->_getData('tax_amount'); + } + + /** + * @return float + */ + public function getBaseToGlobalRate() + { + return (float) $this->_getData('base_to_global_rate'); + } + + /** + * @return float + */ + public function getBaseSubtotal() + { + return (float) $this->_getData('base_subtotal'); + } + + /** + * @return float + */ + public function getBaseGrandTotal() + { + return (float) $this->_getData('base_grand_total'); + } + + /** + * @return float + */ + public function getBaseTaxAmount() + { + return (float) $this->_getData('base_tax_amount'); + } + + /** + * @return float + */ + public function getHiddenTaxAmount() + { + return (float) $this->_getData('hidden_tax_amount'); + } + + /** + * @return float + */ + public function getBaseHiddenTaxAmount() + { + return (float) $this->_getData('base_hidden_tax_amount'); + } + + /** + * @return float + */ + public function getShippingHiddenTaxAmount() + { + return (float) $this->_getData('shipping_hidden_tax_amount'); + } + + /** + * @return float + */ + public function getBaseShippingHiddenTaxAmount() + { + return (float) $this->_getData('base_shipping_hidden_tax_amount'); + } + + /** + * @return float + */ + public function getShippingInclTax() + { + return (float) $this->_getData('shipping_incl_tax'); + } + + /** + * @return float + */ + public function getBaseShippingInclTax() + { + return (float) $this->_getData('base_shipping_incl_tax'); + } + + /** + * @return float + */ + public function getBaseCost() + { + return (float) $this->_getData('base_cost'); + } + + /** + * @return float + */ + public function getBaseCustomerBalanceReturnMax() + { + return (float) $this->_getData('base_customer_balance_return_max'); + } + + /** + * @return $this + */ + public function setBaseCustomerBalanceTotalRefunded($value) + { + return $this->setData('base_customer_balance_total_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setBsCustomerBalTotalRefunded($value) + { + return $this->setData('bs_customer_bal_total_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingInclTax($value) + { + return $this->setData('base_shipping_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setAdjustment($value) + { + return $this->setData('adjustment', (float) $value); + } + + /** + * @return $this + */ + public function setBaseAdjustment($value) + { + return $this->setData('base_adjustment', (float) $value); + } + + /** + * @return $this + */ + public function setBaseAdjustmentNegative($value) + { + return $this->setData('base_adjustment_negative', (float) $value); + } + + /** + * @return $this + */ + public function setBaseAdjustmentPositive($value) + { + return $this->setData('base_adjustment_positive', (float) $value); + } + + /** + * @return $this + */ + public function setBaseDiscountAmount($value) + { + return $this->setData('base_discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingAmount($value) + { + return $this->setData('base_shipping_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingTaxAmount($value) + { + return $this->setData('base_shipping_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseSubtotalInclTax($value) + { + return $this->setData('base_subtotal_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setBaseToOrderRate($value) + { + return $this->setData('base_to_order_rate', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountAmount($value) + { + return $this->setData('discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setGrandTotal($value) + { + return $this->setData('grand_total', (float) $value); + } + + /** + * @return $this + */ + public function setStoreToOrderRate($value) + { + return $this->setData('store_to_order_rate', (float) $value); + } + + /** + * @return $this + */ + public function setShippingTaxAmount($value) + { + return $this->setData('shipping_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setSubtotal($value) + { + return $this->setData('subtotal', (float) $value); + } + + /** + * @return $this + */ + public function setSubtotalInclTax($value) + { + return $this->setData('subtotal_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setStoreToBaseRate($value) + { + return $this->setData('store_to_base_rate', (float) $value); + } + + /** + * @return $this + */ + public function setTaxAmount($value) + { + return $this->setData('tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseToGlobalRate($value) + { + return $this->setData('base_to_global_rate', (float) $value); + } + + /** + * @return $this + */ + public function setBaseSubtotal($value) + { + return $this->setData('base_subtotal', (float) $value); + } + + /** + * @return $this + */ + public function setBaseGrandTotal($value) + { + return $this->setData('base_grand_total', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxAmount($value) + { + return $this->setData('base_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setHiddenTaxAmount($value) + { + return $this->setData('hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseHiddenTaxAmount($value) + { + return $this->setData('base_hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setShippingHiddenTaxAmount($value) + { + return $this->setData('shipping_hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingHiddenTaxAmount($value) + { + return $this->setData('base_shipping_hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setShippingInclTax($value) + { + return $this->setData('shipping_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setPaymentRefundDisallowed($value) + { + return $this->setData('payment_refund_disallowed', (float) $value); + } + + /** + * @return $this + */ + public function setBaseCost($value) + { + return $this->setData('base_cost', (float) $value); + } + + /** + * @return $this + */ + public function setTotalQty($value) + { + return $this->setData('total_qty', (float) $value); + } } diff --git a/app/code/core/Mage/Sales/Model/Order/Creditmemo/Item.php b/app/code/core/Mage/Sales/Model/Order/Creditmemo/Item.php index bbc742f5927..b35fc3dd6e3 100644 --- a/app/code/core/Mage/Sales/Model/Order/Creditmemo/Item.php +++ b/app/code/core/Mage/Sales/Model/Order/Creditmemo/Item.php @@ -37,30 +37,6 @@ * @method bool hasBackToStock() * @method bool getBackToStock() * @method $this setBackToStock(bool $value) - * @method float getBaseCost() - * @method $this setBaseCost(float $value) - * @method float getBaseDiscountAmount() - * @method $this setBaseDiscountAmount(float $value) - * @method float getBaseHiddenTaxAmount() - * @method $this setBaseHiddenTaxAmount(float $value) - * @method float getBasePrice() - * @method $this setBasePrice(float $value) - * @method float getBasePriceInclTax() - * @method $this setBasePriceInclTax(float $value) - * @method float getBaseRowTotal() - * @method $this setBaseRowTotal(float $value) - * @method float getBaseRowTotalInclTax() - * @method $this setBaseRowTotalInclTax(float $value) - * @method float getBaseTaxAmount() - * @method $this setBaseTaxAmount(float $value) - * @method float getBaseWeeeTaxAppliedAmount() - * @method $this setBaseWeeeTaxAppliedAmount(float $value) - * @method float getBaseWeeeTaxAppliedRowAmount() - * @method $this setBaseWeeeTaxAppliedRowAmount(float $value) - * @method float getBaseWeeeTaxDisposition() - * @method $this setBaseWeeeTaxDisposition(float $value) - * @method float getBaseWeeeTaxRowDisposition() - * @method $this setBaseWeeeTaxRowDisposition(float $value) * * @method bool hasCanReturnToStock() * @method bool getCanReturnToStock() @@ -68,11 +44,7 @@ * * @method string getDescription() * @method $this setDescription(string $value) - * @method float getDiscountAmount() - * @method $this setDiscountAmount(float $value) * - * @method float getHiddenTaxAmount() - * @method $this setHiddenTaxAmount(float $value) * * @method string getName() * @method $this setName(string $value) @@ -82,37 +54,18 @@ * * @method int getParentId() * @method $this setParentId(int $value) - * @method float getPrice() - * @method $this setPrice(float $value) - * @method float getPriceInclTax() - * @method $this setPriceInclTax(float $value) * @method int getProductId() * @method $this setProductId(int $value) * - * @method float getQty() * - * @method float getRowTotal() - * @method $this setRowTotal(float $value) - * @method float getRowTotalInclTax() - * @method $this setRowTotalInclTax(float $value) * * @method string getSku() * @method $this setSku(string $value) * @method $this setStoreId(int $value) * - * @method float getTaxAmount() - * @method $this setTaxAmount(float $value) * - * @method float getWeeeTaxAppliedAmount() - * @method $this setWeeeTaxAppliedAmount(float $value) - * @method float getWeeeTaxAppliedRowAmount() - * @method $this setWeeeTaxAppliedRowAmount(float $value) * @method string getWeeeTaxApplied() * @method $this setWeeeTaxApplied(string $value) - * @method float getWeeeTaxDisposition() - * @method $this setWeeeTaxDisposition(float $value) - * @method float getWeeeTaxRowDisposition() - * @method $this setWeeeTaxRowDisposition(float $value) * * @category Mage * @package Mage_Sales @@ -332,4 +285,380 @@ protected function _beforeSave() return $this; } + + /** + * @return float + */ + public function getBaseCost() + { + return (float) $this->_getData('base_cost'); + } + + /** + * @return float + */ + public function getBaseDiscountAmount() + { + return (float) $this->_getData('base_discount_amount'); + } + + /** + * @return float + */ + public function getBaseHiddenTaxAmount() + { + return (float) $this->_getData('base_hidden_tax_amount'); + } + + /** + * @return float + */ + public function getBasePrice() + { + return (float) $this->_getData('base_price'); + } + + /** + * @return float + */ + public function getBasePriceInclTax() + { + return (float) $this->_getData('base_price_incl_tax'); + } + + /** + * @return float + */ + public function getBaseRowTotal() + { + return (float) $this->_getData('base_row_total'); + } + + /** + * @return float + */ + public function getBaseRowTotalInclTax() + { + return (float) $this->_getData('base_row_total_incl_tax'); + } + + /** + * @return float + */ + public function getBaseTaxAmount() + { + return (float) $this->_getData('base_tax_amount'); + } + + /** + * @return float + */ + public function getBaseWeeeTaxAppliedAmount() + { + return (float) $this->_getData('base_weee_tax_applied_amount'); + } + + /** + * @return float + */ + public function getBaseWeeeTaxAppliedRowAmount() + { + return (float) $this->_getData('base_weee_tax_applied_row_amount'); + } + + /** + * @return float + */ + public function getBaseWeeeTaxDisposition() + { + return (float) $this->_getData('base_weee_tax_disposition'); + } + + /** + * @return float + */ + public function getBaseWeeeTaxRowDisposition() + { + return (float) $this->_getData('base_weee_tax_row_disposition'); + } + + /** + * @return float + */ + public function getDiscountAmount() + { + return (float) $this->_getData('discount_amount'); + } + + /** + * @return float + */ + public function getHiddenTaxAmount() + { + return (float) $this->_getData('hidden_tax_amount'); + } + + /** + * @return float + */ + public function getPrice() + { + return (float) $this->_getData('price'); + } + + /** + * @return float + */ + public function getPriceInclTax() + { + return (float) $this->_getData('price_incl_tax'); + } + + /** + * @return float + */ + public function getQty() + { + return (float) $this->_getData('qty'); + } + + /** + * @return float + */ + public function getRowTotal() + { + return (float) $this->_getData('row_total'); + } + + /** + * @return float + */ + public function getRowTotalInclTax() + { + return (float) $this->_getData('row_total_incl_tax'); + } + + /** + * @return float + */ + public function getTaxAmount() + { + return (float) $this->_getData('tax_amount'); + } + + /** + * @return float + */ + public function getWeeeTaxAppliedAmount() + { + return (float) $this->_getData('weee_tax_applied_amount'); + } + + /** + * @return float + */ + public function getWeeeTaxAppliedRowAmount() + { + return (float) $this->_getData('weee_tax_applied_row_amount'); + } + + /** + * @return float + */ + public function getWeeeTaxDisposition() + { + return (float) $this->_getData('weee_tax_disposition'); + } + + /** + * @return float + */ + public function getWeeeTaxRowDisposition() + { + return (float) $this->_getData('weee_tax_row_disposition'); + } + + /** + * @return $this + */ + public function setBaseCost($value) + { + return $this->setData('base_cost', (float) $value); + } + + /** + * @return $this + */ + public function setBaseDiscountAmount($value) + { + return $this->setData('base_discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseHiddenTaxAmount($value) + { + return $this->setData('base_hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBasePrice($value) + { + return $this->setData('base_price', (float) $value); + } + + /** + * @return $this + */ + public function setBasePriceInclTax($value) + { + return $this->setData('base_price_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setBaseRowTotal($value) + { + return $this->setData('base_row_total', (float) $value); + } + + /** + * @return $this + */ + public function setBaseRowTotalInclTax($value) + { + return $this->setData('base_row_total_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxAmount($value) + { + return $this->setData('base_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeTaxAppliedAmount($value) + { + return $this->setData('base_weee_tax_applied_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeTaxAppliedRowAmount($value) + { + return $this->setData('base_weee_tax_applied_row_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeTaxDisposition($value) + { + return $this->setData('base_weee_tax_disposition', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeTaxRowDisposition($value) + { + return $this->setData('base_weee_tax_row_disposition', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountAmount($value) + { + return $this->setData('discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setHiddenTaxAmount($value) + { + return $this->setData('hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setPrice($value) + { + return $this->setData('price', (float) $value); + } + + /** + * @return $this + */ + public function setPriceInclTax($value) + { + return $this->setData('price_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setRowTotal($value) + { + return $this->setData('row_total', (float) $value); + } + + /** + * @return $this + */ + public function setRowTotalInclTax($value) + { + return $this->setData('row_total_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setTaxAmount($value) + { + return $this->setData('tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeTaxAppliedAmount($value) + { + return $this->setData('weee_tax_applied_amount', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeTaxAppliedRowAmount($value) + { + return $this->setData('weee_tax_applied_row_amount', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeTaxDisposition($value) + { + return $this->setData('weee_tax_disposition', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeTaxRowDisposition($value) + { + return $this->setData('weee_tax_row_disposition', (float) $value); + } } diff --git a/app/code/core/Mage/Sales/Model/Order/Invoice.php b/app/code/core/Mage/Sales/Model/Order/Invoice.php index e1b6ffd51da..8b9ebc5e42b 100644 --- a/app/code/core/Mage/Sales/Model/Order/Invoice.php +++ b/app/code/core/Mage/Sales/Model/Order/Invoice.php @@ -32,44 +32,6 @@ * @method string getBackUrl() * @method int getStoreId() * @method $this setStoreId(int $value) - * @method float getBaseGrandTotal() - * @method $this setBaseGrandTotal(float $value) - * @method float getShippingTaxAmount() - * @method $this setShippingTaxAmount(float $value) - * @method float getTaxAmount() - * @method $this setTaxAmount(float $value) - * @method float getBaseTaxAmount() - * @method $this setBaseTaxAmount(float $value) - * @method float getStoreToOrderRate() - * @method $this setStoreToOrderRate(float $value) - * @method float getBaseShippingTaxAmount() - * @method $this setBaseShippingTaxAmount(float $value) - * @method float getBaseDiscountAmount() - * @method $this setBaseDiscountAmount(float $value) - * @method float getBaseToOrderRate() - * @method $this setBaseToOrderRate(float $value) - * @method float getGrandTotal() - * @method $this setGrandTotal(float $value) - * @method float getShippingAmount() - * @method $this setShippingAmount(float $value) - * @method float getSubtotalInclTax() - * @method $this setSubtotalInclTax(float $value) - * @method float getBaseSubtotalInclTax() - * @method $this setBaseSubtotalInclTax(float $value) - * @method float getStoreToBaseRate() - * @method $this setStoreToBaseRate(float $value) - * @method float getBaseShippingAmount() - * @method $this setBaseShippingAmount(float $value) - * @method float getTotalQty() - * @method $this setTotalQty(float $value) - * @method float getBaseToGlobalRate() - * @method $this setBaseToGlobalRate(float $value) - * @method float getSubtotal() - * @method $this setSubtotal(float $value) - * @method float getBaseSubtotal() - * @method $this setBaseSubtotal(float $value) - * @method float getDiscountAmount() - * @method $this setDiscountAmount(float $value) * @method int getBillingAddressId() * @method $this setBillingAddressId(int $value) * @method int getIsUsedForRefund() @@ -102,26 +64,10 @@ * @method $this setCreatedAt(string $value) * @method string getUpdatedAt() * @method $this setUpdatedAt(string $value) - * @method float getHiddenTaxAmount() - * @method $this setHiddenTaxAmount(float $value) - * @method float getBaseHiddenTaxAmount() - * @method $this setBaseHiddenTaxAmount(float $value) - * @method float getShippingHiddenTaxAmount() - * @method $this setShippingHiddenTaxAmount(float $value) - * @method float getBaseShippingHiddenTaxAmount() - * @method $this setBaseShippingHiddenTaxAmount(float $value) - * @method float getShippingInclTax() - * @method $this setShippingInclTax(float $value) - * @method float getBaseShippingInclTax() - * @method $this setBaseShippingInclTax(float $value) - * @method float getBaseTotalRefunded() * @method bool getIsPaid() - * @method $this setBaseTotalRefunded(float $value) * @method $this setCustomerId(int $value) * @method $this setIsPaid(bool $value) - * @method float getBaseCost() * @method string getRequestedCaptureCase() - * @method $this setBaseCost(float $value) * * @category Mage * @package Mage_Sales @@ -1037,4 +983,436 @@ protected function _afterSave() return parent::_afterSave(); } + + /** + * @return float + */ + public function getBaseGrandTotal() + { + return (float) $this->_getData('base_grand_total'); + } + + /** + * @return float + */ + public function getShippingTaxAmount() + { + return (float) $this->_getData('shipping_tax_amount'); + } + + /** + * @return float + */ + public function getTaxAmount() + { + return (float) $this->_getData('tax_amount'); + } + + /** + * @return float + */ + public function getBaseTaxAmount() + { + return (float) $this->_getData('base_tax_amount'); + } + + /** + * @return float + */ + public function getStoreToOrderRate() + { + return (float) $this->_getData('store_to_order_rate'); + } + + /** + * @return float + */ + public function getBaseShippingTaxAmount() + { + return (float) $this->_getData('base_shipping_tax_amount'); + } + + /** + * @return float + */ + public function getBaseDiscountAmount() + { + return (float) $this->_getData('base_discount_amount'); + } + + /** + * @return float + */ + public function getBaseToOrderRate() + { + return (float) $this->_getData('base_to_order_rate'); + } + + /** + * @return float + */ + public function getGrandTotal() + { + return (float) $this->_getData('grand_total'); + } + + /** + * @return float + */ + public function getShippingAmount() + { + return (float) $this->_getData('shipping_amount'); + } + + /** + * @return float + */ + public function getSubtotalInclTax() + { + return (float) $this->_getData('subtotal_incl_tax'); + } + + /** + * @return float + */ + public function getBaseSubtotalInclTax() + { + return (float) $this->_getData('base_subtotal_incl_tax'); + } + + /** + * @return float + */ + public function getStoreToBaseRate() + { + return (float) $this->_getData('store_to_base_rate'); + } + + /** + * @return float + */ + public function getBaseShippingAmount() + { + return (float) $this->_getData('base_shipping_amount'); + } + + /** + * @return float + */ + public function getTotalQty() + { + return (float) $this->_getData('total_qty'); + } + + /** + * @return float + */ + public function getBaseToGlobalRate() + { + return (float) $this->_getData('base_to_global_rate'); + } + + /** + * @return float + */ + public function getSubtotal() + { + return (float) $this->_getData('subtotal'); + } + + /** + * @return float + */ + public function getBaseSubtotal() + { + return (float) $this->_getData('base_subtotal'); + } + + /** + * @return float + */ + public function getDiscountAmount() + { + return (float) $this->_getData('discount_amount'); + } + + /** + * @return float + */ + public function getHiddenTaxAmount() + { + return (float) $this->_getData('hidden_tax_amount'); + } + + /** + * @return float + */ + public function getBaseHiddenTaxAmount() + { + return (float) $this->_getData('base_hidden_tax_amount'); + } + + /** + * @return float + */ + public function getShippingHiddenTaxAmount() + { + return (float) $this->_getData('shipping_hidden_tax_amount'); + } + + /** + * @return float + */ + public function getBaseShippingHiddenTaxAmount() + { + return (float) $this->_getData('base_shipping_hidden_tax_amount'); + } + + /** + * @return float + */ + public function getShippingInclTax() + { + return (float) $this->_getData('shipping_incl_tax'); + } + + /** + * @return float + */ + public function getBaseShippingInclTax() + { + return (float) $this->_getData('base_shipping_incl_tax'); + } + + /** + * @return float + */ + public function getBaseTotalRefunded() + { + return (float) $this->_getData('base_total_refunded'); + } + + /** + * @return float + */ + public function getBaseCost() + { + return (float) $this->_getData('base_cost'); + } + + /** + * @return $this + */ + public function setBaseGrandTotal($value) + { + return $this->setData('base_grand_total', (float) $value); + } + + /** + * @return $this + */ + public function setShippingTaxAmount($value) + { + return $this->setData('shipping_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setTaxAmount($value) + { + return $this->setData('tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxAmount($value) + { + return $this->setData('base_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setStoreToOrderRate($value) + { + return $this->setData('store_to_order_rate', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingTaxAmount($value) + { + return $this->setData('base_shipping_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseDiscountAmount($value) + { + return $this->setData('base_discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseToOrderRate($value) + { + return $this->setData('base_to_order_rate', (float) $value); + } + + /** + * @return $this + */ + public function setGrandTotal($value) + { + return $this->setData('grand_total', (float) $value); + } + + /** + * @return $this + */ + public function setShippingAmount($value) + { + return $this->setData('shipping_amount', (float) $value); + } + + /** + * @return $this + */ + public function setSubtotalInclTax($value) + { + return $this->setData('subtotal_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setBaseSubtotalInclTax($value) + { + return $this->setData('base_subtotal_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setStoreToBaseRate($value) + { + return $this->setData('store_to_base_rate', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingAmount($value) + { + return $this->setData('base_shipping_amount', (float) $value); + } + + /** + * @return $this + */ + public function setTotalQty($value) + { + return $this->setData('total_qty', (float) $value); + } + + /** + * @return $this + */ + public function setBaseToGlobalRate($value) + { + return $this->setData('base_to_global_rate', (float) $value); + } + + /** + * @return $this + */ + public function setSubtotal($value) + { + return $this->setData('subtotal', (float) $value); + } + + /** + * @return $this + */ + public function setBaseSubtotal($value) + { + return $this->setData('base_subtotal', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountAmount($value) + { + return $this->setData('discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setHiddenTaxAmount($value) + { + return $this->setData('hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseHiddenTaxAmount($value) + { + return $this->setData('base_hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setShippingHiddenTaxAmount($value) + { + return $this->setData('shipping_hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingHiddenTaxAmount($value) + { + return $this->setData('base_shipping_hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setShippingInclTax($value) + { + return $this->setData('shipping_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingInclTax($value) + { + return $this->setData('base_shipping_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTotalRefunded($value) + { + return $this->setData('base_total_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setBaseCost($value) + { + return $this->setData('base_cost', (float) $value); + } } diff --git a/app/code/core/Mage/Sales/Model/Order/Invoice/Item.php b/app/code/core/Mage/Sales/Model/Order/Invoice/Item.php index aea4acc56fa..17ba1e30f38 100644 --- a/app/code/core/Mage/Sales/Model/Order/Invoice/Item.php +++ b/app/code/core/Mage/Sales/Model/Order/Invoice/Item.php @@ -32,49 +32,6 @@ * @method Mage_Sales_Model_Resource_Order_Invoice_Item getResource() * @method int getParentId() * @method Mage_Sales_Model_Order_Invoice_Item setParentId(int $value) - * @method float getBasePrice() - * @method Mage_Sales_Model_Order_Invoice_Item setBasePrice(float $value) - * @method float getBaseWeeeTaxRowDisposition() - * @method Mage_Sales_Model_Order_Invoice_Item setBaseWeeeTaxRowDisposition(float $value) - * @method float getWeeeTaxAppliedRowAmount() - * @method Mage_Sales_Model_Order_Invoice_Item setWeeeTaxAppliedRowAmount(float $value) - * @method float getBaseWeeeTaxAppliedAmount() - * @method Mage_Sales_Model_Order_Invoice_Item setBaseWeeeTaxAppliedAmount(float $value) - * @method float getTaxAmount() - * @method Mage_Sales_Model_Order_Invoice_Item setTaxAmount(float $value) - * @method float getBaseRowTotal() - * @method Mage_Sales_Model_Order_Invoice_Item setBaseRowTotal(float $value) - * @method float getDiscountAmount() - * @method Mage_Sales_Model_Order_Invoice_Item setDiscountAmount(float $value) - * @method float getRowTotal() - * @method Mage_Sales_Model_Order_Invoice_Item setRowTotal(float $value) - * @method float getWeeeTaxRowDisposition() - * @method Mage_Sales_Model_Order_Invoice_Item setWeeeTaxRowDisposition(float $value) - * @method float getBaseDiscountAmount() - * @method Mage_Sales_Model_Order_Invoice_Item setBaseDiscountAmount(float $value) - * @method float getBaseWeeeTaxDisposition() - * @method Mage_Sales_Model_Order_Invoice_Item setBaseWeeeTaxDisposition(float $value) - * @method float getPriceInclTax() - * @method Mage_Sales_Model_Order_Invoice_Item setPriceInclTax(float $value) - * @method float getWeeeTaxAppliedAmount() - * @method Mage_Sales_Model_Order_Invoice_Item setWeeeTaxAppliedAmount(float $value) - * @method float getBaseTaxAmount() - * @method Mage_Sales_Model_Order_Invoice_Item setBaseTaxAmount(float $value) - * @method float getBasePriceInclTax() - * @method Mage_Sales_Model_Order_Invoice_Item setBasePriceInclTax(float $value) - * @method float getQty() - * @method float getWeeeTaxDisposition() - * @method Mage_Sales_Model_Order_Invoice_Item setWeeeTaxDisposition(float $value) - * @method float getBaseCost() - * @method Mage_Sales_Model_Order_Invoice_Item setBaseCost(float $value) - * @method float getBaseWeeeTaxAppliedRowAmount() - * @method Mage_Sales_Model_Order_Invoice_Item setBaseWeeeTaxAppliedRowAmount(float $value) - * @method float getPrice() - * @method Mage_Sales_Model_Order_Invoice_Item setPrice(float $value) - * @method float getBaseRowTotalInclTax() - * @method Mage_Sales_Model_Order_Invoice_Item setBaseRowTotalInclTax(float $value) - * @method float getRowTotalInclTax() - * @method Mage_Sales_Model_Order_Invoice_Item setRowTotalInclTax(float $value) * @method int getProductId() * @method Mage_Sales_Model_Order_Invoice_Item setProductId(int $value) * @method int getOrderItemId() @@ -89,10 +46,6 @@ * @method Mage_Sales_Model_Order_Invoice_Item setSku(string $value) * @method string getName() * @method Mage_Sales_Model_Order_Invoice_Item setName(string $value) - * @method float getHiddenTaxAmount() - * @method Mage_Sales_Model_Order_Invoice_Item setHiddenTaxAmount(float $value) - * @method float getBaseHiddenTaxAmount() - * @method Mage_Sales_Model_Order_Invoice_Item setBaseHiddenTaxAmount(float $value) * @method Mage_Sales_Model_Order_Invoice_Item setStoreId(int $value) * * @category Mage @@ -128,6 +81,7 @@ protected function _initOldFieldsMap() $this->_oldFieldsMap = Mage::helper('sales')->getOldFieldMap('invoice_item'); return $this; } + /** * Declare invoice instance * @@ -332,4 +286,380 @@ protected function _afterSave() parent::_afterSave(); return $this; } + + /** + * @return float + */ + public function getBasePrice() + { + return (float) $this->_getData('base_price'); + } + + /** + * @return float + */ + public function getBaseWeeeTaxRowDisposition() + { + return (float) $this->_getData('base_weee_tax_row_disposition'); + } + + /** + * @return float + */ + public function getWeeeTaxAppliedRowAmount() + { + return (float) $this->_getData('weee_tax_applied_row_amount'); + } + + /** + * @return float + */ + public function getBaseWeeeTaxAppliedAmount() + { + return (float) $this->_getData('base_weee_tax_applied_amount'); + } + + /** + * @return float + */ + public function getTaxAmount() + { + return (float) $this->_getData('tax_amount'); + } + + /** + * @return float + */ + public function getBaseRowTotal() + { + return (float) $this->_getData('base_row_total'); + } + + /** + * @return float + */ + public function getDiscountAmount() + { + return (float) $this->_getData('discount_amount'); + } + + /** + * @return float + */ + public function getRowTotal() + { + return (float) $this->_getData('row_total'); + } + + /** + * @return float + */ + public function getWeeeTaxRowDisposition() + { + return (float) $this->_getData('weee_tax_row_disposition'); + } + + /** + * @return float + */ + public function getBaseDiscountAmount() + { + return (float) $this->_getData('base_discount_amount'); + } + + /** + * @return float + */ + public function getBaseWeeeTaxDisposition() + { + return (float) $this->_getData('base_weee_tax_disposition'); + } + + /** + * @return float + */ + public function getPriceInclTax() + { + return (float) $this->_getData('price_incl_tax'); + } + + /** + * @return float + */ + public function getWeeeTaxAppliedAmount() + { + return (float) $this->_getData('weee_tax_applied_amount'); + } + + /** + * @return float + */ + public function getBaseTaxAmount() + { + return (float) $this->_getData('base_tax_amount'); + } + + /** + * @return float + */ + public function getBasePriceInclTax() + { + return (float) $this->_getData('base_price_incl_tax'); + } + + /** + * @return float + */ + public function getQty() + { + return (float) $this->_getData('qty'); + } + + /** + * @return float + */ + public function getWeeeTaxDisposition() + { + return (float) $this->_getData('weee_tax_disposition'); + } + + /** + * @return float + */ + public function getBaseCost() + { + return (float) $this->_getData('base_cost'); + } + + /** + * @return float + */ + public function getBaseWeeeTaxAppliedRowAmount() + { + return (float) $this->_getData('base_weee_tax_applied_row_amount'); + } + + /** + * @return float + */ + public function getPrice() + { + return (float) $this->_getData('price'); + } + + /** + * @return float + */ + public function getBaseRowTotalInclTax() + { + return (float) $this->_getData('base_row_total_incl_tax'); + } + + /** + * @return float + */ + public function getRowTotalInclTax() + { + return (float) $this->_getData('row_total_incl_tax'); + } + + /** + * @return float + */ + public function getHiddenTaxAmount() + { + return (float) $this->_getData('hidden_tax_amount'); + } + + /** + * @return float + */ + public function getBaseHiddenTaxAmount() + { + return (float) $this->_getData('base_hidden_tax_amount'); + } + + /** + * @return $this + */ + public function setBasePrice($value) + { + return $this->setData('base_price', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeTaxRowDisposition($value) + { + return $this->setData('base_weee_tax_row_disposition', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeTaxAppliedRowAmount($value) + { + return $this->setData('weee_tax_applied_row_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeTaxAppliedAmount($value) + { + return $this->setData('base_weee_tax_applied_amount', (float) $value); + } + + /** + * @return $this + */ + public function setTaxAmount($value) + { + return $this->setData('tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseRowTotal($value) + { + return $this->setData('base_row_total', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountAmount($value) + { + return $this->setData('discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setRowTotal($value) + { + return $this->setData('row_total', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeTaxRowDisposition($value) + { + return $this->setData('weee_tax_row_disposition', (float) $value); + } + + /** + * @return $this + */ + public function setBaseDiscountAmount($value) + { + return $this->setData('base_discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeTaxDisposition($value) + { + return $this->setData('base_weee_tax_disposition', (float) $value); + } + + /** + * @return $this + */ + public function setPriceInclTax($value) + { + return $this->setData('price_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeTaxAppliedAmount($value) + { + return $this->setData('weee_tax_applied_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxAmount($value) + { + return $this->setData('base_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBasePriceInclTax($value) + { + return $this->setData('base_price_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeTaxDisposition($value) + { + return $this->setData('weee_tax_disposition', (float) $value); + } + + /** + * @return $this + */ + public function setBaseCost($value) + { + return $this->setData('base_cost', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeTaxAppliedRowAmount($value) + { + return $this->setData('base_weee_tax_applied_row_amount', (float) $value); + } + + /** + * @return $this + */ + public function setPrice($value) + { + return $this->setData('price', (float) $value); + } + + /** + * @return $this + */ + public function setBaseRowTotalInclTax($value) + { + return $this->setData('base_row_total_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setRowTotalInclTax($value) + { + return $this->setData('row_total_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setHiddenTaxAmount($value) + { + return $this->setData('hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseHiddenTaxAmount($value) + { + return $this->setData('base_hidden_tax_amount', (float) $value); + } } diff --git a/app/code/core/Mage/Sales/Model/Order/Item.php b/app/code/core/Mage/Sales/Model/Order/Item.php index 94f58b74a43..6f16ba41680 100644 --- a/app/code/core/Mage/Sales/Model/Order/Item.php +++ b/app/code/core/Mage/Sales/Model/Order/Item.php @@ -47,8 +47,6 @@ * @method $this setProductId(int $value) * @method string getProductType() * @method $this setProductType(string $value) - * @method float getWeight() - * @method $this setWeight(float $value) * @method int getIsVirtual() * @method $this setIsVirtual(int $value) * @method string getSku() @@ -67,128 +65,20 @@ * @method $this setIsQtyDecimal(int $value) * @method int getNoDiscount() * @method $this setNoDiscount(int $value) - * @method float getQtyBackordered() - * @method $this setQtyBackordered(float $value) - * @method float getQtyCanceled() - * @method $this setQtyCanceled(float $value) - * @method float getQtyInvoiced() - * @method $this setQtyInvoiced(float $value) - * @method float getQtyOrdered() - * @method $this setQtyOrdered(float $value) - * @method float getQtyRefunded() - * @method $this setQtyRefunded(float $value) - * @method float getQtyShipped() - * @method $this setQtyShipped(float $value) - * @method float getBaseCost() - * @method $this setBaseCost(float $value) - * @method float getPrice() - * @method $this setPrice(float $value) - * @method float getBasePrice() - * @method $this setBasePrice(float $value) - * @method $this setOriginalPrice(float $value) - * @method float getBaseOriginalPrice() - * @method $this setBaseOriginalPrice(float $value) - * @method float getTaxPercent() - * @method $this setTaxPercent(float $value) - * @method float getTaxAmount() - * @method $this setTaxAmount(float $value) - * @method float getBaseTaxAmount() - * @method $this setBaseTaxAmount(float $value) - * @method float getTaxInvoiced() - * @method $this setTaxInvoiced(float $value) - * @method float getBaseTaxInvoiced() - * @method $this setBaseTaxInvoiced(float $value) - * @method float getDiscountPercent() - * @method $this setDiscountPercent(float $value) - * @method float getDiscountAmount() - * @method $this setDiscountAmount(float $value) - * @method float getBaseDiscountAmount() - * @method $this setBaseDiscountAmount(float $value) - * @method float getDiscountInvoiced() - * @method $this setDiscountInvoiced(float $value) - * @method float getBaseDiscountInvoiced() - * @method $this setBaseDiscountInvoiced(float $value) - * @method float getAmountRefunded() - * @method $this setAmountRefunded(float $value) - * @method float getBaseAmountRefunded() - * @method $this setBaseAmountRefunded(float $value) - * @method float getRowTotal() - * @method $this setRowTotal(float $value) - * @method float getBaseRowTotal() - * @method $this setBaseRowTotal(float $value) - * @method float getRowInvoiced() - * @method $this setRowInvoiced(float $value) - * @method float getBaseRowInvoiced() - * @method $this setBaseRowInvoiced(float $value) - * @method float getRowWeight() - * @method $this setRowWeight(float $value) * @method int getGiftMessageId() * @method $this setGiftMessageId(int $value) * @method int getGiftMessageAvailable() * @method $this setGiftMessageAvailable(int $value) - * @method float getBaseTaxBeforeDiscount() - * @method $this setBaseTaxBeforeDiscount(float $value) - * @method float getTaxBeforeDiscount() - * @method $this setTaxBeforeDiscount(float $value) * @method string getExtOrderItemId() * @method $this setExtOrderItemId(string $value) * @method string getWeeeTaxApplied() * @method $this setWeeeTaxApplied(string $value) - * @method float getWeeeTaxAppliedAmount() - * @method $this setWeeeTaxAppliedAmount(float $value) - * @method float getWeeeTaxAppliedRowAmount() - * @method $this setWeeeTaxAppliedRowAmount(float $value) - * @method float getBaseWeeeTaxAppliedAmount() - * @method $this setBaseWeeeTaxAppliedAmount(float $value) - * @method float getBaseWeeeTaxAppliedRowAmount() - * @method $this setBaseWeeeTaxAppliedRowAmount(float $value) - * @method float getWeeeTaxDisposition() - * @method $this setWeeeTaxDisposition(float $value) - * @method float getWeeeTaxRowDisposition() - * @method $this setWeeeTaxRowDisposition(float $value) - * @method float getBaseWeeeTaxDisposition() - * @method $this setBaseWeeeTaxDisposition(float $value) - * @method float getBaseWeeeTaxRowDisposition() - * @method $this setBaseWeeeTaxRowDisposition(float $value) * @method int getLockedDoInvoice() * @method $this setLockedDoInvoice(int $value) * @method int getLockedDoShip() * @method $this setLockedDoShip(int $value) - * @method float getPriceInclTax() - * @method $this setPriceInclTax(float $value) - * @method float getBasePriceInclTax() - * @method $this setBasePriceInclTax(float $value) - * @method float getRowTotalInclTax() - * @method $this setRowTotalInclTax(float $value) - * @method float getBaseRowTotalInclTax() - * @method $this setBaseRowTotalInclTax(float $value) - * @method float getHiddenTaxAmount() - * @method $this setHiddenTaxAmount(float $value) - * @method float getBaseHiddenTaxAmount() - * @method $this setBaseHiddenTaxAmount(float $value) - * @method float getHiddenTaxInvoiced() - * @method $this setHiddenTaxInvoiced(float $value) - * @method float getBaseHiddenTaxInvoiced() - * @method $this setBaseHiddenTaxInvoiced(float $value) - * @method float getHiddenTaxRefunded() - * @method $this setHiddenTaxRefunded(float $value) - * @method float getBaseHiddenTaxRefunded() - * @method $this setBaseHiddenTaxRefunded(float $value) * @method int getIsNominal() * @method $this setIsNominal(int $value) - * @method float getTaxCanceled() - * @method $this setTaxCanceled(float $value) - * @method float getHiddenTaxCanceled() - * @method $this setHiddenTaxCanceled(float $value) - * @method float getTaxRefunded() - * @method $this setTaxRefunded(float $value) - * @method float getBaseTaxRefunded() - * @method $this setBaseTaxRefunded(float $value) - * @method float getDiscountRefunded() - * @method $this setDiscountRefunded(float $value) - * @method float getBaseDiscountRefunded() - * @method $this setBaseDiscountRefunded(float $value) - * @method $this setShippingAmount(float $value) * @method bool getHasChildren() * @method $this setHasChildren(bool $value) * @method $this setProduct(Mage_Catalog_Model_Product $value) @@ -711,6 +601,7 @@ public function isChildrenCalculated() } return false; } + /** * Check if discount has to be applied to parent item * @@ -871,4 +762,884 @@ public function getDiscountAppliedForWeeeTax() } return $totalDiscount; } + + /** + * @return float + */ + public function getWeight() + { + return (float) $this->_getData('weight'); + } + + /** + * @return float + */ + public function getQtyBackordered() + { + return (float) $this->_getData('qty_backordered'); + } + + /** + * @return float + */ + public function getQtyCanceled() + { + return (float) $this->_getData('qty_canceled'); + } + + /** + * @return float + */ + public function getQtyInvoiced() + { + return (float) $this->_getData('qty_invoiced'); + } + + /** + * @return float + */ + public function getQtyOrdered() + { + return (float) $this->_getData('qty_ordered'); + } + + /** + * @return float + */ + public function getQtyRefunded() + { + return (float) $this->_getData('qty_refunded'); + } + + /** + * @return float + */ + public function getQtyShipped() + { + return (float) $this->_getData('qty_shipped'); + } + + /** + * @return float + */ + public function getBaseCost() + { + return (float) $this->_getData('base_cost'); + } + + /** + * @return float + */ + public function getPrice() + { + return (float) $this->_getData('price'); + } + + /** + * @return float + */ + public function getBasePrice() + { + return (float) $this->_getData('base_price'); + } + + /** + * @return float + */ + public function getBaseOriginalPrice() + { + return (float) $this->_getData('base_original_price'); + } + + /** + * @return float + */ + public function getTaxPercent() + { + return (float) $this->_getData('tax_percent'); + } + + /** + * @return float + */ + public function getTaxAmount() + { + return (float) $this->_getData('tax_amount'); + } + + /** + * @return float + */ + public function getBaseTaxAmount() + { + return (float) $this->_getData('base_tax_amount'); + } + + /** + * @return float + */ + public function getTaxInvoiced() + { + return (float) $this->_getData('tax_invoiced'); + } + + /** + * @return float + */ + public function getBaseTaxInvoiced() + { + return (float) $this->_getData('base_tax_invoiced'); + } + + /** + * @return float + */ + public function getDiscountPercent() + { + return (float) $this->_getData('discount_percent'); + } + + /** + * @return float + */ + public function getDiscountAmount() + { + return (float) $this->_getData('discount_amount'); + } + + /** + * @return float + */ + public function getBaseDiscountAmount() + { + return (float) $this->_getData('base_discount_amount'); + } + + /** + * @return float + */ + public function getDiscountInvoiced() + { + return (float) $this->_getData('discount_invoiced'); + } + + /** + * @return float + */ + public function getBaseDiscountInvoiced() + { + return (float) $this->_getData('base_discount_invoiced'); + } + + /** + * @return float + */ + public function getAmountRefunded() + { + return (float) $this->_getData('amount_refunded'); + } + + /** + * @return float + */ + public function getBaseAmountRefunded() + { + return (float) $this->_getData('base_amount_refunded'); + } + + /** + * @return float + */ + public function getRowTotal() + { + return (float) $this->_getData('row_total'); + } + + /** + * @return float + */ + public function getBaseRowTotal() + { + return (float) $this->_getData('base_row_total'); + } + + /** + * @return float + */ + public function getRowInvoiced() + { + return (float) $this->_getData('row_invoiced'); + } + + /** + * @return float + */ + public function getBaseRowInvoiced() + { + return (float) $this->_getData('base_row_invoiced'); + } + + /** + * @return float + */ + public function getRowWeight() + { + return (float) $this->_getData('row_weight'); + } + + /** + * @return float + */ + public function getBaseTaxBeforeDiscount() + { + return (float) $this->_getData('base_tax_before_discount'); + } + + /** + * @return float + */ + public function getTaxBeforeDiscount() + { + return (float) $this->_getData('tax_before_discount'); + } + + /** + * @return float + */ + public function getWeeeTaxAppliedAmount() + { + return (float) $this->_getData('weee_tax_applied_amount'); + } + + /** + * @return float + */ + public function getWeeeTaxAppliedRowAmount() + { + return (float) $this->_getData('weee_tax_applied_row_amount'); + } + + /** + * @return float + */ + public function getBaseWeeeTaxAppliedAmount() + { + return (float) $this->_getData('base_weee_tax_applied_amount'); + } + + /** + * @return float + */ + public function getBaseWeeeTaxAppliedRowAmount() + { + return (float) $this->_getData('base_weee_tax_applied_row_amount'); + } + + /** + * @return float + */ + public function getWeeeTaxDisposition() + { + return (float) $this->_getData('weee_tax_disposition'); + } + + /** + * @return float + */ + public function getWeeeTaxRowDisposition() + { + return (float) $this->_getData('weee_tax_row_disposition'); + } + + /** + * @return float + */ + public function getBaseWeeeTaxDisposition() + { + return (float) $this->_getData('base_weee_tax_disposition'); + } + + /** + * @return float + */ + public function getBaseWeeeTaxRowDisposition() + { + return (float) $this->_getData('base_weee_tax_row_disposition'); + } + + /** + * @return float + */ + public function getPriceInclTax() + { + return (float) $this->_getData('price_incl_tax'); + } + + /** + * @return float + */ + public function getBasePriceInclTax() + { + return (float) $this->_getData('base_price_incl_tax'); + } + + /** + * @return float + */ + public function getRowTotalInclTax() + { + return (float) $this->_getData('row_total_incl_tax'); + } + + /** + * @return float + */ + public function getBaseRowTotalInclTax() + { + return (float) $this->_getData('base_row_total_incl_tax'); + } + + /** + * @return float + */ + public function getHiddenTaxAmount() + { + return (float) $this->_getData('hidden_tax_amount'); + } + + /** + * @return float + */ + public function getBaseHiddenTaxAmount() + { + return (float) $this->_getData('base_hidden_tax_amount'); + } + + /** + * @return float + */ + public function getHiddenTaxInvoiced() + { + return (float) $this->_getData('hidden_tax_invoiced'); + } + + /** + * @return float + */ + public function getBaseHiddenTaxInvoiced() + { + return (float) $this->_getData('base_hidden_tax_invoiced'); + } + + /** + * @return float + */ + public function getHiddenTaxRefunded() + { + return (float) $this->_getData('hidden_tax_refunded'); + } + + /** + * @return float + */ + public function getBaseHiddenTaxRefunded() + { + return (float) $this->_getData('base_hidden_tax_refunded'); + } + + /** + * @return float + */ + public function getTaxCanceled() + { + return (float) $this->_getData('tax_canceled'); + } + + /** + * @return float + */ + public function getHiddenTaxCanceled() + { + return (float) $this->_getData('hidden_tax_canceled'); + } + + /** + * @return float + */ + public function getTaxRefunded() + { + return (float) $this->_getData('tax_refunded'); + } + + /** + * @return float + */ + public function getBaseTaxRefunded() + { + return (float) $this->_getData('base_tax_refunded'); + } + + /** + * @return float + */ + public function getDiscountRefunded() + { + return (float) $this->_getData('discount_refunded'); + } + + /** + * @return float + */ + public function getBaseDiscountRefunded() + { + return (float) $this->_getData('base_discount_refunded'); + } + + /** + * @return $this + */ + public function setWeight($value) + { + return $this->setData('weight', (float) $value); + } + + /** + * @return $this + */ + public function setQtyBackordered($value) + { + return $this->setData('qty_backordered', (float) $value); + } + + /** + * @return $this + */ + public function setQtyCanceled($value) + { + return $this->setData('qty_canceled', (float) $value); + } + + /** + * @return $this + */ + public function setQtyInvoiced($value) + { + return $this->setData('qty_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setQtyOrdered($value) + { + return $this->setData('qty_ordered', (float) $value); + } + + /** + * @return $this + */ + public function setQtyRefunded($value) + { + return $this->setData('qty_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setQtyShipped($value) + { + return $this->setData('qty_shipped', (float) $value); + } + + /** + * @return $this + */ + public function setBaseCost($value) + { + return $this->setData('base_cost', (float) $value); + } + + /** + * @return $this + */ + public function setPrice($value) + { + return $this->setData('price', (float) $value); + } + + /** + * @return $this + */ + public function setBasePrice($value) + { + return $this->setData('base_price', (float) $value); + } + + /** + * @return $this + */ + public function setOriginalPrice($value) + { + return $this->setData('original_price', (float) $value); + } + + /** + * @return $this + */ + public function setBaseOriginalPrice($value) + { + return $this->setData('base_original_price', (float) $value); + } + + /** + * @return $this + */ + public function setTaxPercent($value) + { + return $this->setData('tax_percent', (float) $value); + } + + /** + * @return $this + */ + public function setTaxAmount($value) + { + return $this->setData('tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxAmount($value) + { + return $this->setData('base_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setTaxInvoiced($value) + { + return $this->setData('tax_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxInvoiced($value) + { + return $this->setData('base_tax_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountPercent($value) + { + return $this->setData('discount_percent', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountAmount($value) + { + return $this->setData('discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseDiscountAmount($value) + { + return $this->setData('base_discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountInvoiced($value) + { + return $this->setData('discount_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setBaseDiscountInvoiced($value) + { + return $this->setData('base_discount_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setAmountRefunded($value) + { + return $this->setData('amount_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setBaseAmountRefunded($value) + { + return $this->setData('base_amount_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setRowTotal($value) + { + return $this->setData('row_total', (float) $value); + } + + /** + * @return $this + */ + public function setBaseRowTotal($value) + { + return $this->setData('base_row_total', (float) $value); + } + + /** + * @return $this + */ + public function setRowInvoiced($value) + { + return $this->setData('row_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setBaseRowInvoiced($value) + { + return $this->setData('base_row_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setRowWeight($value) + { + return $this->setData('row_weight', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxBeforeDiscount($value) + { + return $this->setData('base_tax_before_discount', (float) $value); + } + + /** + * @return $this + */ + public function setTaxBeforeDiscount($value) + { + return $this->setData('tax_before_discount', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeTaxAppliedAmount($value) + { + return $this->setData('weee_tax_applied_amount', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeTaxAppliedRowAmount($value) + { + return $this->setData('weee_tax_applied_row_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeTaxAppliedAmount($value) + { + return $this->setData('base_weee_tax_applied_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeTaxAppliedRowAmount($value) + { + return $this->setData('base_weee_tax_applied_row_amount', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeTaxDisposition($value) + { + return $this->setData('weee_tax_disposition', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeTaxRowDisposition($value) + { + return $this->setData('weee_tax_row_disposition', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeTaxDisposition($value) + { + return $this->setData('base_weee_tax_disposition', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeTaxRowDisposition($value) + { + return $this->setData('base_weee_tax_row_disposition', (float) $value); + } + + /** + * @return $this + */ + public function setPriceInclTax($value) + { + return $this->setData('price_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setBasePriceInclTax($value) + { + return $this->setData('base_price_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setRowTotalInclTax($value) + { + return $this->setData('row_total_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setBaseRowTotalInclTax($value) + { + return $this->setData('base_row_total_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setHiddenTaxAmount($value) + { + return $this->setData('hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseHiddenTaxAmount($value) + { + return $this->setData('base_hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setHiddenTaxInvoiced($value) + { + return $this->setData('hidden_tax_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setBaseHiddenTaxInvoiced($value) + { + return $this->setData('base_hidden_tax_invoiced', (float) $value); + } + + /** + * @return $this + */ + public function setHiddenTaxRefunded($value) + { + return $this->setData('hidden_tax_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setBaseHiddenTaxRefunded($value) + { + return $this->setData('base_hidden_tax_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setTaxCanceled($value) + { + return $this->setData('tax_canceled', (float) $value); + } + + /** + * @return $this + */ + public function setHiddenTaxCanceled($value) + { + return $this->setData('hidden_tax_canceled', (float) $value); + } + + /** + * @return $this + */ + public function setTaxRefunded($value) + { + return $this->setData('tax_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxRefunded($value) + { + return $this->setData('base_tax_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountRefunded($value) + { + return $this->setData('discount_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setBaseDiscountRefunded($value) + { + return $this->setData('base_discount_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setShippingAmount($value) + { + return $this->setData('shipping_amount', (float) $value); + } } diff --git a/app/code/core/Mage/Sales/Model/Order/Payment.php b/app/code/core/Mage/Sales/Model/Order/Payment.php index f4b8601e314..24e14703f85 100644 --- a/app/code/core/Mage/Sales/Model/Order/Payment.php +++ b/app/code/core/Mage/Sales/Model/Order/Payment.php @@ -37,39 +37,9 @@ * @method $this setAdditionalData(string $value) * @method string getAddressStatus() * @method $this setAddressStatus(string $value) - * @method float getAmountAuthorized() - * @method $this setAmountAuthorized(float $value) - * @method float getAmountCanceled() - * @method $this setAmountCanceled(float $value) - * @method float getAmountOrdered() - * @method $this setAmountOrdered(float $value) - * @method float getAmountPaid() - * @method $this setAmountPaid(float $value) - * @method float getAmountRefunded() - * @method $this setAmountRefunded(float $value) * @method string getAnetTransMethod() * @method $this setAnetTransMethod(string $value) * - * @method float getBaseAmountAuthorized() - * @method $this setBaseAmountAuthorized(float $value) - * @method float getBaseAmountCanceled() - * @method $this setBaseAmountCanceled(float $value) - * @method float getBaseAmountOrdered() - * @method $this setBaseAmountOrdered(float $value) - * @method float getBaseAmountPaid() - * @method $this setBaseAmountPaid(float $value) - * @method float getBaseAmountPaidOnline() - * @method $this setBaseAmountPaidOnline(float $value) - * @method float getBaseAmountRefunded() - * @method $this setBaseAmountRefunded(float $value) - * @method float getBaseAmountRefundedOnline() - * @method $this setBaseAmountRefundedOnline(float $value) - * @method float getBaseShippingAmount() - * @method $this setBaseShippingAmount(float $value) - * @method float getBaseShippingCaptured() - * @method $this setBaseShippingCaptured(float $value) - * @method float getBaseShippingRefunded() - * @method $this setBaseShippingRefunded(float $value) * @method array getBillingAgreementData() * * @method string getCcApproval() @@ -181,12 +151,6 @@ * * @method $this setRefundTransactionId(string $value) * - * @method float getShippingAmount() - * @method $this setShippingAmount(float $value) - * @method float getShippingCaptured() - * @method $this setShippingCaptured(float $value) - * @method float getShippingRefunded() - * @method $this setShippingRefunded(float $value) * @method bool getShouldCloseParentTransaction() * @method $this setShouldCloseParentTransaction(bool $value) * @method bool getSkipOrderProcessing() @@ -1725,4 +1689,292 @@ protected function _getInvoiceForTransactionId($transactionId) } return false; } + + /** + * @return float + */ + public function getAmountAuthorized() + { + return (float) $this->_getData('amount_authorized'); + } + + /** + * @return float + */ + public function getAmountCanceled() + { + return (float) $this->_getData('amount_canceled'); + } + + /** + * @return float + */ + public function getAmountOrdered() + { + return (float) $this->_getData('amount_ordered'); + } + + /** + * @return float + */ + public function getAmountPaid() + { + return (float) $this->_getData('amount_paid'); + } + + /** + * @return float + */ + public function getAmountRefunded() + { + return (float) $this->_getData('amount_refunded'); + } + + /** + * @return float + */ + public function getBaseAmountAuthorized() + { + return (float) $this->_getData('base_amount_authorized'); + } + + /** + * @return float + */ + public function getBaseAmountCanceled() + { + return (float) $this->_getData('base_amount_canceled'); + } + + /** + * @return float + */ + public function getBaseAmountOrdered() + { + return (float) $this->_getData('base_amount_ordered'); + } + + /** + * @return float + */ + public function getBaseAmountPaid() + { + return (float) $this->_getData('base_amount_paid'); + } + + /** + * @return float + */ + public function getBaseAmountPaidOnline() + { + return (float) $this->_getData('base_amount_paid_online'); + } + + /** + * @return float + */ + public function getBaseAmountRefunded() + { + return (float) $this->_getData('base_amount_refunded'); + } + + /** + * @return float + */ + public function getBaseAmountRefundedOnline() + { + return (float) $this->_getData('base_amount_refunded_online'); + } + + /** + * @return float + */ + public function getBaseShippingAmount() + { + return (float) $this->_getData('base_shipping_amount'); + } + + /** + * @return float + */ + public function getBaseShippingCaptured() + { + return (float) $this->_getData('base_shipping_captured'); + } + + /** + * @return float + */ + public function getBaseShippingRefunded() + { + return (float) $this->_getData('base_shipping_refunded'); + } + + /** + * @return float + */ + public function getShippingAmount() + { + return (float) $this->_getData('shipping_amount'); + } + + /** + * @return float + */ + public function getShippingCaptured() + { + return (float) $this->_getData('shipping_captured'); + } + + /** + * @return float + */ + public function getShippingRefunded() + { + return (float) $this->_getData('shipping_refunded'); + } + + /** + * @return $this + */ + public function setAmountAuthorized($value) + { + return $this->setData('amount_authorized', (float) $value); + } + + /** + * @return $this + */ + public function setAmountCanceled($value) + { + return $this->setData('amount_canceled', (float) $value); + } + + /** + * @return $this + */ + public function setAmountOrdered($value) + { + return $this->setData('amount_ordered', (float) $value); + } + + /** + * @return $this + */ + public function setAmountPaid($value) + { + return $this->setData('amount_paid', (float) $value); + } + + /** + * @return $this + */ + public function setAmountRefunded($value) + { + return $this->setData('amount_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setBaseAmountAuthorized($value) + { + return $this->setData('base_amount_authorized', (float) $value); + } + + /** + * @return $this + */ + public function setBaseAmountCanceled($value) + { + return $this->setData('base_amount_canceled', (float) $value); + } + + /** + * @return $this + */ + public function setBaseAmountOrdered($value) + { + return $this->setData('base_amount_ordered', (float) $value); + } + + /** + * @return $this + */ + public function setBaseAmountPaid($value) + { + return $this->setData('base_amount_paid', (float) $value); + } + + /** + * @return $this + */ + public function setBaseAmountPaidOnline($value) + { + return $this->setData('base_amount_paid_online', (float) $value); + } + + /** + * @return $this + */ + public function setBaseAmountRefunded($value) + { + return $this->setData('base_amount_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setBaseAmountRefundedOnline($value) + { + return $this->setData('base_amount_refunded_online', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingAmount($value) + { + return $this->setData('base_shipping_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingCaptured($value) + { + return $this->setData('base_shipping_captured', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingRefunded($value) + { + return $this->setData('base_shipping_refunded', (float) $value); + } + + /** + * @return $this + */ + public function setShippingAmount($value) + { + return $this->setData('shipping_amount', (float) $value); + } + + /** + * @return $this + */ + public function setShippingCaptured($value) + { + return $this->setData('shipping_captured', (float) $value); + } + + /** + * @return $this + */ + public function setShippingRefunded($value) + { + return $this->setData('shipping_refunded', (float) $value); + } } diff --git a/app/code/core/Mage/Sales/Model/Order/Shipment.php b/app/code/core/Mage/Sales/Model/Order/Shipment.php index 22057b2e946..50590d0f152 100644 --- a/app/code/core/Mage/Sales/Model/Order/Shipment.php +++ b/app/code/core/Mage/Sales/Model/Order/Shipment.php @@ -52,10 +52,6 @@ * @method int getShippingAddressId() * @method $this setShippingAddressId(int $value) * @method $this setStoreId(int $value) - * @method float getTotalQty() - * @method $this setTotalQty(float $value) - * @method float getTotalWeight() - * @method $this setTotalWeight(float $value) * @method string getUpdatedAt() * @method $this setUpdatedAt(string $value) * @@ -698,4 +694,36 @@ public function getShippingLabel() } return $label; } + + /** + * @return float + */ + public function getTotalQty() + { + return (float) $this->_getData('total_qty'); + } + + /** + * @return float + */ + public function getTotalWeight() + { + return (float) $this->_getData('total_weight'); + } + + /** + * @return $this + */ + public function setTotalQty($value) + { + return $this->setData('total_qty', (float) $value); + } + + /** + * @return $this + */ + public function setTotalWeight($value) + { + return $this->setData('total_weight', (float) $value); + } } diff --git a/app/code/core/Mage/Sales/Model/Order/Shipment/Item.php b/app/code/core/Mage/Sales/Model/Order/Shipment/Item.php index 3a1e8a6440d..09798f4aabe 100644 --- a/app/code/core/Mage/Sales/Model/Order/Shipment/Item.php +++ b/app/code/core/Mage/Sales/Model/Order/Shipment/Item.php @@ -40,18 +40,11 @@ * @method $this setOrderItemId(int $value) * @method int getParentId() * @method $this setParentId(int $value) - * @method float getPrice() - * @method $this setPrice(float $value) * @method int getProductId() * @method $this setProductId(int $value) - * @method float getQty() - * @method float getRowTotal() - * @method $this setRowTotal(float $value) * @method string getSku() * @method $this setStoreId(int $value) * @method $this setSku(string $value) - * @method float getWeight() - * @method $this setWeight(float $value) * * @category Mage * @package Mage_Sales @@ -182,4 +175,60 @@ protected function _beforeSave() return $this; } + + /** + * @return float + */ + public function getPrice() + { + return (float) $this->_getData('price'); + } + + /** + * @return float + */ + public function getQty() + { + return (float) $this->_getData('qty'); + } + + /** + * @return float + */ + public function getRowTotal() + { + return (float) $this->_getData('row_total'); + } + + /** + * @return float + */ + public function getWeight() + { + return (float) $this->_getData('weight'); + } + + /** + * @return $this + */ + public function setPrice($value) + { + return $this->setData('price', (float) $value); + } + + /** + * @return $this + */ + public function setRowTotal($value) + { + return $this->setData('row_total', (float) $value); + } + + /** + * @return $this + */ + public function setWeight($value) + { + return $this->setData('weight', (float) $value); + } } diff --git a/app/code/core/Mage/Sales/Model/Order/Shipment/Track.php b/app/code/core/Mage/Sales/Model/Order/Shipment/Track.php index 493e8dc71bd..bb85666ef70 100644 --- a/app/code/core/Mage/Sales/Model/Order/Shipment/Track.php +++ b/app/code/core/Mage/Sales/Model/Order/Shipment/Track.php @@ -41,16 +41,12 @@ * @method $this setOrderId(int $value) * @method int getParentId() * @method $this setParentId(int $value) - * @method float getQty() - * @method $this setQty(float $value) * @method $this setStoreId(int $value) * @method string getTitle() * @method $this setTitle(string $value) * @method string getTrackNumber() * @method string getUpdatedAt() * @method $this setUpdatedAt(string $value) - * @method float getWeight() - * @method $this setWeight(float $value) * * @category Mage * @package Mage_Sales @@ -201,4 +197,36 @@ protected function _beforeSave() return $this; } + + /** + * @return float + */ + public function getQty() + { + return (float) $this->_getData('qty'); + } + + /** + * @return float + */ + public function getWeight() + { + return (float) $this->_getData('weight'); + } + + /** + * @return $this + */ + public function setQty($value) + { + return $this->setData('qty', (float) $value); + } + + /** + * @return $this + */ + public function setWeight($value) + { + return $this->setData('weight', (float) $value); + } } diff --git a/app/code/core/Mage/Sales/Model/Order/Tax.php b/app/code/core/Mage/Sales/Model/Order/Tax.php index a364fe7aeb9..15e626555ed 100644 --- a/app/code/core/Mage/Sales/Model/Order/Tax.php +++ b/app/code/core/Mage/Sales/Model/Order/Tax.php @@ -34,20 +34,12 @@ * @method Mage_Sales_Model_Order_Tax setCode(string $value) * @method string getTitle() * @method Mage_Sales_Model_Order_Tax setTitle(string $value) - * @method float getPercent() - * @method Mage_Sales_Model_Order_Tax setPercent(float $value) - * @method float getAmount() - * @method Mage_Sales_Model_Order_Tax setAmount(float $value) * @method int getPriority() * @method Mage_Sales_Model_Order_Tax setPriority(int $value) * @method int getPosition() * @method Mage_Sales_Model_Order_Tax setPosition(int $value) - * @method float getBaseAmount() - * @method Mage_Sales_Model_Order_Tax setBaseAmount(float $value) * @method int getProcess() * @method Mage_Sales_Model_Order_Tax setProcess(int $value) - * @method float getBaseRealAmount() - * @method Mage_Sales_Model_Order_Tax setBaseRealAmount(float $value) * @method int getHidden() * @method Mage_Sales_Model_Order_Tax setHidden(int $value) * @@ -61,4 +53,68 @@ protected function _construct() { $this->_init('sales/order_tax'); } + + /** + * @return float + */ + public function getPercent() + { + return (float) $this->_getData('percent'); + } + + /** + * @return float + */ + public function getAmount() + { + return (float) $this->_getData('amount'); + } + + /** + * @return float + */ + public function getBaseAmount() + { + return (float) $this->_getData('base_amount'); + } + + /** + * @return float + */ + public function getBaseRealAmount() + { + return (float) $this->_getData('base_real_amount'); + } + + /** + * @return $this + */ + public function setPercent($value) + { + return $this->setData('percent', (float) $value); + } + + /** + * @return $this + */ + public function setAmount($value) + { + return $this->setData('amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseAmount($value) + { + return $this->setData('base_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseRealAmount($value) + { + return $this->setData('base_real_amount', (float) $value); + } } diff --git a/app/code/core/Mage/Sales/Model/Quote.php b/app/code/core/Mage/Sales/Model/Quote.php index 3e2ecc88152..7294656e579 100644 --- a/app/code/core/Mage/Sales/Model/Quote.php +++ b/app/code/core/Mage/Sales/Model/Quote.php @@ -44,16 +44,6 @@ * * @method string getBaseCurrencyCode() * @method $this setBaseCurrencyCode(string $value) - * @method float getBaseGrandTotal() - * @method $this setBaseGrandTotal(float $value) - * @method float getBaseSubtotal() - * @method $this setBaseSubtotal(float $value) - * @method float getBaseSubtotalWithDiscount() - * @method $this setBaseSubtotalWithDiscount(float $value) - * @method float getBaseToGlobalRate() - * @method $this setBaseToGlobalRate(float $value) - * @method float getBaseToQuoteRate() - * @method $this setBaseToQuoteRate(float $value) * * @method bool hasChangedFlag() * @method bool getChangedFlag() @@ -104,8 +94,6 @@ * @method $this setGiftMessageId(int $value) * @method string getGlobalCurrencyCode() * @method $this setGlobalCurrencyCode(string $value) - * @method float getGrandTotal() - * @method $this setGrandTotal(float $value) * * @method bool getHasError() * @@ -130,8 +118,6 @@ * @method bool hasItemsCollection() * @method int getItemsCount() * @method $this setItemsCount(int $value) - * @method float getItemsQty() - * @method $this setItemsQty(float $value) * * @method string getMethod() * @@ -155,14 +141,6 @@ * @method $this setStoreCurrencyCode(string $value) * @method bool hasStoreId() * @method $this setStoreId(int $value) - * @method float getStoreToBaseRate() - * @method $this setStoreToBaseRate(float $value) - * @method float getStoreToQuoteRate() - * @method $this setStoreToQuoteRate(float $value) - * @method float getSubtotal() - * @method $this setSubtotal(float $value) - * @method float getSubtotalWithDiscount() - * @method $this setSubtotalWithDiscount(float $value) * * @method array getTaxesForItems() * @method $this setTaxesForItems(array $itemTaxGroups) @@ -178,8 +156,6 @@ * @method bool getUseRewardPoints() * @method $this setUseRewardPoints(bool $value) * - * @method float getVirtualItemsQty() - * @method $this setVirtualItemsQty(float $value) * * @method Mage_Core_Model_Website getWebsite() * @method $this setWebsite(Mage_Core_Model_Website $value) @@ -2099,4 +2075,196 @@ public function save() } return parent::save(); } + + /** + * @return float + */ + public function getBaseGrandTotal() + { + return (float) $this->_getData('base_grand_total'); + } + + /** + * @return float + */ + public function getBaseSubtotal() + { + return (float) $this->_getData('base_subtotal'); + } + + /** + * @return float + */ + public function getBaseSubtotalWithDiscount() + { + return (float) $this->_getData('base_subtotal_with_discount'); + } + + /** + * @return float + */ + public function getBaseToGlobalRate() + { + return (float) $this->_getData('base_to_global_rate'); + } + + /** + * @return float + */ + public function getBaseToQuoteRate() + { + return (float) $this->_getData('base_to_quote_rate'); + } + + /** + * @return float + */ + public function getGrandTotal() + { + return (float) $this->_getData('grand_total'); + } + + /** + * @return float + */ + public function getItemsQty() + { + return (float) $this->_getData('items_qty'); + } + + /** + * @return float + */ + public function getStoreToBaseRate() + { + return (float) $this->_getData('store_to_base_rate'); + } + + /** + * @return float + */ + public function getStoreToQuoteRate() + { + return (float) $this->_getData('store_to_quote_rate'); + } + + /** + * @return float + */ + public function getSubtotal() + { + return (float) $this->_getData('subtotal'); + } + + /** + * @return float + */ + public function getSubtotalWithDiscount() + { + return (float) $this->_getData('subtotal_with_discount'); + } + + /** + * @return float + */ + public function getVirtualItemsQty() + { + return (float) $this->_getData('virtual_items_qty'); + } + + /** + * @return $this + */ + public function setBaseGrandTotal($value) + { + return $this->setData('base_grand_total', (float) $value); + } + + /** + * @return $this + */ + public function setBaseSubtotal($value) + { + return $this->setData('base_subtotal', (float) $value); + } + + /** + * @return $this + */ + public function setBaseSubtotalWithDiscount($value) + { + return $this->setData('base_subtotal_with_discount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseToGlobalRate($value) + { + return $this->setData('base_to_global_rate', (float) $value); + } + + /** + * @return $this + */ + public function setBaseToQuoteRate($value) + { + return $this->setData('base_to_quote_rate', (float) $value); + } + + /** + * @return $this + */ + public function setGrandTotal($value) + { + return $this->setData('grand_total', (float) $value); + } + + /** + * @return $this + */ + public function setItemsQty($value) + { + return $this->setData('items_qty', (float) $value); + } + + /** + * @return $this + */ + public function setStoreToBaseRate($value) + { + return $this->setData('store_to_base_rate', (float) $value); + } + + /** + * @return $this + */ + public function setStoreToQuoteRate($value) + { + return $this->setData('store_to_quote_rate', (float) $value); + } + + /** + * @return $this + */ + public function setSubtotal($value) + { + return $this->setData('subtotal', (float) $value); + } + + /** + * @return $this + */ + public function setSubtotalWithDiscount($value) + { + return $this->setData('subtotal_with_discount', (float) $value); + } + + /** + * @return $this + */ + public function setVirtualItemsQty($value) + { + return $this->setData('virtual_items_qty', (float) $value); + } } diff --git a/app/code/core/Mage/Sales/Model/Quote/Address.php b/app/code/core/Mage/Sales/Model/Quote/Address.php index afe743c0557..bbb7f6339ac 100644 --- a/app/code/core/Mage/Sales/Model/Quote/Address.php +++ b/app/code/core/Mage/Sales/Model/Quote/Address.php @@ -39,44 +39,7 @@ * @method bool getAppliedTaxesReset() * @method $this setAppliedTaxesReset(bool $value) * - * @method float getBaseCustbalanceAmount() - * @method $this setBaseCustbalanceAmount(float $float) - * @method float getBaseDiscountAmount() - * @method $this setBaseDiscountAmount(float $float) - * @method float getBaseExtraTaxAmount() - * @method $this setBaseExtraTaxAmount(float $float) - * @method float getBaseGrandTotal() - * @method $this setBaseGrandTotal(float $float) - * @method float getBaseHiddenTaxAmount() - * @method $this setBaseHiddenTaxAmount(float $float) - * @method float getBaseRowTotal() - * @method float getBaseShippingAmount() - * @method float getBaseShippingAmountForDiscount() - * @method $this setBaseShippingAmountForDiscount(float $float) - * @method float getBaseShippingDiscountAmount() - * @method $this setBaseShippingDiscountAmount(float $float) - * @method float getBaseShippingInclTax() - * @method $this setBaseShippingInclTax(float $float) - * @method float getBaseShippingHiddenTaxAmount() - * @method $this setBaseShippingHiddenTaxAmount(float $float) - * @method float getBaseShippingTaxable() - * @method $this setBaseShippingTaxable(float $float) - * @method float getBaseShippingTaxAmount() - * @method $this setBaseShippingTaxAmount(float $float) - * @method float getBaseSubtotal() - * @method $this setBaseSubtotal(float $float) - * @method float getBaseSubtotalInclTax() - * @method $this setBaseSubtotalInclTax(float $float) * @method $this unsBaseSubtotalInclTax() - * @method float getBaseSubtotalTotalInclTax() - * @method $this setBaseSubtotalTotalInclTax(float $float) - * @method $this setBaseSubtotalWithDiscount(float $float) - * @method float getBaseTaxAmount() - * @method $this setBaseTaxAmount(float $value) - * @method float getBaseWeeeDiscount() - * @method $this setBaseWeeeDiscount(float $value) - * @method float getBaseVirtualAmount() - * @method $this setBaseVirtualAmount(float $value) * * @method array getCartFixedRules() * @method $this setCartFixedRules(array $value) @@ -92,8 +55,6 @@ * @method $this setCouponCode(string $value) * @method string getCreatedAt() * @method $this setCreatedAt(string $value) - * @method float getCustbalanceAmount() - * @method $this setCustbalanceAmount(float $int) * @method Mage_Customer_Model_Address getCustomerAddress() * @method $this setCustomerAddress(Mage_Customer_Model_Address $value) * @method int getCustomerAddressId() @@ -105,25 +66,19 @@ * @method string getCustomerPassword() * * @method $this setDeleteImmediately(bool $value) - * @method float getDiscountAmount() - * @method $this setDiscountAmount(float $value) * @method string getDiscountDescription() * @method $this setDiscountDescription(string $value) * @method null|array getDiscountDescriptionArray() * @method $this setDiscountDescriptionArray(array $value) - * @method float getDiscountTaxCompensation() * @method string getDob() * * @method string getEmail() * @method $this setEmail(string $value) - * @method float getExtraTaxAmount() - * @method $this setExtraTaxAmount(float $value) * * @method string getFax() * @method $this setFax(string $value) * @method string getFirstname() * @method $this setFirstname(string $value) - * @method float getFreeMethodWeight() * @method $this setFreeMethodWeight(int $value) * @method int getFreeShipping() * @method $this setFreeShipping(int $value) @@ -131,18 +86,13 @@ * @method string getGender() * @method int getGiftMessageId() * @method $this setGiftMessageId(int $value) - * @method float getGrandTotal() - * @method $this setGrandTotal(float $value) * * @method bool getHasChildren() * @method bool hasPaymentMethod() * @method bool hasCouponCode() - * @method float getHiddenTaxAmount() - * @method $this setHiddenTaxAmount(float $value) * * @method bool getIsShippingInclTax() * @method $this setIsShippingInclTax(bool $value) - * @method $this setItemQty(float $value) * * @method string getLastname() * @method $this setLastname(string $string) @@ -160,7 +110,6 @@ * @method $this setPrevQuoteCustomerGroupId(int $groupId) * @method Mage_Catalog_Model_Product getProduct() * - * @method float getQty() * @method int getQuoteId() * @method $this setQuoteId(int $value) * @@ -168,58 +117,27 @@ * @method $this setRegionId(int $value) * @method array getRoundingDeltas() * @method $this setRoundingDeltas(array $value) - * @method float getRowTotal() - * @method $this setRowWeight(float $value) * * @method int getSameAsBilling() * @method $this setSameAsBilling(int $value) * @method int getSaveInAddressBook() * @method $this setSaveInAddressBook(int $value) - * @method float getShippingAmount() - * @method float getShippingAmountForDiscount() - * @method $this setShippingAmountForDiscount(float|int $value) - * @method float getShippingDiscountAmount() - * @method $this setShippingDiscountAmount(float $value) - * @method float getShippingDiscountPercent() - * @method $this setShippingDiscountPercent(float $value) * @method string getShippingDescription() * @method $this setShippingDescription(string $value) - * @method float getShippingHiddenTaxAmount() - * @method $this setShippingHiddenTaxAmount(float $value) - * @method float getShippingInclTax() - * @method $this setShippingInclTax(float $value) * @method string getShippingMethod() * @method $this setShippingMethod(string $value) - * @method float getShippingTaxable() - * @method $this setShippingTaxable(float $value) - * @method float getShippingTaxAmount() - * @method $this setShippingTaxAmount(float $value) * @method int getStoreId() - * @method float getSubtotal() - * @method $this setSubtotal(float $value) - * @method float getSubtotalInclTax() - * @method $this setSubtotalInclTax(float $value) * @method $this unsSubtotalInclTax() - * @method $this setSubtotalWithDiscount(float $value) * @method string getSuffix() * @method $this setSuffix(string $value) * - * @method float getTaxAmount() - * @method $this setTaxAmount(float $value) * @method string getTaxvat() * @method string getTelephone() * @method $this setTelephone(string $value) - * @method float getTotalQty() - * @method $this setTotalQty(float $int) * * @method string getUpdatedAt() * @method $this setUpdatedAt(string $value) * - * @method $this setVirtualAmount(float $value) - * @method float getWeeeDiscount() - * @method $this setWeeeDiscount(float $value) - * @method float getWeight() - * @method $this setWeight(float $value) * * * @method Mage_Sales_Model_Quote_Address getParentItem() @@ -1352,4 +1270,660 @@ public function getSubtotalWithDiscount() { return $this->getSubtotal()+$this->getDiscountAmount(); } + + /** + * @return float + */ + public function getBaseCustbalanceAmount() + { + return (float) $this->_getData('base_custbalance_amount'); + } + + /** + * @return float + */ + public function getBaseDiscountAmount() + { + return (float) $this->_getData('base_discount_amount'); + } + + /** + * @return float + */ + public function getBaseExtraTaxAmount() + { + return (float) $this->_getData('base_extra_tax_amount'); + } + + /** + * @return float + */ + public function getBaseGrandTotal() + { + return (float) $this->_getData('base_grand_total'); + } + + /** + * @return float + */ + public function getBaseHiddenTaxAmount() + { + return (float) $this->_getData('base_hidden_tax_amount'); + } + + /** + * @return float + */ + public function getBaseRowTotal() + { + return (float) $this->_getData('base_row_total'); + } + + /** + * @return float + */ + public function getBaseShippingAmount() + { + return (float) $this->_getData('base_shipping_amount'); + } + + /** + * @return float + */ + public function getBaseShippingAmountForDiscount() + { + return (float) $this->_getData('base_shipping_amount_for_discount'); + } + + /** + * @return float + */ + public function getBaseShippingDiscountAmount() + { + return (float) $this->_getData('base_shipping_discount_amount'); + } + + /** + * @return float + */ + public function getBaseShippingInclTax() + { + return (float) $this->_getData('base_shipping_incl_tax'); + } + + /** + * @return float + */ + public function getBaseShippingHiddenTaxAmount() + { + return (float) $this->_getData('base_shipping_hidden_tax_amount'); + } + + /** + * @return float + */ + public function getBaseShippingTaxable() + { + return (float) $this->_getData('base_shipping_taxable'); + } + + /** + * @return float + */ + public function getBaseShippingTaxAmount() + { + return (float) $this->_getData('base_shipping_tax_amount'); + } + + /** + * @return float + */ + public function getBaseSubtotal() + { + return (float) $this->_getData('base_subtotal'); + } + + /** + * @return float + */ + public function getBaseSubtotalInclTax() + { + return (float) $this->_getData('base_subtotal_incl_tax'); + } + + /** + * @return float + */ + public function getBaseSubtotalTotalInclTax() + { + return (float) $this->_getData('base_subtotal_total_incl_tax'); + } + + /** + * @return float + */ + public function getBaseTaxAmount() + { + return (float) $this->_getData('base_tax_amount'); + } + + /** + * @return float + */ + public function getBaseWeeeDiscount() + { + return (float) $this->_getData('base_weee_discount'); + } + + /** + * @return float + */ + public function getBaseVirtualAmount() + { + return (float) $this->_getData('base_virtual_amount'); + } + + /** + * @return float + */ + public function getCustbalanceAmount() + { + return (float) $this->_getData('custbalance_amount'); + } + + /** + * @return float + */ + public function getDiscountAmount() + { + return (float) $this->_getData('discount_amount'); + } + + /** + * @return float + */ + public function getDiscountTaxCompensation() + { + return (float) $this->_getData('discount_tax_compensation'); + } + + /** + * @return float + */ + public function getExtraTaxAmount() + { + return (float) $this->_getData('extra_tax_amount'); + } + + /** + * @return float + */ + public function getFreeMethodWeight() + { + return (float) $this->_getData('free_method_weight'); + } + + /** + * @return float + */ + public function getGrandTotal() + { + return (float) $this->_getData('grand_total'); + } + + /** + * @return float + */ + public function getHiddenTaxAmount() + { + return (float) $this->_getData('hidden_tax_amount'); + } + + /** + * @return float + */ + public function getQty() + { + return (float) $this->_getData('qty'); + } + + /** + * @return float + */ + public function getRowTotal() + { + return (float) $this->_getData('row_total'); + } + + /** + * @return float + */ + public function getShippingAmount() + { + return (float) $this->_getData('shipping_amount'); + } + + /** + * @return float + */ + public function getShippingAmountForDiscount() + { + return (float) $this->_getData('shipping_amount_for_discount'); + } + + /** + * @return float + */ + public function getShippingDiscountAmount() + { + return (float) $this->_getData('shipping_discount_amount'); + } + + /** + * @return float + */ + public function getShippingDiscountPercent() + { + return (float) $this->_getData('shipping_discount_percent'); + } + + /** + * @return float + */ + public function getShippingHiddenTaxAmount() + { + return (float) $this->_getData('shipping_hidden_tax_amount'); + } + + /** + * @return float + */ + public function getShippingInclTax() + { + return (float) $this->_getData('shipping_incl_tax'); + } + + /** + * @return float + */ + public function getShippingTaxable() + { + return (float) $this->_getData('shipping_taxable'); + } + + /** + * @return float + */ + public function getShippingTaxAmount() + { + return (float) $this->_getData('shipping_tax_amount'); + } + + /** + * @return float + */ + public function getSubtotal() + { + return (float) $this->_getData('subtotal'); + } + + /** + * @return float + */ + public function getSubtotalInclTax() + { + return (float) $this->_getData('subtotal_incl_tax'); + } + + /** + * @return float + */ + public function getTaxAmount() + { + return (float) $this->_getData('tax_amount'); + } + + /** + * @return float + */ + public function getTotalQty() + { + return (float) $this->_getData('total_qty'); + } + + /** + * @return float + */ + public function getWeeeDiscount() + { + return (float) $this->_getData('weee_discount'); + } + + /** + * @return float + */ + public function getWeight() + { + return (float) $this->_getData('weight'); + } + + /** + * @return $this + */ + public function setBaseCustbalanceAmount($float) + { + return $this->setData('base_custbalance_amount', (float) $float); + } + + /** + * @return $this + */ + public function setBaseDiscountAmount($float) + { + return $this->setData('base_discount_amount', (float) $float); + } + + /** + * @return $this + */ + public function setBaseExtraTaxAmount($float) + { + return $this->setData('base_extra_tax_amount', (float) $float); + } + + /** + * @return $this + */ + public function setBaseGrandTotal($float) + { + return $this->setData('base_grand_total', (float) $float); + } + + /** + * @return $this + */ + public function setBaseHiddenTaxAmount($float) + { + return $this->setData('base_hidden_tax_amount', (float) $float); + } + + /** + * @return $this + */ + public function setBaseShippingAmountForDiscount($float) + { + return $this->setData('base_shipping_amount_for_discount', (float) $float); + } + + /** + * @return $this + */ + public function setBaseShippingDiscountAmount($float) + { + return $this->setData('base_shipping_discount_amount', (float) $float); + } + + /** + * @return $this + */ + public function setBaseShippingInclTax($float) + { + return $this->setData('base_shipping_incl_tax', (float) $float); + } + + /** + * @return $this + */ + public function setBaseShippingHiddenTaxAmount($float) + { + return $this->setData('base_shipping_hidden_tax_amount', (float) $float); + } + + /** + * @return $this + */ + public function setBaseShippingTaxable($float) + { + return $this->setData('base_shipping_taxable', (float) $float); + } + + /** + * @return $this + */ + public function setBaseShippingTaxAmount($float) + { + return $this->setData('base_shipping_tax_amount', (float) $float); + } + + /** + * @return $this + */ + public function setBaseSubtotal($float) + { + return $this->setData('base_subtotal', (float) $float); + } + + /** + * @return $this + */ + public function setBaseSubtotalInclTax($float) + { + return $this->setData('base_subtotal_incl_tax', (float) $float); + } + + /** + * @return $this + */ + public function setBaseSubtotalTotalInclTax($float) + { + return $this->setData('base_subtotal_total_incl_tax', (float) $float); + } + + /** + * @return $this + */ + public function setBaseSubtotalWithDiscount($float) + { + return $this->setData('base_subtotal_with_discount', (float) $float); + } + + /** + * @return $this + */ + public function setBaseTaxAmount($value) + { + return $this->setData('base_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeDiscount($value) + { + return $this->setData('base_weee_discount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseVirtualAmount($value) + { + return $this->setData('base_virtual_amount', (float) $value); + } + + /** + * @return $this + */ + public function setCustbalanceAmount($int) + { + return $this->setData('custbalance_amount', (float) $int); + } + + /** + * @return $this + */ + public function setDiscountAmount($value) + { + return $this->setData('discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setExtraTaxAmount($value) + { + return $this->setData('extra_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setGrandTotal($value) + { + return $this->setData('grand_total', (float) $value); + } + + /** + * @return $this + */ + public function setHiddenTaxAmount($value) + { + return $this->setData('hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setItemQty($value) + { + return $this->setData('item_qty', (float) $value); + } + + /** + * @return $this + */ + public function setRowWeight($value) + { + return $this->setData('row_weight', (float) $value); + } + + /** + * @return $this + */ + public function setShippingDiscountAmount($value) + { + return $this->setData('shipping_discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setShippingDiscountPercent($value) + { + return $this->setData('shipping_discount_percent', (float) $value); + } + + /** + * @return $this + */ + public function setShippingHiddenTaxAmount($value) + { + return $this->setData('shipping_hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setShippingInclTax($value) + { + return $this->setData('shipping_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setShippingTaxable($value) + { + return $this->setData('shipping_taxable', (float) $value); + } + + /** + * @return $this + */ + public function setShippingTaxAmount($value) + { + return $this->setData('shipping_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setSubtotal($value) + { + return $this->setData('subtotal', (float) $value); + } + + /** + * @return $this + */ + public function setSubtotalInclTax($value) + { + return $this->setData('subtotal_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setSubtotalWithDiscount($value) + { + return $this->setData('subtotal_with_discount', (float) $value); + } + + /** + * @return $this + */ + public function setTaxAmount($value) + { + return $this->setData('tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setTotalQty($int) + { + return $this->setData('total_qty', (float) $int); + } + + /** + * @return $this + */ + public function setVirtualAmount($value) + { + return $this->setData('virtual_amount', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeDiscount($value) + { + return $this->setData('weee_discount', (float) $value); + } + + /** + * @return $this + */ + public function setWeight($value) + { + return $this->setData('weight', (float) $value); + } + + /** + * @return $this + */ + public function setShippingAmountForDiscount($value) + { + return $this->setData('shipping_amount_for_discount', (float) $value); + } } diff --git a/app/code/core/Mage/Sales/Model/Quote/Address/Item.php b/app/code/core/Mage/Sales/Model/Quote/Address/Item.php index a1ea2416249..3c1ebfbb56f 100644 --- a/app/code/core/Mage/Sales/Model/Quote/Address/Item.php +++ b/app/code/core/Mage/Sales/Model/Quote/Address/Item.php @@ -36,16 +36,6 @@ * @method string getAppliedRuleIds() * @method $this setAppliedRuleIds(string $value) * - * @method float getBaseCost() - * @method $this setBaseCost(float $value) - * @method float getBaseDiscountAmount() - * @method $this setBaseDiscountAmount(float $value) - * @method float getBaseDiscountTaxCompensation() - * @method float getBaseHiddenTaxAmount() - * @method $this setBaseHiddenTaxAmount(float $value) - * @method float getBasePrice() - * @method $this setBasePrice(float $value) - * * @method $this setCustomerAddressId(int $value) * @method int getParentItemId() * @method $this setParentItemId(int $value) @@ -57,21 +47,6 @@ * @method $this setCreatedAt(string $value) * @method string getUpdatedAt() * @method $this setUpdatedAt(string $value) - * @method float getWeight() - * @method $this setWeight(float $value) - * @method $this setQty(float $value) - * @method float getDiscountAmount() - * @method $this setDiscountAmount(float $value) - * @method $this setTaxAmount(float $value) - * @method float getRowTotal() - * @method $this setRowTotal(float $value) - * @method float getBaseRowTotal() - * @method $this setBaseRowTotal(float $value) - * @method float getRowTotalWithDiscount() - * @method $this setRowTotalWithDiscount(float $value) - * @method $this setBaseTaxAmount(float $value) - * @method float getRowWeight() - * @method $this setRowWeight(float $value) * @method int getProductId() * @method $this setProductId(int $value) * @method int getSuperProductId() @@ -90,26 +65,10 @@ * @method $this setFreeShipping(int $value) * @method int getIsQtyDecimal() * @method $this setIsQtyDecimal(int $value) - * @method float getDiscountPercent() - * @method $this setDiscountPercent(float $value) * @method int getNoDiscount() * @method $this setNoDiscount(int $value) - * @method float getTaxPercent() - * @method $this setTaxPercent(float $value) - * @method float getPriceInclTax() - * @method $this setPriceInclTax(float $value) - * @method float getBasePriceInclTax() - * @method $this setBasePriceInclTax(float $value) - * @method float getRowTotalInclTax() - * @method $this setRowTotalInclTax(float $value) - * @method float getBaseRowTotalInclTax() - * @method $this setBaseRowTotalInclTax(float $value) * @method int getGiftMessageId() * @method $this setGiftMessageId(int $value) - * @method float getHiddenTaxAmount() - * @method $this setHiddenTaxAmount(float $value) - * @method $this setCost(float $value) - * @method $this setShippingAmount(float $value) * @method Mage_Sales_Model_Quote_Item getQuoteItem() * @method $this setQuoteItem(Mage_Sales_Model_Quote_Item $value) * @method bool hasQty() @@ -220,4 +179,324 @@ public function getOptionBycode($code) } return null; } + + /** + * @return float + */ + public function getBaseCost() + { + return (float) $this->_getData('base_cost'); + } + + /** + * @return float + */ + public function getBaseDiscountAmount() + { + return (float) $this->_getData('base_discount_amount'); + } + + /** + * @return float + */ + public function getBaseDiscountTaxCompensation() + { + return (float) $this->_getData('base_discount_tax_compensation'); + } + + /** + * @return float + */ + public function getBaseHiddenTaxAmount() + { + return (float) $this->_getData('base_hidden_tax_amount'); + } + + /** + * @return float + */ + public function getBasePrice() + { + return (float) $this->_getData('base_price'); + } + + /** + * @return float + */ + public function getWeight() + { + return (float) $this->_getData('weight'); + } + + /** + * @return float + */ + public function getDiscountAmount() + { + return (float) $this->_getData('discount_amount'); + } + + /** + * @return float + */ + public function getRowTotal() + { + return (float) $this->_getData('row_total'); + } + + /** + * @return float + */ + public function getBaseRowTotal() + { + return (float) $this->_getData('base_row_total'); + } + + /** + * @return float + */ + public function getRowTotalWithDiscount() + { + return (float) $this->_getData('row_total_with_discount'); + } + + /** + * @return float + */ + public function getRowWeight() + { + return (float) $this->_getData('row_weight'); + } + + /** + * @return float + */ + public function getDiscountPercent() + { + return (float) $this->_getData('discount_percent'); + } + + /** + * @return float + */ + public function getTaxPercent() + { + return (float) $this->_getData('tax_percent'); + } + + /** + * @return float + */ + public function getPriceInclTax() + { + return (float) $this->_getData('price_incl_tax'); + } + + /** + * @return float + */ + public function getBasePriceInclTax() + { + return (float) $this->_getData('base_price_incl_tax'); + } + + /** + * @return float + */ + public function getRowTotalInclTax() + { + return (float) $this->_getData('row_total_incl_tax'); + } + + /** + * @return float + */ + public function getBaseRowTotalInclTax() + { + return (float) $this->_getData('base_row_total_incl_tax'); + } + + /** + * @return float + */ + public function getHiddenTaxAmount() + { + return (float) $this->_getData('hidden_tax_amount'); + } + + /** + * @return $this + */ + public function setBaseCost($value) + { + return $this->setData('base_cost', (float) $value); + } + + /** + * @return $this + */ + public function setBaseDiscountAmount($value) + { + return $this->setData('base_discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseHiddenTaxAmount($value) + { + return $this->setData('base_hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBasePrice($value) + { + return $this->setData('base_price', (float) $value); + } + + /** + * @return $this + */ + public function setWeight($value) + { + return $this->setData('weight', (float) $value); + } + + /** + * @return $this + */ + public function setQty($value) + { + return $this->setData('qty', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountAmount($value) + { + return $this->setData('discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setTaxAmount($value) + { + return $this->setData('tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setRowTotal($value) + { + return $this->setData('row_total', (float) $value); + } + + /** + * @return $this + */ + public function setBaseRowTotal($value) + { + return $this->setData('base_row_total', (float) $value); + } + + /** + * @return $this + */ + public function setRowTotalWithDiscount($value) + { + return $this->setData('row_total_with_discount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxAmount($value) + { + return $this->setData('base_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setRowWeight($value) + { + return $this->setData('row_weight', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountPercent($value) + { + return $this->setData('discount_percent', (float) $value); + } + + /** + * @return $this + */ + public function setTaxPercent($value) + { + return $this->setData('tax_percent', (float) $value); + } + + /** + * @return $this + */ + public function setPriceInclTax($value) + { + return $this->setData('price_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setBasePriceInclTax($value) + { + return $this->setData('base_price_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setRowTotalInclTax($value) + { + return $this->setData('row_total_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setBaseRowTotalInclTax($value) + { + return $this->setData('base_row_total_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setHiddenTaxAmount($value) + { + return $this->setData('hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setCost($value) + { + return $this->setData('cost', (float) $value); + } + + /** + * @return $this + */ + public function setShippingAmount($value) + { + return $this->setData('shipping_amount', (float) $value); + } } diff --git a/app/code/core/Mage/Sales/Model/Quote/Address/Rate.php b/app/code/core/Mage/Sales/Model/Quote/Address/Rate.php index e4ab94aeee5..0b19e1da88c 100644 --- a/app/code/core/Mage/Sales/Model/Quote/Address/Rate.php +++ b/app/code/core/Mage/Sales/Model/Quote/Address/Rate.php @@ -48,8 +48,6 @@ * @method $this setMethod(string $value) * @method string getMethodDescription() * @method $this setMethodDescription(string $value) - * @method float getPrice() - * @method $this setPrice(float $value) * @method string getErrorMessage() * @method $this setErrorMessage(string $value) * @method string getMethodTitle() @@ -124,4 +122,20 @@ public function importShippingRate(Mage_Shipping_Model_Rate_Result_Abstract $rat } return $this; } + + /** + * @return float + */ + public function getPrice() + { + return (float) $this->_getData('price'); + } + + /** + * @return $this + */ + public function setPrice($value) + { + return $this->setData('price', (float) $value); + } } diff --git a/app/code/core/Mage/Sales/Model/Quote/Item.php b/app/code/core/Mage/Sales/Model/Quote/Item.php index 939812da7f2..1c88852dcdd 100644 --- a/app/code/core/Mage/Sales/Model/Quote/Item.php +++ b/app/code/core/Mage/Sales/Model/Quote/Item.php @@ -36,45 +36,12 @@ * @method string getAppliedRuleIds() * @method $this setAppliedRuleIds(string $value) * - * @method $this setBackorders(float $value) - * @method float getBaseCost() - * @method $this setBaseCost(float $value) - * @method float getBaseDiscountAmount() - * @method $this setBaseDiscountAmount(float $value) - * @method float getBaseHiddenTaxAmount() - * @method $this setBaseHiddenTaxAmount(float $value) - * @method float getBasePrice() - * @method $this setBasePrice(float $value) - * @method float getBasePriceInclTax() - * @method $this setBasePriceInclTax(float $value) - * @method float getBaseRowTotal() - * @method $this setBaseRowTotal(float $value) - * @method float getBaseRowTotalInclTax() - * @method $this setBaseRowTotalInclTax(float $value) - * @method $this setBaseRowTotalWithDiscount(float $value) - * @method $this setBaseTaxAmount(float $value) - * @method float getBaseTaxBeforeDiscount() - * @method $this setBaseTaxBeforeDiscount(float $value) - * @method float getBaseWeeeTaxAppliedAmount() - * @method $this setBaseWeeeTaxAppliedAmount(float $value) - * @method float getBaseWeeeTaxAppliedRowAmount() - * @method $this setBaseWeeeTaxAppliedRowAmount(float $value) - * @method float getBaseWeeeTaxDisposition() - * @method $this setBaseWeeeTaxDisposition(float $value) - * @method float getBaseWeeeTaxRowDisposition() - * @method $this setBaseWeeeTaxRowDisposition(float $value) * * @method string getCreatedAt() * @method $this setCreatedAt(string $value) - * @method float getCost() - * @method float getCustomPrice() * * @method string getDescription() * @method $this setDescription(string $value) - * @method float getDiscountAmount() - * @method $this setDiscountAmount(float $value) - * @method float getDiscountPercent() - * @method $this setDiscountPercent(float $value) * * @method int getFreeShipping() * @method $this setFreeShipping(int $value) @@ -87,8 +54,6 @@ * @method $this setHasConfigurationUnavailableError(bool $value) * @method $this unsHasConfigurationUnavailableError() * @method bool getHasError() - * @method float getHiddenTaxAmount() - * @method $this setHiddenTaxAmount(float $value) * * @method int getIsQtyDecimal() * @method $this setIsQtyDecimal(int $value) @@ -103,8 +68,6 @@ * @method int getNoDiscount() * @method $this setNoDiscount(int $value) * - * @method float getOriginalCustomPrice() - * @method $this setOriginalCustomPrice(float $value) * * @method int getParentItemId() * @method $this setParentItemId(int $value) @@ -112,39 +75,22 @@ * @method int getProductId() * @method $this setProductId(int $value) * @method $this setProductType(string $value) - * @method float getPriceInclTax() - * @method $this setPriceInclTax(float $value) * * @method int getQuoteId() * @method $this setQuoteId(int $value) * @method $this setQuoteItemId(int $value) * @method $this setQuoteMessage(string $value) * @method $this setQuoteMessageIndex(string $value) - * @method float getQtyToAdd() - * @method $this setQtyToAdd(float $value) * * @method string getRedirectUrl() * @method $this setRedirectUrl(string $value) - * @method float getRowTotal() - * @method $this setRowTotal(float $value) - * @method float getRowTotalInclTax() - * @method $this setRowTotalInclTax(float $value) - * @method float getRowTotalWithDiscount() - * @method $this setRowTotalWithDiscount(float $value) - * @method float getRowWeight() - * @method $this setRowWeight(float $value) * * @method string getSku() * @method $this setSku(string $value) * @method int getStoreId() * @method $this setStoreId(int $value) * - * @method $this setTaxAmount(float $value) - * @method float getTaxBeforeDiscount() - * @method $this setTaxBeforeDiscount(float $value) * @method $this setTaxClassId(int $value) - * @method float getTaxPercent() - * @method $this setTaxPercent(float $value) * * @method string getUpdatedAt() * @method $this setUpdatedAt(string $value) @@ -155,16 +101,6 @@ * * @method string getWeeeTaxApplied() * @method $this setWeeeTaxApplied(string $value) - * @method float getWeeeTaxAppliedAmount() - * @method $this setWeeeTaxAppliedAmount(float $value) - * @method float getWeeeTaxAppliedRowAmount() - * @method $this setWeeeTaxAppliedRowAmount(float $value) - * @method float getWeeeTaxDisposition() - * @method $this setWeeeTaxDisposition(float $value) - * @method float getWeeeTaxRowDisposition() - * @method $this setWeeeTaxRowDisposition(float $value) - * @method float getWeight() - * @method $this setWeight(float $value) * * @category Mage * @package Mage_Sales @@ -936,4 +872,525 @@ public function removeErrorInfosByParams($params) return $this; } + + /** + * @return float + */ + public function getBaseCost() + { + return (float) $this->_getData('base_cost'); + } + + /** + * @return float + */ + public function getBaseDiscountAmount() + { + return (float) $this->_getData('base_discount_amount'); + } + + /** + * @return float + */ + public function getBaseHiddenTaxAmount() + { + return (float) $this->_getData('base_hidden_tax_amount'); + } + + /** + * @return float + */ + public function getBasePrice() + { + return (float) $this->_getData('base_price'); + } + + /** + * @return float + */ + public function getBasePriceInclTax() + { + return (float) $this->_getData('base_price_incl_tax'); + } + + /** + * @return float + */ + public function getBaseRowTotal() + { + return (float) $this->_getData('base_row_total'); + } + + /** + * @return float + */ + public function getBaseRowTotalInclTax() + { + return (float) $this->_getData('base_row_total_incl_tax'); + } + + /** + * @return float + */ + public function getBaseTaxBeforeDiscount() + { + return (float) $this->_getData('base_tax_before_discount'); + } + + /** + * @return float + */ + public function getBaseWeeeTaxAppliedAmount() + { + return (float) $this->_getData('base_weee_tax_applied_amount'); + } + + /** + * @return float + */ + public function getBaseWeeeTaxAppliedRowAmount() + { + return (float) $this->_getData('base_weee_tax_applied_row_amount'); + } + + /** + * @return float + */ + public function getBaseWeeeTaxDisposition() + { + return (float) $this->_getData('base_weee_tax_disposition'); + } + + /** + * @return float + */ + public function getBaseWeeeTaxRowDisposition() + { + return (float) $this->_getData('base_weee_tax_row_disposition'); + } + + /** + * @return float + */ + public function getCost() + { + return (float) $this->_getData('cost'); + } + + /** + * @return float + */ + public function getCustomPrice() + { + return (float) $this->_getData('custom_price'); + } + + /** + * @return float + */ + public function getDiscountAmount() + { + return (float) $this->_getData('discount_amount'); + } + + /** + * @return float + */ + public function getDiscountPercent() + { + return (float) $this->_getData('discount_percent'); + } + + /** + * @return float + */ + public function getHiddenTaxAmount() + { + return (float) $this->_getData('hidden_tax_amount'); + } + + /** + * @return float + */ + public function getOriginalCustomPrice() + { + return (float) $this->_getData('original_custom_price'); + } + + /** + * @return float + */ + public function getPriceInclTax() + { + return (float) $this->_getData('price_incl_tax'); + } + + /** + * @return float + */ + public function getQtyToAdd() + { + return (float) $this->_getData('qty_to_add'); + } + + /** + * @return float + */ + public function getRowTotal() + { + return (float) $this->_getData('row_total'); + } + + /** + * @return float + */ + public function getRowTotalInclTax() + { + return (float) $this->_getData('row_total_incl_tax'); + } + + /** + * @return float + */ + public function getRowTotalWithDiscount() + { + return (float) $this->_getData('row_total_with_discount'); + } + + /** + * @return float + */ + public function getRowWeight() + { + return (float) $this->_getData('row_weight'); + } + + /** + * @return float + */ + public function getTaxBeforeDiscount() + { + return (float) $this->_getData('tax_before_discount'); + } + + /** + * @return float + */ + public function getTaxPercent() + { + return (float) $this->_getData('tax_percent'); + } + + /** + * @return float + */ + public function getWeeeTaxAppliedAmount() + { + return (float) $this->_getData('weee_tax_applied_amount'); + } + + /** + * @return float + */ + public function getWeeeTaxAppliedRowAmount() + { + return (float) $this->_getData('weee_tax_applied_row_amount'); + } + + /** + * @return float + */ + public function getWeeeTaxDisposition() + { + return (float) $this->_getData('weee_tax_disposition'); + } + + /** + * @return float + */ + public function getWeeeTaxRowDisposition() + { + return (float) $this->_getData('weee_tax_row_disposition'); + } + + /** + * @return float + */ + public function getWeight() + { + return (float) $this->_getData('weight'); + } + + /** + * @return float + */ + public function getBaseRowTotalWithDiscount() + { + return (float) $this->_getData('base_row_total_with_discount'); + } + + + /** + * @return $this + */ + public function setBackorders($value) + { + return $this->setData('backorders', (float) $value); + } + + /** + * @return $this + */ + public function setBaseCost($value) + { + return $this->setData('base_cost', (float) $value); + } + + /** + * @return $this + */ + public function setBaseDiscountAmount($value) + { + return $this->setData('base_discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseHiddenTaxAmount($value) + { + return $this->setData('base_hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBasePrice($value) + { + return $this->setData('base_price', (float) $value); + } + + /** + * @return $this + */ + public function setBasePriceInclTax($value) + { + return $this->setData('base_price_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setBaseRowTotal($value) + { + return $this->setData('base_row_total', (float) $value); + } + + /** + * @return $this + */ + public function setBaseRowTotalInclTax($value) + { + return $this->setData('base_row_total_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setBaseRowTotalWithDiscount($value) + { + return $this->setData('base_row_total_with_discount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxAmount($value) + { + return $this->setData('base_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxBeforeDiscount($value) + { + return $this->setData('base_tax_before_discount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeTaxAppliedAmount($value) + { + return $this->setData('base_weee_tax_applied_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeTaxAppliedRowAmount($value) + { + return $this->setData('base_weee_tax_applied_row_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeTaxDisposition($value) + { + return $this->setData('base_weee_tax_disposition', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeTaxRowDisposition($value) + { + return $this->setData('base_weee_tax_row_disposition', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountAmount($value) + { + return $this->setData('discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountPercent($value) + { + return $this->setData('discount_percent', (float) $value); + } + + /** + * @return $this + */ + public function setHiddenTaxAmount($value) + { + return $this->setData('hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setOriginalCustomPrice($value) + { + return $this->setData('original_custom_price', (float) $value); + } + + /** + * @return $this + */ + public function setPriceInclTax($value) + { + return $this->setData('price_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setQtyToAdd($value) + { + return $this->setData('qty_to_add', (float) $value); + } + + /** + * @return $this + */ + public function setRowTotal($value) + { + return $this->setData('row_total', (float) $value); + } + + /** + * @return $this + */ + public function setRowTotalInclTax($value) + { + return $this->setData('row_total_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setRowTotalWithDiscount($value) + { + return $this->setData('row_total_with_discount', (float) $value); + } + + /** + * @return $this + */ + public function setRowWeight($value) + { + return $this->setData('row_weight', (float) $value); + } + + /** + * @return $this + */ + public function setTaxAmount($value) + { + return $this->setData('tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setTaxBeforeDiscount($value) + { + return $this->setData('tax_before_discount', (float) $value); + } + + /** + * @return $this + */ + public function setTaxPercent($value) + { + return $this->setData('tax_percent', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeTaxAppliedAmount($value) + { + return $this->setData('weee_tax_applied_amount', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeTaxAppliedRowAmount($value) + { + return $this->setData('weee_tax_applied_row_amount', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeTaxDisposition($value) + { + return $this->setData('weee_tax_disposition', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeTaxRowDisposition($value) + { + return $this->setData('weee_tax_row_disposition', (float) $value); + } + + /** + * @return $this + */ + public function setWeight($value) + { + return $this->setData('weight', (float) $value); + } } diff --git a/app/code/core/Mage/Sales/Model/Quote/Item/Abstract.php b/app/code/core/Mage/Sales/Model/Quote/Item/Abstract.php index b6a72f8ec8c..9491ed2f9b2 100644 --- a/app/code/core/Mage/Sales/Model/Quote/Item/Abstract.php +++ b/app/code/core/Mage/Sales/Model/Quote/Item/Abstract.php @@ -44,64 +44,14 @@ * @method $this setAppliedRuleIds(string $value) * * @method bool hasBaseCalculationPrice() - * @method $this setBaseCalculationPrice(float $value) - * @method $this setBaseCustomPrice(float $value) - * @method float getBaseDiscountAmount() - * @method $this setBaseDiscountAmount(float $value) - * @method float getBaseDiscountCalculationPrice() - * @method $this setBaseDiscountCalculationPrice(float $value) - * @method $this setBaseExtraRowTaxableAmount(float $value) - * @method $this setBaseExtraTaxableAmount(float $value) - * @method $this setBaseHiddenTaxAmount(float $value) - * @method float getBaseOriginalDiscountAmount() - * @method float setBaseOriginalDiscountAmount(float $value) - * @method $this setBaseOriginalPrice(float $value) - * @method $this setBasePriceInclTax(float $value) * @method $this unsBasePriceInclTax() - * @method float getBaseRowTax() - * @method float getBaseRowTotal() - * @method $this setBaseRowTotal(float $value) - * @method float getBaseRowTotalInclTax() - * @method $this setBaseRowTotalInclTax(float $value) * @method $this unsBaseRowTotalInclTax() - * @method float getBaseRowTotalWithDiscount() - * @method $this setBaseRowTotalWithDiscount(float $value) - * @method float getBaseShippingAmount() - * @method float getBaseTaxableAmount() - * @method $this setBaseTaxableAmount(float $value) - * @method $this setBaseTaxAmount(float $value) - * @method float getBaseTaxBeforeDiscount() - * @method $this setBaseTaxBeforeDiscount(float $value) - * @method $this setBaseTaxCalcPrice(float $value) - * @method $this setBaseTaxCalcRowTotal(float $value) - * @method $this setBasePrice(float $value) - * @method $this setBaseRowTax(float $value) - * @method $this setBaseShippingAmount(float $value) - * @method float getBaseWeeeDiscount() - * @method float getBaseWeeeTaxAppliedAmount() - * @method $this setBaseWeeeTaxAppliedAmount(float $value) - * @method float getBaseWeeeTaxAppliedRowAmount() - * @method $this setBaseWeeeTaxAppliedRowAmount(float $value) * @method int getBaseWeeeTaxDisposition() * @method $this setBaseWeeeTaxDisposition(int $value) * @method int getBaseWeeeTaxRowDisposition() * @method $this setBaseWeeeTaxRowDisposition(int $value) * - * @method $this setCalculationPrice(float $value) * @method bool hasCustomPrice() - * @method float getCustomPrice() - * - * @method float getDiscountAmount() - * @method $this setDiscountAmount(float $value) - * @method float getDiscountCalculationPrice() - * @method $this setDiscountCalculationPrice(float $value) - * @method float getDiscountPercent() - * @method $this setDiscountPercent(float $value) - * @method float getDiscountTaxCompensation() - * @method $this setDiscountTaxCompensation(float $value) - * - * @method $this setExtraRowTaxableAmount(float $value) - * @method $this setExtraTaxableAmount(float $value) * * @method int getFreeShipping() * @method $this setFreeShipping(int $value) @@ -111,66 +61,35 @@ * @method $this setHasError(bool $value) * @method bool getHasConfigurationUnavailableError() * @method $this unsHasConfigurationUnavailableError() - * @method $this setHiddenTaxAmount(float $value) * * @method bool getIsPriceInclTax() * @method $this setIsPriceInclTax(bool $value) * * @method string getName() * @method bool getNoDiscount() - * @method float getNominalRowTotal() * @method array getNominalTotalDetails() * * @method $this unsMessage() * * @method bool hasOriginalCustomPrice() - * @method float getOriginalCustomPrice() - * @method float getOriginalDiscountAmount() - * @method $this setOriginalDiscountAmount(float $value) * * @method int getParentItemId() * @method $this setParentItemId(int $value) - * @method $this setPriceInclTax(float $value) * @method $this unsPriceInclTax() * @method int getProductId() * @method $this setProduct(Mage_Catalog_Model_Product $value) * @method array getProductOrderOptions() * @method string getProductType() * - * @method $this setQty(float $value) - * - * @method float getRowTax() * @method $this setRowTax(int $rowTax) - * @method float getRowTotal() - * @method $this setRowTotal(float $value) - * @method $this setRowTotalExcTax(float $value) - * @method float getRowTotalInclTax() - * @method $this setRowTotalInclTax(float $value) * @method $this unsRowTotalInclTax() - * @method float getRowTotalWithDiscount() - * @method $this setRowTotalWithDiscount(float $value) - * @method float getRowWeight() * * @method int getStoreId() * - * @method float getTaxableAmount() - * @method $this setTaxableAmount(float $value) - * @method float getTaxBeforeDiscount() - * @method $this setTaxCalcPrice(float $value) - * @method $this setTaxCalcRowTotal(float $value) - * @method float getTaxPercent() * @method $this setTaxRates(array $value) - * @method $this setTaxAmount(float $value) - * @method $this setTaxBeforeDiscount(float $value) - * @method $this setTaxPercent(float $value) * - * @method float getWeeeDiscount() * @method string getWeeeTaxApplied() * @method $this setWeeeTaxApplied(string $value) - * @method float getWeeeTaxAppliedAmount() - * @method $this setWeeeTaxAppliedAmount(float $value) - * @method float getWeeeTaxAppliedRowAmount() - * @method $this setWeeeTaxAppliedRowAmount(float $value) * @method int getWeeeTaxDisposition() * @method $this setWeeeTaxDisposition(int $value) * @method int getWeeeTaxRowDisposition() @@ -932,4 +851,628 @@ protected function _calculatePrice($value, $saveTaxes = true) return $value; } + + /** + * @return float + */ + public function getBaseDiscountAmount() + { + return (float) $this->_getData('base_discount_amount'); + } + + /** + * @return float + */ + public function getBaseDiscountCalculationPrice() + { + return (float) $this->_getData('base_discount_calculation_price'); + } + + /** + * @return float + */ + public function getBaseOriginalDiscountAmount() + { + return (float) $this->_getData('base_original_discount_amount'); + } + + /** + * @return float + */ + public function getBaseRowTax() + { + return (float) $this->_getData('base_row_tax'); + } + + /** + * @return float + */ + public function getBaseRowTotal() + { + return (float) $this->_getData('base_row_total'); + } + + /** + * @return float + */ + public function getBaseRowTotalInclTax() + { + return (float) $this->_getData('base_row_total_incl_tax'); + } + + /** + * @return float + */ + public function getBaseRowTotalWithDiscount() + { + return (float) $this->_getData('base_row_total_with_discount'); + } + + /** + * @return float + */ + public function getBaseShippingAmount() + { + return (float) $this->_getData('base_shipping_amount'); + } + + /** + * @return float + */ + public function getBaseTaxableAmount() + { + return (float) $this->_getData('base_taxable_amount'); + } + + /** + * @return float + */ + public function getBaseTaxBeforeDiscount() + { + return (float) $this->_getData('base_tax_before_discount'); + } + + /** + * @return float + */ + public function getBaseWeeeDiscount() + { + return (float) $this->_getData('base_weee_discount'); + } + + /** + * @return float + */ + public function getBaseWeeeTaxAppliedAmount() + { + return (float) $this->_getData('base_weee_tax_applied_amount'); + } + + /** + * @return float + */ + public function getBaseWeeeTaxAppliedRowAmount() + { + return (float) $this->_getData('base_weee_tax_applied_row_amount'); + } + + /** + * @return float + */ + public function getCustomPrice() + { + return (float) $this->_getData('custom_price'); + } + + /** + * @return float + */ + public function getDiscountAmount() + { + return (float) $this->_getData('discount_amount'); + } + + /** + * @return float + */ + public function getDiscountCalculationPrice() + { + return (float) $this->_getData('discount_calculation_price'); + } + + /** + * @return float + */ + public function getDiscountPercent() + { + return (float) $this->_getData('discount_percent'); + } + + /** + * @return float + */ + public function getDiscountTaxCompensation() + { + return (float) $this->_getData('discount_tax_compensation'); + } + + /** + * @return float + */ + public function getNominalRowTotal() + { + return (float) $this->_getData('nominal_row_total'); + } + + /** + * @return float + */ + public function getOriginalCustomPrice() + { + return (float) $this->_getData('original_custom_price'); + } + + /** + * @return float + */ + public function getOriginalDiscountAmount() + { + return (float) $this->_getData('original_discount_amount'); + } + + /** + * @return float + */ + public function getRowTax() + { + return (float) $this->_getData('row_tax'); + } + + /** + * @return float + */ + public function getRowTotal() + { + return (float) $this->_getData('row_total'); + } + + /** + * @return float + */ + public function getRowTotalInclTax() + { + return (float) $this->_getData('row_total_incl_tax'); + } + + /** + * @return float + */ + public function getRowTotalWithDiscount() + { + return (float) $this->_getData('row_total_with_discount'); + } + + /** + * @return float + */ + public function getRowWeight() + { + return (float) $this->_getData('row_weight'); + } + + /** + * @return float + */ + public function getTaxableAmount() + { + return (float) $this->_getData('taxable_amount'); + } + + /** + * @return float + */ + public function getTaxBeforeDiscount() + { + return (float) $this->_getData('tax_before_discount'); + } + + /** + * @return float + */ + public function getTaxPercent() + { + return (float) $this->_getData('tax_percent'); + } + + /** + * @return float + */ + public function getWeeeDiscount() + { + return (float) $this->_getData('weee_discount'); + } + + /** + * @return float + */ + public function getWeeeTaxAppliedAmount() + { + return (float) $this->_getData('weee_tax_applied_amount'); + } + + /** + * @return float + */ + public function getWeeeTaxAppliedRowAmount() + { + return (float) $this->_getData('weee_tax_applied_row_amount'); + } + + /** + * @return $this + */ + public function setBaseOriginalDiscountAmount($value) + { + return $this->setData('base_original_discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseCalculationPrice($value) + { + return $this->setData('base_calculation_price', (float) $value); + } + + /** + * @return $this + */ + public function setBaseCustomPrice($value) + { + return $this->setData('base_custom_price', (float) $value); + } + + /** + * @return $this + */ + public function setBaseDiscountAmount($value) + { + return $this->setData('base_discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseDiscountCalculationPrice($value) + { + return $this->setData('base_discount_calculation_price', (float) $value); + } + + /** + * @return $this + */ + public function setBaseExtraRowTaxableAmount($value) + { + return $this->setData('base_extra_row_taxable_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseExtraTaxableAmount($value) + { + return $this->setData('base_extra_taxable_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseHiddenTaxAmount($value) + { + return $this->setData('base_hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseOriginalPrice($value) + { + return $this->setData('base_original_price', (float) $value); + } + + /** + * @return $this + */ + public function setBasePriceInclTax($value) + { + return $this->setData('base_price_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setBaseRowTotal($value) + { + return $this->setData('base_row_total', (float) $value); + } + + /** + * @return $this + */ + public function setBaseRowTotalInclTax($value) + { + return $this->setData('base_row_total_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setBaseRowTotalWithDiscount($value) + { + return $this->setData('base_row_total_with_discount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxableAmount($value) + { + return $this->setData('base_taxable_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxAmount($value) + { + return $this->setData('base_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxBeforeDiscount($value) + { + return $this->setData('base_tax_before_discount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxCalcPrice($value) + { + return $this->setData('base_tax_calc_price', (float) $value); + } + + /** + * @return $this + */ + public function setBaseTaxCalcRowTotal($value) + { + return $this->setData('base_tax_calc_row_total', (float) $value); + } + + /** + * @return $this + */ + public function setBasePrice($value) + { + return $this->setData('base_price', (float) $value); + } + + /** + * @return $this + */ + public function setBaseRowTax($value) + { + return $this->setData('base_row_tax', (float) $value); + } + + /** + * @return $this + */ + public function setBaseShippingAmount($value) + { + return $this->setData('base_shipping_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeTaxAppliedAmount($value) + { + return $this->setData('base_weee_tax_applied_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseWeeeTaxAppliedRowAmount($value) + { + return $this->setData('base_weee_tax_applied_row_amount', (float) $value); + } + + /** + * @return $this + */ + public function setCalculationPrice($value) + { + return $this->setData('calculation_price', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountAmount($value) + { + return $this->setData('discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountCalculationPrice($value) + { + return $this->setData('discount_calculation_price', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountPercent($value) + { + return $this->setData('discount_percent', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountTaxCompensation($value) + { + return $this->setData('discount_tax_compensation', (float) $value); + } + + /** + * @return $this + */ + public function setExtraRowTaxableAmount($value) + { + return $this->setData('extra_row_taxable_amount', (float) $value); + } + + /** + * @return $this + */ + public function setExtraTaxableAmount($value) + { + return $this->setData('extra_taxable_amount', (float) $value); + } + + /** + * @return $this + */ + public function setHiddenTaxAmount($value) + { + return $this->setData('hidden_tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setOriginalDiscountAmount($value) + { + return $this->setData('original_discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setPriceInclTax($value) + { + return $this->setData('price_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setQty($value) + { + return $this->setData('qty', (float) $value); + } + + /** + * @return $this + */ + public function setRowTotal($value) + { + return $this->setData('row_total', (float) $value); + } + + /** + * @return $this + */ + public function setRowTotalExcTax($value) + { + return $this->setData('row_total_exc_tax', (float) $value); + } + + /** + * @return $this + */ + public function setRowTotalInclTax($value) + { + return $this->setData('row_total_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setRowTotalWithDiscount($value) + { + return $this->setData('row_total_with_discount', (float) $value); + } + + /** + * @return $this + */ + public function setTaxableAmount($value) + { + return $this->setData('taxable_amount', (float) $value); + } + + /** + * @return $this + */ + public function setTaxCalcPrice($value) + { + return $this->setData('tax_calc_price', (float) $value); + } + + /** + * @return $this + */ + public function setTaxCalcRowTotal($value) + { + return $this->setData('tax_calc_row_total', (float) $value); + } + + /** + * @return $this + */ + public function setTaxAmount($value) + { + return $this->setData('tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setTaxBeforeDiscount($value) + { + return $this->setData('tax_before_discount', (float) $value); + } + + /** + * @return $this + */ + public function setTaxPercent($value) + { + return $this->setData('tax_percent', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeTaxAppliedAmount($value) + { + return $this->setData('weee_tax_applied_amount', (float) $value); + } + + /** + * @return $this + */ + public function setWeeeTaxAppliedRowAmount($value) + { + return $this->setData('weee_tax_applied_row_amount', (float) $value); + } } diff --git a/app/code/core/Mage/Sales/Model/Quote/Item/Option.php b/app/code/core/Mage/Sales/Model/Quote/Item/Option.php index b88a5070602..06572bfd9a1 100644 --- a/app/code/core/Mage/Sales/Model/Quote/Item/Option.php +++ b/app/code/core/Mage/Sales/Model/Quote/Item/Option.php @@ -31,7 +31,6 @@ * @method Mage_Sales_Model_Resource_Quote_Item_Option getResource() * @method Mage_Sales_Model_Resource_Quote_Item_Option_Collection getCollection() * - * @method $this setBackorders(float $value) * @method $this setHasError(bool $value) * @method $this setHasQtyOptionUpdate(bool $value) * @method int getItemId() @@ -155,4 +154,12 @@ public function __clone() $this->_item = null; return $this; } + + /** + * @return $this + */ + public function setBackorders($value) + { + return $this->setData('backorders', (float) $value); + } } diff --git a/app/code/core/Mage/Sales/Model/Recurring/Profile.php b/app/code/core/Mage/Sales/Model/Recurring/Profile.php index f960b44569e..b81624b7812 100644 --- a/app/code/core/Mage/Sales/Model/Recurring/Profile.php +++ b/app/code/core/Mage/Sales/Model/Recurring/Profile.php @@ -62,24 +62,14 @@ * @method $this setPeriodFrequency(int $value) * @method int getPeriodMaxCycles() * @method $this setPeriodMaxCycles(int $value) - * @method float getBillingAmount() - * @method $this setBillingAmount(float $value) * @method string getTrialPeriodUnit() * @method $this setTrialPeriodUnit(string $value) * @method int getTrialPeriodFrequency() * @method $this setTrialPeriodFrequency(int $value) * @method int getTrialPeriodMaxCycles() * @method $this setTrialPeriodMaxCycles(int $value) - * @method float getTrialBillingAmount() - * @method $this setTrialBillingAmount(float $value) * @method string getCurrencyCode() * @method $this setCurrencyCode(string $value) - * @method float getShippingAmount() - * @method $this setShippingAmount(float $value) - * @method float getTaxAmount() - * @method $this setTaxAmount(float $value) - * @method float getInitAmount() - * @method $this setInitAmount(float $value) * @method int getInitMayFail() * @method $this setInitMayFail(int $value) * @method string getOrderInfo() @@ -797,4 +787,84 @@ private function _cleanupArray(&$array) } } } + + /** + * @return float + */ + public function getBillingAmount() + { + return (float) $this->_getData('billing_amount'); + } + + /** + * @return float + */ + public function getTrialBillingAmount() + { + return (float) $this->_getData('trial_billing_amount'); + } + + /** + * @return float + */ + public function getShippingAmount() + { + return (float) $this->_getData('shipping_amount'); + } + + /** + * @return float + */ + public function getTaxAmount() + { + return (float) $this->_getData('tax_amount'); + } + + /** + * @return float + */ + public function getInitAmount() + { + return (float) $this->_getData('init_amount'); + } + + /** + * @return $this + */ + public function setBillingAmount($value) + { + return $this->setData('billing_amount', (float) $value); + } + + /** + * @return $this + */ + public function setTrialBillingAmount($value) + { + return $this->setData('trial_billing_amount', (float) $value); + } + + /** + * @return $this + */ + public function setShippingAmount($value) + { + return $this->setData('shipping_amount', (float) $value); + } + + /** + * @return $this + */ + public function setTaxAmount($value) + { + return $this->setData('tax_amount', (float) $value); + } + + /** + * @return $this + */ + public function setInitAmount($value) + { + return $this->setData('init_amount', (float) $value); + } } diff --git a/app/code/core/Mage/SalesRule/Model/Rule.php b/app/code/core/Mage/SalesRule/Model/Rule.php index 98985869972..8732003b9ce 100644 --- a/app/code/core/Mage/SalesRule/Model/Rule.php +++ b/app/code/core/Mage/SalesRule/Model/Rule.php @@ -57,9 +57,6 @@ * @method $this setSortOrder(int $value) * @method string getSimpleAction() * @method $this setSimpleAction(string $value) - * @method $this setDiscountAmount(float $value) - * @method float getDiscountQty() - * @method $this setDiscountQty(float $value) * @method int getDiscountStep() * @method $this setDiscountStep(int $value) * @method int getSimpleFreeShipping() @@ -557,4 +554,28 @@ public function toArray(array $arrAttributes = array()) { return parent::toArray($arrAttributes); } + + /** + * @return float + */ + public function getDiscountQty() + { + return (float) $this->_getData('discount_qty'); + } + + /** + * @return $this + */ + public function setDiscountAmount($value) + { + return $this->setData('discount_amount', (float) $value); + } + + /** + * @return $this + */ + public function setDiscountQty($value) + { + return $this->setData('discount_qty', (float) $value); + } } diff --git a/app/code/core/Mage/Sendfriend/Model/Sendfriend.php b/app/code/core/Mage/Sendfriend/Model/Sendfriend.php index 46f2822822d..991850ceb8e 100644 --- a/app/code/core/Mage/Sendfriend/Model/Sendfriend.php +++ b/app/code/core/Mage/Sendfriend/Model/Sendfriend.php @@ -545,6 +545,7 @@ protected function _sentCountByCookies($increment = false) return count($newTimes); } + /** * Return count of sent in last period by IP address * @@ -566,6 +567,7 @@ protected function _sentCountByIp($increment = false) return $this->_getResource()->getSendCount($this, $this->getRemoteAddr(), time() - $period, $websiteId); } + /** * Register self in global register with name send_to_friend_model * diff --git a/app/code/core/Mage/Shipping/Model/Rate/Request.php b/app/code/core/Mage/Shipping/Model/Rate/Request.php index b7bbcb947b5..383cdb34fbf 100644 --- a/app/code/core/Mage/Shipping/Model/Rate/Request.php +++ b/app/code/core/Mage/Shipping/Model/Rate/Request.php @@ -61,8 +61,6 @@ * * @method string getBaseCurrency() * @method $this setBaseCurrency(string $value) - * @method float getBaseSubtotalInclTax() - * @method $this setBaseSubtotalInclTax(float $value) * * @method $this setCity(string $value) * @method string getConditionName() @@ -84,8 +82,6 @@ * * @method boolean getFreeShipping() * @method $this setFreeShipping(boolean $flag) - * @method float getFreeMethodWeight() - * @method $this setFreeMethodWeight(float $value) * * @method string getLimitCarrier() * @method $this setLimitCarrier(string $value) @@ -94,12 +90,6 @@ * * @method boolean getOptionInsurance() * @method $this setOptionInsurance(boolean $value) - * @method float getOptionHandling() - * @method $this setOptionHandling(float $flag) - * @method float getOrderTotalQty() - * @method $this setOrderTotalQty(float $value) - * @method float getOrderSubtotal() - * @method $this setOrderSubtotal(float $value) * @method string getOrigCountryId() * @method $this setOrigCountryId(string $value) * @method int getOrigRegionId() @@ -109,16 +99,6 @@ * @method string getOrigCity() * @method $this setOrigCity(string $value) * - * @method float getPackageValue() - * @method $this setPackageValue(float $value) - * @method float getPackageValueWithDiscount() - * @method $this setPackageValueWithDiscount(float $value) - * @method float getPackagePhysicalValue() - * @method $this setPackagePhysicalValue(float $value) - * @method float getPackageQty() - * @method $this setPackageQty(float $value) - * @method float getPackageWeight() - * @method $this setPackageWeight(float $value) * @method int getPackageHeight() * @method $this setPackageHeight(int $value) * @method int getPackageWidth() @@ -145,4 +125,163 @@ class Mage_Shipping_Model_Rate_Request extends Varien_Object { + /** + * @return float + */ + public function getBaseSubtotalInclTax() + { + return (float) $this->_getData('base_subtotal_incl_tax'); + } + + /** + * @return float + */ + public function getFreeMethodWeight() + { + return (float) $this->_getData('free_method_weight'); + } + + /** + * @return float + */ + public function getOptionHandling() + { + return (float) $this->_getData('option_handling'); + } + + /** + * @return float + */ + public function getOrderTotalQty() + { + return (float) $this->_getData('order_total_qty'); + } + + /** + * @return float + */ + public function getOrderSubtotal() + { + return (float) $this->_getData('order_subtotal'); + } + + /** + * @return float + */ + public function getPackageValue() + { + return (float) $this->_getData('package_value'); + } + + /** + * @return float + */ + public function getPackageValueWithDiscount() + { + return (float) $this->_getData('package_value_with_discount'); + } + + /** + * @return float + */ + public function getPackagePhysicalValue() + { + return (float) $this->_getData('package_physical_value'); + } + + /** + * @return float + */ + public function getPackageQty() + { + return (float) $this->_getData('package_qty'); + } + + /** + * @return float + */ + public function getPackageWeight() + { + return (float) $this->_getData('package_weight'); + } + + /** + * @return $this + */ + public function setBaseSubtotalInclTax($value) + { + return $this->setData('base_subtotal_incl_tax', (float) $value); + } + + /** + * @return $this + */ + public function setFreeMethodWeight($value) + { + return $this->setData('free_method_weight', (float) $value); + } + + /** + * @return $this + */ + public function setOptionHandling($flag) + { + return $this->setData('option_handling', (float) $flag); + } + + /** + * @return $this + */ + public function setOrderTotalQty($value) + { + return $this->setData('order_total_qty', (float) $value); + } + + /** + * @return $this + */ + public function setOrderSubtotal($value) + { + return $this->setData('order_subtotal', (float) $value); + } + + /** + * @return $this + */ + public function setPackageValue($value) + { + return $this->setData('package_value', (float) $value); + } + + /** + * @return $this + */ + public function setPackageValueWithDiscount($value) + { + return $this->setData('package_value_with_discount', (float) $value); + } + + /** + * @return $this + */ + public function setPackagePhysicalValue($value) + { + return $this->setData('package_physical_value', (float) $value); + } + + /** + * @return $this + */ + public function setPackageQty($value) + { + return $this->setData('package_qty', (float) $value); + } + + /** + * @return $this + */ + public function setPackageWeight($value) + { + return $this->setData('package_weight', (float) $value); + } } diff --git a/app/code/core/Mage/Shipping/Model/Rate/Result/Method.php b/app/code/core/Mage/Shipping/Model/Rate/Result/Method.php index a6c7a9aeb6f..517787b0469 100644 --- a/app/code/core/Mage/Shipping/Model/Rate/Result/Method.php +++ b/app/code/core/Mage/Shipping/Model/Rate/Result/Method.php @@ -39,8 +39,6 @@ * @method string getMethod() * @method $this setMethod(string $value) * @method $this setMethodTitle(string $value) - * @method float getPrice() - * @method $this setCost(float $value) */ class Mage_Shipping_Model_Rate_Result_Method extends Mage_Shipping_Model_Rate_Result_Abstract { @@ -55,4 +53,20 @@ public function setPrice($price) $this->setData('price', Mage::app()->getStore()->roundPrice($price)); return $this; } + + /** + * @return float + */ + public function getPrice() + { + return (float) $this->_getData('price'); + } + + /** + * @return $this + */ + public function setCost($value) + { + return $this->setData('cost', (float) $value); + } } diff --git a/app/code/core/Mage/Shipping/Model/Shipment/Request.php b/app/code/core/Mage/Shipping/Model/Shipment/Request.php index 0d6e2e0d91e..2e2e46e90e4 100644 --- a/app/code/core/Mage/Shipping/Model/Shipment/Request.php +++ b/app/code/core/Mage/Shipping/Model/Shipment/Request.php @@ -79,8 +79,6 @@ * @method string getRecipientAddressCountryCode() * @method $this setShippingMethod(string $value) * @method string getShippingMethod() - * @method $this setPackageWeight(float $value) - * @method float getPackageWeight() * @method $this setPackages(int $value) * @method $this setRecipientEmail(string $value) * @method $this setShipperEmail(string $value) @@ -93,4 +91,19 @@ */ class Mage_Shipping_Model_Shipment_Request extends Varien_Object { + /** + * @return float + */ + public function getPackageWeight() + { + return (float) $this->_getData('package_weight'); + } + + /** + * @return $this + */ + public function setPackageWeight($value) + { + return $this->setData('package_weight', (float) $value); + } } diff --git a/app/code/core/Mage/Shipping/Model/Shipment/Return.php b/app/code/core/Mage/Shipping/Model/Shipment/Return.php index f7b946df4e2..a9c73e354c0 100644 --- a/app/code/core/Mage/Shipping/Model/Shipment/Return.php +++ b/app/code/core/Mage/Shipping/Model/Shipment/Return.php @@ -77,8 +77,6 @@ * @method string getRecipientAddressCountryCode() * @method Mage_Shipping_Model_Shipment_Request setShippingMethod(string $value) * @method string getShippingMethod() - * @method Mage_Shipping_Model_Shipment_Request setPackageWeight(float $value) - * @method float getPackageWeight() * * @category Mage * @package Mage_Shipping @@ -86,4 +84,19 @@ */ class Mage_Shipping_Model_Shipment_Return extends Varien_Object { + /** + * @return float + */ + public function getPackageWeight() + { + return (float) $this->_getData('package_weight'); + } + + /** + * @return $this + */ + public function setPackageWeight($value) + { + return $this->setData('package_weight', (float) $value); + } } diff --git a/app/code/core/Mage/Tax/Model/Calculation/Rate.php b/app/code/core/Mage/Tax/Model/Calculation/Rate.php index 67530a7502a..3f610fd57f1 100644 --- a/app/code/core/Mage/Tax/Model/Calculation/Rate.php +++ b/app/code/core/Mage/Tax/Model/Calculation/Rate.php @@ -33,8 +33,6 @@ * * @method string getCode() * @method $this setCode(string $value) - * @method float getRate() - * @method $this setRate(float $value) * @method int getTaxCalculationRateId() * @method bool hasTaxPostcode() * @method string getTaxCountryId() @@ -263,4 +261,20 @@ protected function _isInRule() { return $this->getResource()->isInRule($this->getId()); } + + /** + * @return float + */ + public function getRate() + { + return (float) $this->_getData('rate'); + } + + /** + * @return $this + */ + public function setRate($value) + { + return $this->setData('rate', (float) $value); + } } diff --git a/app/code/core/Mage/Tax/Model/Calculation/Rule.php b/app/code/core/Mage/Tax/Model/Calculation/Rule.php index e4cdb2efc29..111ab27ffea 100644 --- a/app/code/core/Mage/Tax/Model/Calculation/Rule.php +++ b/app/code/core/Mage/Tax/Model/Calculation/Rule.php @@ -31,14 +31,12 @@ * @method Mage_Tax_Model_Resource_Calculation_Rule getResource() * @method Mage_Tax_Model_Resource_Calculation_Rule_Collection getCollection() * - * @method $this setCalculateSubtotal(float $value) * @method string getCode() * @method $this setCode(string $value) * @method int getPriority() * @method $this setPriority(int $value) * @method int getPosition() * @method $this setPosition(int $value) - * @method float getTaxRate() * @method string getTaxCustomerClass() * @method string getTaxProductClass() * @@ -205,4 +203,20 @@ public function fetchRuleCodes($rateId, $customerTaxClassId, $productTaxClassId) { return $this->getResource()->fetchRuleCodes($rateId, $customerTaxClassId, $productTaxClassId); } + + /** + * @return float + */ + public function getTaxRate() + { + return (float) $this->_getData('tax_rate'); + } + + /** + * @return $this + */ + public function setCalculateSubtotal($value) + { + return $this->setData('calculate_subtotal', (float) $value); + } } diff --git a/app/code/core/Mage/Tax/Model/Sales/Order/Tax.php b/app/code/core/Mage/Tax/Model/Sales/Order/Tax.php index 443ee690c3b..5eea701db3a 100644 --- a/app/code/core/Mage/Tax/Model/Sales/Order/Tax.php +++ b/app/code/core/Mage/Tax/Model/Sales/Order/Tax.php @@ -37,20 +37,12 @@ * @method $this setCode(string $value) * @method string getTitle() * @method $this setTitle(string $value) - * @method float getPercent() - * @method $this setPercent(float $value) - * @method float getAmount() - * @method $this setAmount(float $value) * @method int getPriority() * @method $this setPriority(int $value) * @method int getPosition() * @method $this setPosition(int $value) - * @method float getBaseAmount() - * @method $this setBaseAmount(float $value) * @method int getProcess() * @method $this setProcess(int $value) - * @method float getBaseRealAmount() - * @method $this setBaseRealAmount(float $value) * @method int getHidden() * @method $this setHidden(int $value) * @@ -64,4 +56,68 @@ protected function _construct() { $this->_init('tax/sales_order_tax'); } + + /** + * @return float + */ + public function getPercent() + { + return (float) $this->_getData('percent'); + } + + /** + * @return float + */ + public function getAmount() + { + return (float) $this->_getData('amount'); + } + + /** + * @return float + */ + public function getBaseAmount() + { + return (float) $this->_getData('base_amount'); + } + + /** + * @return float + */ + public function getBaseRealAmount() + { + return (float) $this->_getData('base_real_amount'); + } + + /** + * @return $this + */ + public function setPercent($value) + { + return $this->setData('percent', (float) $value); + } + + /** + * @return $this + */ + public function setAmount($value) + { + return $this->setData('amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseAmount($value) + { + return $this->setData('base_amount', (float) $value); + } + + /** + * @return $this + */ + public function setBaseRealAmount($value) + { + return $this->setData('base_real_amount', (float) $value); + } } diff --git a/app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php b/app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php index cbf2c37de68..a6a46831f31 100644 --- a/app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php +++ b/app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php @@ -535,6 +535,7 @@ protected function _parseXmlResponse($response) } } } + /** * Get configuration data of carrier * @@ -909,6 +910,7 @@ public function getCode($type, $code = '') return $codes[$type][$code]; } } + /** * Get tracking * @@ -986,6 +988,7 @@ protected function _getXmlTracking($trackingData) $this->_parseXmlTrackingResponse($tracking, $responseBody); } } + /** * Parse xml tracking response * diff --git a/app/code/core/Mage/Weee/Model/Attribute/Backend/Weee/Tax.php b/app/code/core/Mage/Weee/Model/Attribute/Backend/Weee/Tax.php index c68d14ddc29..0c90243dcaf 100644 --- a/app/code/core/Mage/Weee/Model/Attribute/Backend/Weee/Tax.php +++ b/app/code/core/Mage/Weee/Model/Attribute/Backend/Weee/Tax.php @@ -33,6 +33,7 @@ public static function getBackendModelName() { return 'weee/attribute_backend_weee_tax'; } + /** * Retrieve resource model * diff --git a/app/code/core/Mage/Wishlist/Model/Item.php b/app/code/core/Mage/Wishlist/Model/Item.php index c977471691b..3565fbb6927 100644 --- a/app/code/core/Mage/Wishlist/Model/Item.php +++ b/app/code/core/Mage/Wishlist/Model/Item.php @@ -40,7 +40,6 @@ * @method int getProductId() * @method $this setProductId(int $value) * @method $this unsProduct() - * @method float getQty() * @method int getStoreId() * @method $this setStoreId(int $value) * @method int getWishlistId() @@ -740,4 +739,12 @@ public function loadWithOptions($id, $optionsFilter = null) $this->setOptions($options->getOptionsByItem($this)); return $this; } + + /** + * @return float + */ + public function getQty() + { + return (float) $this->_getData('qty'); + } } diff --git a/app/code/core/Mage/Wishlist/controllers/IndexController.php b/app/code/core/Mage/Wishlist/controllers/IndexController.php index e391738c32d..53cb0949a78 100644 --- a/app/code/core/Mage/Wishlist/controllers/IndexController.php +++ b/app/code/core/Mage/Wishlist/controllers/IndexController.php @@ -32,7 +32,6 @@ * @package Mage_Wishlist * @author Magento Core Team * - * @method float getQty() * @method int getProductId() */ class Mage_Wishlist_IndexController extends Mage_Wishlist_Controller_Abstract @@ -770,4 +769,12 @@ public function downloadCustomOptionAction() } exit(0); } + + /** + * @return float + */ + public function getQty() + { + return (float) $this->_getData('qty'); + } }