00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 $installer = $this;
00028
00029
00030 $installer->getConnection()->addColumn($this->getTable('sales_order'), 'subtotal_refunded', 'decimal(12,4) NULL');
00031 $installer->getConnection()->addColumn($this->getTable('sales_order'), 'subtotal_canceled', 'decimal(12,4) NULL');
00032 $installer->getConnection()->addColumn($this->getTable('sales_order'), 'tax_refunded', 'decimal(12,4) NULL');
00033 $installer->getConnection()->addColumn($this->getTable('sales_order'), 'tax_canceled', 'decimal(12,4) NULL');
00034 $installer->getConnection()->addColumn($this->getTable('sales_order'), 'shipping_refunded', 'decimal(12,4) NULL');
00035 $installer->getConnection()->addColumn($this->getTable('sales_order'), 'shipping_canceled', 'decimal(12,4) NULL');
00036 $installer->getConnection()->addColumn($this->getTable('sales_order'), 'base_subtotal_refunded', 'decimal(12,4) NULL');
00037 $installer->getConnection()->addColumn($this->getTable('sales_order'), 'base_subtotal_canceled', 'decimal(12,4) NULL');
00038 $installer->getConnection()->addColumn($this->getTable('sales_order'), 'base_tax_refunded', 'decimal(12,4) NULL');
00039 $installer->getConnection()->addColumn($this->getTable('sales_order'), 'base_tax_canceled', 'decimal(12,4) NULL');
00040 $installer->getConnection()->addColumn($this->getTable('sales_order'), 'base_shipping_refunded', 'decimal(12,4) NULL');
00041 $installer->getConnection()->addColumn($this->getTable('sales_order'), 'base_shipping_canceled', 'decimal(12,4) NULL');
00042
00043 $installer->addAttribute('order', 'subtotal_refunded', array('type'=>'static'));
00044 $installer->addAttribute('order', 'subtotal_canceled', array('type'=>'static'));
00045 $installer->addAttribute('order', 'tax_refunded', array('type'=>'static'));
00046 $installer->addAttribute('order', 'tax_canceled', array('type'=>'static'));
00047 $installer->addAttribute('order', 'shipping_refunded', array('type'=>'static'));
00048 $installer->addAttribute('order', 'shipping_canceled', array('type'=>'static'));
00049 $installer->addAttribute('order', 'base_subtotal_refunded', array('type'=>'static'));
00050 $installer->addAttribute('order', 'base_subtotal_canceled', array('type'=>'static'));
00051 $installer->addAttribute('order', 'base_tax_refunded', array('type'=>'static'));
00052 $installer->addAttribute('order', 'base_tax_canceled', array('type'=>'static'));
00053 $installer->addAttribute('order', 'base_shipping_refunded', array('type'=>'static'));
00054 $installer->addAttribute('order', 'base_shipping_canceled', array('type'=>'static'));