var $backup; // pre-upgrade backup filename
var $errors = array();
- var $ma_upgrade_time = 300;
+ var $max_upgrade_time = 300;
function fa_patch()
{
foreach($exts as $ext)
if ($ext['name'] == $ins['name'] && (!check_src_ext_version($ins['version']))) {
$mods[$key]['active'] = false;
- $this->log_error(sprintf(_("Uncompatible extension '%s' disabled for company %d."), $ins['name'], $this->cur_company));
+ $this->log_error(sprintf(_("Uncompatible extension '%s' disabled for company %d."), $ins['name'], $this->cur_company), 'Notice');
$fixed = true;
continue 2;
}
'tax_group_items' => array('rate'),
'budget_trans' => array('type', 'type_no', 'person_id', 'person_type_id', 'memo_'),
'cust_branch' => array('contact_name', 'disable_trans'),
+ 'stock_moves' => array('discount_percent', 'person_id'),
);
foreach($dropcol as $table => $columns)
UPDATE `0_stock_moves` SET
price = price*(1-discount_percent);
-ALTER TABLE `0_stock_moves` DROP COLUMN `discount_percent`;
-
-ALTER TABLE `0_stock_moves` DROP COLUMN `person_id`;
DROP TABLE IF EXISTS `0_movement_types`;