getConnection()->addColumn($this->getTable('sales_order'), 'subtotal_refunded', 'decimal(12,4) NULL'); $installer->getConnection()->addColumn($this->getTable('sales_order'), 'subtotal_canceled', 'decimal(12,4) NULL'); $installer->getConnection()->addColumn($this->getTable('sales_order'), 'tax_refunded', 'decimal(12,4) NULL'); $installer->getConnection()->addColumn($this->getTable('sales_order'), 'tax_canceled', 'decimal(12,4) NULL'); $installer->getConnection()->addColumn($this->getTable('sales_order'), 'shipping_refunded', 'decimal(12,4) NULL'); $installer->getConnection()->addColumn($this->getTable('sales_order'), 'shipping_canceled', 'decimal(12,4) NULL'); $installer->getConnection()->addColumn($this->getTable('sales_order'), 'base_subtotal_refunded', 'decimal(12,4) NULL'); $installer->getConnection()->addColumn($this->getTable('sales_order'), 'base_subtotal_canceled', 'decimal(12,4) NULL'); $installer->getConnection()->addColumn($this->getTable('sales_order'), 'base_tax_refunded', 'decimal(12,4) NULL'); $installer->getConnection()->addColumn($this->getTable('sales_order'), 'base_tax_canceled', 'decimal(12,4) NULL'); $installer->getConnection()->addColumn($this->getTable('sales_order'), 'base_shipping_refunded', 'decimal(12,4) NULL'); $installer->getConnection()->addColumn($this->getTable('sales_order'), 'base_shipping_canceled', 'decimal(12,4) NULL'); $installer->addAttribute('order', 'subtotal_refunded', array('type'=>'static')); $installer->addAttribute('order', 'subtotal_canceled', array('type'=>'static')); $installer->addAttribute('order', 'tax_refunded', array('type'=>'static')); $installer->addAttribute('order', 'tax_canceled', array('type'=>'static')); $installer->addAttribute('order', 'shipping_refunded', array('type'=>'static')); $installer->addAttribute('order', 'shipping_canceled', array('type'=>'static')); $installer->addAttribute('order', 'base_subtotal_refunded', array('type'=>'static')); $installer->addAttribute('order', 'base_subtotal_canceled', array('type'=>'static')); $installer->addAttribute('order', 'base_tax_refunded', array('type'=>'static')); $installer->addAttribute('order', 'base_tax_canceled', array('type'=>'static')); $installer->addAttribute('order', 'base_shipping_refunded', array('type'=>'static')); $installer->addAttribute('order', 'base_shipping_canceled', array('type'=>'static'));