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_invoiced', 'decimal(12,4) NULL');
00031 $installer->getConnection()->addColumn($this->getTable('sales_order'), 'tax_invoiced', 'decimal(12,4) NULL');
00032 $installer->getConnection()->addColumn($this->getTable('sales_order'), 'shipping_invoiced', 'decimal(12,4) NULL');
00033 $installer->getConnection()->addColumn($this->getTable('sales_order'), 'base_subtotal_invoiced', 'decimal(12,4) NULL');
00034 $installer->getConnection()->addColumn($this->getTable('sales_order'), 'base_tax_invoiced', 'decimal(12,4) NULL');
00035 $installer->getConnection()->addColumn($this->getTable('sales_order'), 'base_shipping_invoiced', 'decimal(12,4) NULL');
00036
00037 $installer->addAttribute('order', 'subtotal_invoiced', array('type'=>'static'));
00038 $installer->addAttribute('order', 'tax_invoiced', array('type'=>'static'));
00039 $installer->addAttribute('order', 'shipping_invoiced', array('type'=>'static'));
00040 $installer->addAttribute('order', 'base_subtotal_invoiced', array('type'=>'static'));
00041 $installer->addAttribute('order', 'base_tax_invoiced', array('type'=>'static'));
00042 $installer->addAttribute('order', 'base_shipping_invoiced', array('type'=>'static'));