getConnection()->addColumn($this->getTable('sales_order'), 'subtotal_invoiced', 'decimal(12,4) NULL'); $installer->getConnection()->addColumn($this->getTable('sales_order'), 'tax_invoiced', 'decimal(12,4) NULL'); $installer->getConnection()->addColumn($this->getTable('sales_order'), 'shipping_invoiced', 'decimal(12,4) NULL'); $installer->getConnection()->addColumn($this->getTable('sales_order'), 'base_subtotal_invoiced', 'decimal(12,4) NULL'); $installer->getConnection()->addColumn($this->getTable('sales_order'), 'base_tax_invoiced', 'decimal(12,4) NULL'); $installer->getConnection()->addColumn($this->getTable('sales_order'), 'base_shipping_invoiced', 'decimal(12,4) NULL'); $installer->addAttribute('order', 'subtotal_invoiced', array('type'=>'static')); $installer->addAttribute('order', 'tax_invoiced', array('type'=>'static')); $installer->addAttribute('order', 'shipping_invoiced', array('type'=>'static')); $installer->addAttribute('order', 'base_subtotal_invoiced', array('type'=>'static')); $installer->addAttribute('order', 'base_tax_invoiced', array('type'=>'static')); $installer->addAttribute('order', 'base_shipping_invoiced', array('type'=>'static'));