$comp_subdirs = array('images', 'pdf_files', 'backup','js_cache', 'reporting', 'attachments');
+simple_page_mode(true);
+/*
+ FIXME: tb_pref_counter should track prefix per database.
+*/
//---------------------------------------------------------------------------------------------
-if (isset($_GET['selected_id']))
-{
- $selected_id = (int)$_GET['selected_id'];
-}
-elseif (isset($_POST['selected_id']))
-{
- $selected_id = (int)$_POST['selected_id'];
-}
-else
- $selected_id = -1;
-
-//---------------------------------------------------------------------------------------------
-
function check_data($selected_id)
{
global $db_connections, $tb_pref_counter;
- if($selected_id != -1) {
+ if ($selected_id != -1) {
if ($_POST['name'] == "")
{
display_error(_("Database settings are not specified."));
return false;
}
} else {
- if ($_POST['name'] == "" || $_POST['host'] == "" || $_POST['dbuser'] == "" || $_POST['dbname'] == "")
+ if (!get_post('name') || !get_post('host') || !get_post('dbuser') || !get_post('dbname'))
{
display_error(_("Database settings are not specified."));
return false;
unset($db_connections[$id]);
$conn = array_values($db_connections);
$db_connections = $conn;
- //$$db_connections = array_values($db_connections);
return $err;
}
//---------------------------------------------------------------------------------------------
function handle_submit($selected_id)
{
- global $Ajax, $db_connections, $def_coy, $tb_pref_counter, $db,
- $comp_subdirs, $path_to_root;
+ global $db_connections, $def_coy, $tb_pref_counter, $db,
+ $comp_subdirs, $path_to_root, $Mode;
$error = false;
- if (!check_data($selected_id))
- return false;
if ($selected_id==-1)
$selected_id = count($db_connections);
$new = !isset($db_connections[$selected_id]);
- if ((bool)$_POST['def'] == true)
+ if (check_value('def'))
$def_coy = $selected_id;
$db_connections[$selected_id]['name'] = $_POST['name'];
$db_connections[$selected_id]['dbpassword'] = html_entity_decode($_POST['dbpassword'], ENT_QUOTES,
$_SESSION['language']->encoding=='iso-8859-2' ? 'ISO-8859-1' : $_SESSION['language']->encoding);
$db_connections[$selected_id]['dbname'] = $_POST['dbname'];
+ $db_connections[$selected_id]['collation'] = $_POST['collation'];
if (is_numeric($_POST['tbpref']))
{
$db_connections[$selected_id]['tbpref'] = $_POST['tbpref'] == 1 ?
return false;
}
}
-
$error = write_config_db($new);
- set_global_connection();
+
if ($error == -1)
display_error(_("Cannot open the configuration file - ") . $path_to_root . "/config_db.php");
else if ($error == -2)
if ($new)
{
create_comp_dirs(company_path($selected_id), $comp_subdirs);
+ $exts = get_company_extensions();
+ write_extensions($exts, $selected_id);
}
- $exts = get_company_extensions();
- write_extensions($exts, $selected_id);
display_notification($new ? _('New company has been created.') : _('Company has been updated.'));
- $Ajax->activate('_page_body');
+
+ $Mode = 'RESET';
return true;
}
function handle_delete($id)
{
- global $Ajax, $def_coy, $db_connections, $comp_subdirs, $path_to_root;
+ global $Ajax, $def_coy, $db_connections, $comp_subdirs, $path_to_root, $Mode;
// First make sure all company directories from the one under removal are writable.
// Without this after operation we end up with changed per-company owners!
}
display_notification(_("Selected company has been deleted"));
$Ajax->activate('_page_body');
+ $Mode = 'RESET';
}
//---------------------------------------------------------------------------------------------
function display_companies()
{
- global $def_coy, $db_connections;
+ global $def_coy, $db_connections, $supported_collations;
$coyno = user_company();
- echo "
- <script type='text/javascript'>
- function deleteCompany(id, name) {
- if (!confirm('" . _("Are you sure you want to delete company no. ") . "'+id+' '+name+'?'))
- return
- document.location.replace('create_coy.php?c=df&id='+id)
- }
- </script>";
start_table(TABLESTYLE);
$th = array(_("Company"), _("Database Host"), _("Database User"),
- _("Database Name"), _("Table Pref"), _("Default"), "", "");
+ _("Database Name"), _("Table Pref"), _("Charset"), _("Default"), "", "");
table_header($th);
$k=0;
$n = count($conn);
for ($i = 0; $i < $n; $i++)
{
- if ($i == $def_coy)
- $what = _("Yes");
- else
- $what = _("No");
if ($i == $coyno)
start_row("class='stockmankobg'");
else
label_cell($conn[$i]['dbuser']);
label_cell($conn[$i]['dbname']);
label_cell($conn[$i]['tbpref']);
- label_cell($what);
- $edit = _("Edit");
- $delete = _("Delete");
- if (user_graphic_links())
+ label_cell($supported_collations[$conn[$i]['collation']]);
+ label_cell($i == $def_coy ? _("Yes") : _("No"));
+ edit_button_cell("Edit".$i, _("Edit"));
+ if ($i != $coyno)
{
- $edit = set_icon(ICON_EDIT, $edit);
- $delete = set_icon(ICON_DELETE, $delete);
- }
- label_cell("<a href='" . $_SERVER['PHP_SELF']. "?selected_id=$i'>$edit</a>");
- $name = "\"".$conn[$i]['name']."\"";
- label_cell( $i == $coyno ? '' :
- "<a href='javascript:deleteCompany($i, $name)'>$delete</a>");
+ delete_button_cell("Delete".$i, _("Delete"));
+ submit_js_confirm("Delete".$i,
+ sprintf(_("You are about to remove company \'%s\'.\nDo you want to continue ?"),
+ $conn[$i]['name']));
+ } else
+ label_cell('');
end_row();
}
end_table();
display_note(_("The marked company is the current company which cannot be deleted."), 0, 0, "class='currentfg'");
- display_note(_("If no Admin Password is entered, the new Admin Password will be '<b>password</b>' by default "), 1, 0, "class='currentfg'");
+ display_note(_("If no Admin Password is entered, the new Admin Password will be '<b>password</b>' by default "));
}
//---------------------------------------------------------------------------------------------
{
global $def_coy, $db_connections, $tb_pref_counter;
- start_form();
-
start_table(TABLESTYLE2);
if ($selected_id != -1)
$_POST['dbpassword'] = $conn['dbpassword'];
$_POST['dbname'] = $conn['dbname'];
$_POST['tbpref'] = $conn['tbpref'];
- if ($selected_id == $def_coy)
- $_POST['def'] = true;
- else
- $_POST['def'] = false;
+ $_POST['def'] = $selected_id == $def_coy;
$_POST['dbcreate'] = false;
- hidden('selected_id', $selected_id);
+ $_POST['collation'] = $conn['collation'];
hidden('tbpref', $_POST['tbpref']);
hidden('dbpassword', $_POST['dbpassword']);
}
else
{
$_POST['tbpref'] = $tb_pref_counter."_";
- // Insert the current settings as default
+
+ // Use current settings as default
$conn = $db_connections[user_company()];
$_POST['name'] = '';
$_POST['host'] = $conn['host'];
$_POST['dbuser'] = $conn['dbuser'];
$_POST['dbpassword'] = $conn['dbpassword'];
$_POST['dbname'] = $conn['dbname'];
+ $_POST['collation'] = $conn['collation'];
+ unset($_POST['def']);
}
text_row_ex(_("Company"), 'name', 50);
text_row_ex(_("Database User"), 'dbuser', 30);
text_row_ex(_("Database Password"), 'dbpassword', 30);
text_row_ex(_("Database Name"), 'dbname', 30);
+ collations_list_row(_("Database Collation:"), 'collation');
yesno_list_row(_("Table Pref"), 'tbpref', 1, $_POST['tbpref'], _("None"), false);
+ check_row(_("Default Company"), 'def');
+ coa_list_row(_("Database Script"), 'coa');
+ text_row_ex(_("New script Admin Password"), 'admpassword', 20);
} else {
label_row(_("Host"), $_POST['host']);
label_row(_("Database User"), $_POST['dbuser']);
label_row(_("Database Name"), $_POST['dbname']);
label_row(_("Table Pref"), $_POST['tbpref']);
+ if (!get_post('def'))
+ check_row(_("Default Company"), 'def');
+ else
+ label_row(_("Default Company"), _("Yes"));
}
- yesno_list_row(_("Default"), 'def', null, "", "", false);
- if ($selected_id == -1)
- {
- coa_list_row(_("Database Script"), 'coa');
- text_row_ex(_("New script Admin Password"), 'admpassword', 20);
- }
end_table(1);
-
- submit_center('save', _("Save"));
-
- end_form();
+ hidden('selected_id', $selected_id);
}
-
//---------------------------------------------------------------------------------------------
-if (isset($_GET['c']) && $_GET['c'] == 'df') {
- handle_delete( (int)$_GET['id'] );
- $selected_id = -1;
-}
+if (($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM') && check_data($selected_id))
+ handle_submit($selected_id);
-if (get_post('save')) {
- if (handle_submit($selected_id))
- $selected_id = -1;
+if ($Mode == 'Delete')
+ handle_delete($selected_id);
+
+if ($Mode == 'RESET')
+{
+ $selected_id = -1;
+ unset($_POST);
}
//---------------------------------------------------------------------------------------------
-display_companies();
+start_form();
-hyperlink_no_params($_SERVER['PHP_SELF'], _("Create a new company"));
+ display_companies();
+ display_company_edit($selected_id);
+ submit_add_or_update_center($selected_id == -1, '', 'upgrade');
-display_company_edit($selected_id);
+end_form();
-//---------------------------------------------------------------------------------------------
end_page();
$old_encoding = db_get_charset($db);
- ini_set("max_execution_time", "180");
+ ini_set("max_execution_time", max("180", ini_get("max_execution_time")));
db_query("SET foreign_key_checks=0");
+
+ if (isset($connection['collation']))
+ db_set_collation($db, $connection['collation']);
+
$check_line_len = false;
// uncompress gziped backup files
{
global $SysPrefs;
- return isset($_SESSION["wa_current_user"]) ? $_SESSION["wa_current_user"]->prefs->price_dec() : $SysPrefs->prices_dec;
+ return isset($_SESSION["wa_current_user"]) ? $_SESSION["wa_current_user"]->prefs->price_dec() : 2;
}
function user_exrate_dec()
{
global $SysPrefs;
- return isset($_SESSION["wa_current_user"]) ? $_SESSION["wa_current_user"]->prefs->exrate_dec() : $SysPrefs->rates_dec;
+ return isset($_SESSION["wa_current_user"]) ? $_SESSION["wa_current_user"]->prefs->exrate_dec() : 4;
}
function user_percent_dec()
{
global $SysPrefs;
- return isset($_SESSION["wa_current_user"]) ? $_SESSION["wa_current_user"]->prefs->percent_dec() : $SysPrefs->percent_dec;
+ return isset($_SESSION["wa_current_user"]) ? $_SESSION["wa_current_user"]->prefs->percent_dec() : 1;
}
function user_show_gl_info()
}
/*
- Returns 'best' collation for various locale language codes
+ Returns 'best' mysql collation for various FA backend language codes.
*/
function get_mysql_collation($lang=null)
{
if (!$lang)
- $lang = substr($_SESSION['language']->code, 0, 2);
+ $lang = 'utf8_'.substr($_SESSION['language']->code, 0, 2);
$db_collation = array(
- 'is' => 'icelandic',
- 'lv' => 'latvian',
- 'ro' => 'romanian',
- 'sl' => 'slovenian',
- 'pl' => 'polish',
- 'et' => 'estonian',
- 'es' => 'spanish', // or 'spanish2',
- 'sw' => 'swedish',
- 'tr' => 'turkish',
- 'cs' => 'czech',
- 'da' => 'danish',
- 'lt' => 'lithuanian',
- 'sk' => 'slovak',
- 'sp' => 'spanish2',
- 'fa' => 'persian',
- 'hu' => 'hungarian',
- 'fr' => 'roman',
- 'it' => 'roman',
+ 'utf8_is' => 'utf8_icelandic_ci',
+ 'utf8_lv' => 'utf8_latvian_ci',
+ 'utf8_ro' => 'utf8_romanian_ci',
+ 'utf8_sl' => 'utf8_slovenian_ci',
+ 'utf8_pl' => 'utf8_polish_ci',
+ 'utf8_et' => 'utf8_estonian_ci',
+ 'utf8_es' => 'utf8_spanish_ci', // or 'spanish2',
+ 'utf8_sw' => 'utf8_swedish_ci',
+ 'utf8_tr' => 'utf8_turkish_ci',
+ 'utf8_cs' => 'utf8_czech_ci',
+ 'utf8_da' => 'utf8_danish_ci',
+ 'utf8_lt' => 'utf8_lithuanian_ci',
+ 'utf8_sk' => 'utf8_slovak_ci',
+ 'utf8_sp' => 'utf8_spanish2_ci',
+ 'utf8_fa' => 'utf8_persian_ci',
+ 'utf8_hu' => 'utf8_hungarian_ci',
+ 'utf8_fr' => 'utf8_roman_ci',
+ 'utf8_it' => 'utf8_roman_ci',
);
- return 'utf8_'.(isset($db_collation[$lang]) ? $db_collation[$lang] : 'unicode').'_ci';
+ return isset($db_collation[$lang]) ? $db_collation[$lang] : 'utf8_unicode_ci';
}
/*
return mysql_field_name($result, $n);
}
+function db_set_collation($db, $fa_collation)
+{
+ return mysql_query("ALTER DATABASE COLLATE ".get_mysql_collation($fa_collation), $db);
+}
+
+/*
+ Create database for FA company. If database already exists,
+ just set collation to be sure nothing weird will happen later.
+*/
function db_create_db($connection)
{
$db = mysql_connect($connection["host"] ,
if (!mysql_select_db($connection["dbname"], $db))
{
- $sql = "CREATE DATABASE IF NOT EXISTS " . $connection["dbname"] . "";
+ $sql = "CREATE DATABASE IF NOT EXISTS `" . $connection["dbname"] . "`"
+ . " DEFAULT COLLATE '" . get_mysql_collation($connection["collation"]) . "'";
+
if (!mysql_query($sql) || !mysql_select_db($connection["dbname"], $db))
+ return 0;
+ } else
+ if (!db_set_collation($connection["collation"], $db))
return 0;
- }
+
return $db;
}
global $db, $path_to_root, $db_connections, $SysPrefs;
include ($path_to_root . "/config_db.php");
+
if ($company == -1)
$company = user_company();
return $fieldinfo->name;
}
+function db_set_collation($db, $fa_collation)
+{
+ return mysqli_query($db, "ALTER DATABASE COLLATE ".get_mysql_collation($fa_collation));
+}
+
+/*
+ Create database for FA company. If database already exists,
+ just set collation to be sure nothing weird will happen later.
+*/
function db_create_db($connection)
{
+ global $db;
+
$db = mysqli_connect($connection["host"], $connection["dbuser"], $connection["dbpassword"]);
if (!mysqli_select_db($db, $connection["dbname"]))
{
- $sql = "CREATE DATABASE IF NOT EXISTS `" . $connection["dbname"] . "`";
+ $sql = "CREATE DATABASE IF NOT EXISTS `" . $connection["dbname"] . "`"
+ . " DEFAULT COLLATE '" . get_mysql_collation($connection["collation"]) . "'";
+
if (!mysqli_query($db, $sql) || !mysqli_select_db($db, $connection["dbname"]))
return 0;
+ } else {
+ if (!db_set_collation($db, $connection["collation"]))
+ {
+ return 0;
+ }
}
return $db;
}
// This month array is for use with the last 3 dateformats.
$tmonths = array("", _("Jan"),_("Feb"),_("Mar"),_("Apr"),_("May"),_("Jun"),_("Jul"),_("Aug"),_("Sep"),_("Oct"),_("Nov"),_("Dec"));
+//
+// FA supported db backend language settings.
+//
+$supported_collations = array(
+ 'utf8_xx' => _('Unicode (multilanguage)'),
+ 'utf8_is' => _('Icelandic'),
+ 'utf8_lv' => _('Latvian'),
+ 'utf8_ro' => _('Romanian'),
+ 'utf8_sl' => _('Slovenian'),
+ 'utf8_pl' => _('Polish'),
+ 'utf8_et' => _('Estonian'),
+ 'utf8_es' => _('Spanish'), // or 'spanish2',
+ 'utf8_sw' => _('Swedish'),
+ 'utf8_tr' => _('Turkish'),
+ 'utf8_cs' => _('Czech'),
+ 'utf8_da' => _('Danish'),
+ 'utf8_lt' => _('Lithuanian'),
+ 'utf8_sk' => _('Slovak'),
+ 'utf8_sp' => _('Spanish (alternative)'),
+ 'utf8_fa' => _('Persian'),
+ 'utf8_hu' => _('Hungarian'),
+ 'utf8_fr' => _('French'),
+ 'utf8_it' => _('Italian'),
+);
+
/*
For following controls:
'both' - use both Ctrl-Enter and Escape hotkeys
+ 'upgrade' - use Ctrl-Enter with progress ajax indicator and Escape hotkeys. Nonajax request for OK option is performed.
'cancel' - apply to 'RESET' button
*/
function submit_add_or_update($add=true, $title=false, $async=false, $clone=false)
if ($async === 'both') {
$async = 'default'; $cancel = 'cancel';
- }
+ }
+ elseif ($async === 'upgrade') {
+ $async = 'default nonajax process'; $cancel = 'cancel';
+ }
else if ($async === 'default')
$cancel = true;
else if ($async === 'cancel')
}
+function collations_list_row($label, $name, $selected_id=null)
+{
+ global $supported_collations;
+
+ echo "<tr>";
+ if ($label != null)
+ echo "<td class='label'>$label</td>\n";
+ echo "<td>";
+
+ echo array_selector($name, $selected_id, $supported_collations,
+ array('select_submit'=> false) );
+ echo "</td></tr>\n";
+}
$db_connections = array (0=> array (
'name' => $con['name'],
'host' => $con['host'],
+ 'dbname' => $con['dbname'],
+ 'collation' => $con['collation'],
+ 'tbpref' => $table_prefix,
'dbuser' => $con['dbuser'],
'dbpassword' => $con['dbpassword'],
- 'dbname' => $con['dbname'],
- 'tbpref' => $table_prefix
));
$_SESSION['wa_current_user']->cur_con = 0;
'username' => 'admin',
'tbpref' => '0_',
'admin' => 'admin',
- 'inst_lang' => 'C'
+ 'inst_lang' => 'C',
+ 'collation' => 'xx',
);
if (!@$_POST['Tests'])
'tbpref' => $_POST['tbpref'] ? '0_' : '',
'sel_langs' => check_value('sel_langs'),
'sel_coas' => check_value('sel_coas'),
+ 'collation' => $_POST['collation'],
));
if (install_connect_db()) {
$_POST['Page'] = check_value('sel_langs') ? 3 :
subpage_title(_('Database Server Settings'));
start_table(TABLESTYLE);
text_row_ex(_("Server Host:"), 'host', 30, 60);
+ text_row_ex(_("Database Name:"), 'dbname', 30);
text_row_ex(_("Database User:"), 'dbuser', 30);
text_row_ex(_("Database Password:"), 'dbpassword', 30);
- text_row_ex(_("Database Name:"), 'dbname', 30);
+ collations_list_row(_("Database Collation:"), 'collation');
yesno_list_row(_("Use '0_' Table Prefix:"), 'tbpref', 1, _('Yes'), _('No'), false);
check_row(_("Install Additional Language Packs from FA Repository:"), 'sel_langs');
check_row(_("Install Additional COAs from FA Repository:"), 'sel_coas');
end_table(1);
- display_note(_('Use table prefix if you share selected database for more than one FA company.'));
+ display_note(_("Select collation you want to use. If you are unsure or you will use various languages, select unicode collation."));
+ display_note(_("Use table prefix if you share selected database for more than one FA company suing the same collation."));
display_note(_("Do not select additional langs nor COAs if you have no working internet connection right now. You can install them later."));
submit_center_first('back', _('<< Back'));
submit_center_last('db_test', _('Continue >>'));
languages_list_row(_("Select Default Language:"), 'lang');
end_table(1);
submit_center_first('back', _('<< Back'));
- submit_center_last('set_admin', _('Continue >>'));
+ submit_center_last('set_admin', _('Install'), _('Start installation process'), 'default nonajax');
break;
case '6': // final screen
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
-function collations_list_row($label, $name, $selected_id=null)
-{
-
-$mysql_collations = array(
- 'xx' => 'Unicode (multilanguage)',
- 'is' => 'Icelandic',
- 'lv' => 'Latvian',
- 'ro' => 'Romanian',
- 'sl' => 'Slovenian',
- 'pl' => 'Polish',
- 'et' => 'Estonian',
- 'es' => 'Spanish', // or 'spanish2',
- 'sw' => 'Swedish',
- 'tr' => 'Turkish',
- 'cs' => 'Czech',
- 'da' => 'Danish',
- 'lt' => 'Lithuanian',
- 'sk' => 'Slovak',
- 'sp' => 'Spanish (alternative)',
- 'fa' => 'Persian',
- 'hu' => 'Hungarian',
- 'fr' => 'French',
- 'it' => 'Italian',
-);
-
- echo "<tr>";
- if ($label != null)
- echo "<td class='label'>$label</td>\n";
- echo "<td>";
-
- echo array_selector($name, $selected_id, $mysql_collations,
- array('select_submit'=> false) );
- echo "</td></tr>\n";
-}
class fa2_4 extends fa_patch {
var $previous = '2.3rc'; // applicable database version
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`area_code`),
UNIQUE KEY `description` (`description`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `0_areas`
`filetype` varchar(60) NOT NULL default '',
PRIMARY KEY (`id`),
KEY `type_no` (`type_no`,`trans_no`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_attachments`
PRIMARY KEY (`id`),
KEY `Seq` (`fiscal_year`,`gl_date`,`gl_seq`),
KEY `Type_and_Number` (`type`,`trans_no`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_audit_trail`
KEY `bank_account_name` (`bank_account_name`),
KEY `bank_account_number` (`bank_account_number`),
KEY `account_code` (`account_code`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
+) ENGINE=InnoDB AUTO_INCREMENT=3 ;
--
-- Dumping data for table `0_bank_accounts`
KEY `type` (`type`,`trans_no`),
KEY `bank_act_2` (`bank_act`,`reconciled`),
KEY `bank_act_3` (`bank_act`,`trans_date`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;
+) ENGINE=InnoDB AUTO_INCREMENT=12 ;
--
-- Dumping data for table `0_bank_trans`
KEY `loc_code` (`loc_code`),
KEY `parent` (`parent`,`loc_code`),
KEY `workcentre_added` (`workcentre_added`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
+) ENGINE=InnoDB AUTO_INCREMENT=4 ;
--
-- Dumping data for table `0_bom`
`dimension2_id` int(11) default '0',
PRIMARY KEY (`id`),
KEY `Account` (`account`,`tran_date`,`dimension_id`,`dimension2_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_budget_trans`
`ctype` tinyint(1) NOT NULL default '0',
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`cid`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_chart_class`
PRIMARY KEY (`account_code`),
KEY `account_name` (`account_name`),
KEY `accounts_by_type` (`account_type`,`account_code`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_chart_master`
PRIMARY KEY (`id`),
KEY `name` (`name`),
KEY `class_id` (`class_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;
+) ENGINE=InnoDB ;
--
-- Dumping data for table `0_chart_types`
`date_` date default '0000-00-00',
`memo_` tinytext,
KEY `type_and_id` (`type`,`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_comments`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `reason_description` (`reason_description`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
+) ENGINE=InnoDB AUTO_INCREMENT=5 ;
--
-- Dumping data for table `0_credit_status`
PRIMARY KEY (`id`),
UNIQUE KEY `type` (`type`,`action`),
UNIQUE KEY `type_2` (`type`,`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
+) ENGINE=InnoDB AUTO_INCREMENT=13 ;
--
-- Dumping data for table `0_crm_categories`
`entity_id` varchar(11) default NULL COMMENT 'entity id in related class table',
PRIMARY KEY (`id`),
KEY `type` (`type`,`action`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
+) ENGINE=InnoDB AUTO_INCREMENT=10 ;
--
-- Dumping data for table `0_crm_contacts`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `ref` (`ref`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
+) ENGINE=InnoDB AUTO_INCREMENT=10 ;
--
-- Dumping data for table `0_crm_persons`
`auto_update` tinyint(1) NOT NULL default '1',
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`curr_abrev`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_currencies`
UNIQUE KEY `trans_type_from` (`person_id`,`trans_type_from`,`trans_no_from`,`trans_type_to`,`trans_no_to`),
KEY `From` (`trans_type_from`,`trans_no_from`),
KEY `To` (`trans_type_to`,`trans_no_to`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `0_cust_allocations`
KEY `branch_code` (`branch_code`),
KEY `branch_ref` (`branch_ref`),
KEY `group_no` (`group_no`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
+) ENGINE=InnoDB AUTO_INCREMENT=4 ;
--
-- Dumping data for table `0_cust_branch`
PRIMARY KEY (`debtor_no`),
KEY `name` (`name`),
UNIQUE KEY `debtor_ref` (`debtor_ref`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
+) ENGINE=InnoDB AUTO_INCREMENT=4 ;
--
-- Dumping data for table `0_debtors_master`
KEY `debtor_no` (`debtor_no`,`branch_code`),
KEY `tran_date` (`tran_date`),
KEY `order_` (`order_`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_debtor_trans`
PRIMARY KEY (`id`),
KEY `Transaction` (`debtor_trans_type`,`debtor_trans_no`),
KEY (`src_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ;
+) ENGINE=InnoDB AUTO_INCREMENT=9 ;
--
-- Dumping data for table `0_debtor_trans_details`
KEY `date_` (`date_`),
KEY `due_date` (`due_date`),
KEY `type_` (`type_`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
+) ENGINE=InnoDB AUTO_INCREMENT=3 ;
--
-- Dumping data for table `0_dimensions`
`date_` date NOT NULL default '0000-00-00',
PRIMARY KEY (`id`),
UNIQUE KEY `curr_code` (`curr_code`,`date_`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
+) ENGINE=InnoDB AUTO_INCREMENT=4 ;
--
-- Dumping data for table `0_exchange_rates`
PRIMARY KEY (`id`),
UNIQUE KEY `begin` (`begin`),
UNIQUE KEY `end` (`end`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
+) ENGINE=InnoDB AUTO_INCREMENT=3 ;
--
-- Dumping data for table `0_fiscal_year`
KEY `dimension2_id` (`dimension2_id`),
KEY `tran_date` (`tran_date`),
KEY `account_and_tran_date` (`account`,`tran_date`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=84 ;
+) ENGINE=InnoDB AUTO_INCREMENT=84 ;
--
-- Dumping data for table `0_gl_trans`
PRIMARY KEY (`id`),
KEY `delivery_date` (`delivery_date`),
KEY `purch_order_no` (`purch_order_no`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `0_grn_batch`
`quantity_inv` double NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `grn_batch_id` (`grn_batch_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
+) ENGINE=InnoDB AUTO_INCREMENT=4 ;
--
-- Dumping data for table `0_grn_items`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `description` (`description`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
+) ENGINE=InnoDB AUTO_INCREMENT=4 ;
--
-- Dumping data for table `0_groups`
PRIMARY KEY (`id`),
UNIQUE KEY `stock_id` (`stock_id`,`item_code`),
KEY `item_code` (`item_code`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
+) ENGINE=InnoDB AUTO_INCREMENT=6 ;
--
-- Dumping data for table `0_item_codes`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `0_item_tax_types`
`item_tax_type_id` int(11) NOT NULL default '0',
`tax_type_id` int(11) NOT NULL default '0',
PRIMARY KEY (`item_tax_type_id`,`tax_type_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_item_tax_type_exemptions`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`abbr`),
UNIQUE KEY `name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_item_units`
`rate` double NOT NULL DEFAULT '1',
PRIMARY KEY (`type`,`trans_no`),
KEY `tran_date` (`tran_date`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;
+) ENGINE=InnoDB ;
-- Data of table `0_journal`
`contact` varchar(30) NOT NULL default '',
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`loc_code`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_locations`
`reorder_level` double NOT NULL default '0',
PRIMARY KEY (`loc_code`,`stock_id`),
KEY `stock_id` (`stock_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_loc_stock`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`terms_indicator`),
UNIQUE KEY `terms` (`terms`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
+) ENGINE=InnoDB AUTO_INCREMENT=5 ;
--
-- Dumping data for table `0_payment_terms`
`price` double NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `price` (`stock_id`,`sales_type_id`,`curr_abrev`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
+) ENGINE=InnoDB AUTO_INCREMENT=5 ;
--
-- Dumping data for table `0_prices`
`timeout` tinyint(3) unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
+) ENGINE=InnoDB AUTO_INCREMENT=4 ;
--
-- Dumping data for table `0_printers`
`printer` tinyint(3) unsigned default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `profile` (`profile`,`report`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
+) ENGINE=InnoDB AUTO_INCREMENT=10 ;
--
-- Dumping data for table `0_print_profiles`
`conversion_factor` double NOT NULL default '1',
`supplier_description` char(50) NOT NULL default '',
PRIMARY KEY (`supplier_id`,`stock_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_purch_data`
`tax_included` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`order_no`),
KEY `ord_date` (`ord_date`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
+) ENGINE=InnoDB AUTO_INCREMENT=3 ;
--
-- Dumping data for table `0_purch_orders`
PRIMARY KEY (`po_detail_item`),
KEY `order` (`order_no`,`po_detail_item`),
KEY `itemcode` (`item_code`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
+) ENGINE=InnoDB AUTO_INCREMENT=6 ;
--
-- Dumping data for table `0_purch_order_details`
`bal_type` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `description` (`description`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
+) ENGINE=InnoDB AUTO_INCREMENT=4 ;
--
-- Dumping data for table `0_quick_entries`
`dimension2_id` smallint(6) unsigned default NULL,
PRIMARY KEY (`id`),
KEY `qid` (`qid`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ;
+) ENGINE=InnoDB AUTO_INCREMENT=8 ;
--
-- Dumping data for table `0_quick_entry_lines`
`last_sent` date NOT NULL default '0000-00-00',
PRIMARY KEY (`id`),
UNIQUE KEY `description` (`description`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_recurrent_invoices`
`reference` varchar(100) NOT NULL default '',
PRIMARY KEY (`id`,`type`),
KEY `Type_and_Reference` (`type`,`reference`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_refs`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`salesman_code`),
UNIQUE KEY `salesman_name` (`salesman_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `0_salesman`
`prep_amount` double NOT NULL DEFAULT '0',
`alloc` double NOT NULL DEFAULT '0',
PRIMARY KEY (`trans_type`,`order_no`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_sales_orders`
PRIMARY KEY (`id`),
KEY `sorder` (`trans_type`,`order_no`),
KEY `stkcode` (`stk_code`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
+) ENGINE=InnoDB AUTO_INCREMENT=6 ;
--
-- Dumping data for table `0_sales_order_details`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `pos_name` (`pos_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `0_sales_pos`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `sales_type` (`sales_type`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
+) ENGINE=InnoDB AUTO_INCREMENT=3 ;
--
-- Dumping data for table `0_sales_types`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `role` (`role`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;
+) ENGINE=InnoDB AUTO_INCREMENT=11 ;
--
-- Dumping data for table `0_security_roles`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`shipper_id`),
UNIQUE KEY `name` (`shipper_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `0_shippers`
`result` tinyint(1) NOT NULL,
`msg` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_sql_trail`
`dflt_no_purchase` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`category_id`),
UNIQUE KEY `description` (`description`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
+) ENGINE=InnoDB AUTO_INCREMENT=5 ;
--
-- Dumping data for table `0_stock_category`
`no_purchase` tinyint(1) NOT NULL default '0',
`editable` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`stock_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_stock_master`
PRIMARY KEY (`trans_id`),
KEY `type` (`type`,`trans_no`),
KEY `Move` (`stock_id`,`loc_code`,`tran_date`)
-) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8 ;
+) ENGINE=InnoDB AUTO_INCREMENT=37 ;
--
-- Dumping data for table `0_stock_moves`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`supplier_id`),
KEY `supp_ref` (`supp_ref`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
+) ENGINE=InnoDB AUTO_INCREMENT=4 ;
--
-- Dumping data for table `0_suppliers`
UNIQUE KEY `trans_type_from` (`person_id`,`trans_type_from`,`trans_no_from`,`trans_type_to`,`trans_no_to`),
KEY `From` (`trans_type_from`,`trans_no_from`),
KEY `To` (`trans_type_to`,`trans_no_to`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `0_supp_allocations`
`dimension2_id` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `Transaction` (`supp_trans_type`,`supp_trans_no`,`stock_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
+) ENGINE=InnoDB AUTO_INCREMENT=6 ;
--
-- Dumping data for table `0_supp_invoice_items`
KEY `SupplierID_2` (`supplier_id`,`supp_reference`),
KEY `type` (`type`),
KEY `tran_date` (`tran_date`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_supp_trans`
`value` TEXT NOT NULL DEFAULT '',
PRIMARY KEY (`name`),
KEY `category` (`category`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_sys_prefs`
`type_no` int(11) NOT NULL default '1',
`next_reference` varchar(100) NOT NULL default '',
PRIMARY KEY (`type_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_sys_types`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `type` (`type`,`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_tags`
`record_id` varchar(15) NOT NULL,
`tag_id` int(11) NOT NULL,
UNIQUE KEY `record_id` (`record_id`,`tag_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_tag_associations`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
+) ENGINE=InnoDB AUTO_INCREMENT=3 ;
--
-- Dumping data for table `0_tax_groups`
`tax_type_id` int(11) NOT NULL default '0',
`tax_shipping` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`tax_group_id`,`tax_type_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_tax_group_items`
`name` varchar(60) NOT NULL default '',
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `0_tax_types`
PRIMARY KEY (`id`),
KEY `Type_and_Number` (`trans_type`,`trans_no`),
KEY `tran_date` (`tran_date`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;
+) ENGINE=InnoDB AUTO_INCREMENT=12 ;
--
-- Dumping data for table `0_trans_tax_details`
PRIMARY KEY (`id`),
KEY `timestamp` (`timestamp`),
KEY `ip` (`ip`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_useronline`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
+) ENGINE=InnoDB AUTO_INCREMENT=3 ;
--
-- Dumping data for table `0_users`
`date_` date NOT NULL default '0000-00-00',
`memo_` tinytext NOT NULL,
UNIQUE KEY `id` (`type`,`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_voided`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `0_workcentres`
`additional_costs` double NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `wo_ref` (`wo_ref`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ;
+) ENGINE=InnoDB AUTO_INCREMENT=8 ;
--
-- Dumping data for table `0_workorders`
`trans_no` int(11) NOT NULL default '0',
`factor` double NOT NULL default '1',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_wo_costing`
`workcentre_id` int(11) default NULL,
PRIMARY KEY (`issue_no`),
KEY `workorder_id` (`workorder_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_wo_issues`
`issue_id` int(11) default NULL,
`qty_issued` double default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_wo_issue_items`
`date_` date NOT NULL default '0000-00-00',
PRIMARY KEY (`id`),
KEY `workorder_id` (`workorder_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `0_wo_manufacture`
`units_issued` double NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `workorder_id` (`workorder_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=22 ;
+) ENGINE=InnoDB AUTO_INCREMENT=22 ;
--
-- Dumping data for table `0_wo_requirements`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`area_code`),
UNIQUE KEY `description` (`description`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `0_areas`
`filetype` varchar(60) NOT NULL default '',
PRIMARY KEY (`id`),
KEY `type_no` (`type_no`,`trans_no`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_attachments`
PRIMARY KEY (`id`),
KEY `Seq` (`fiscal_year`,`gl_date`,`gl_seq`),
KEY `Type_and_Number` (`type`,`trans_no`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_audit_trail`
KEY `bank_account_name` (`bank_account_name`),
KEY `bank_account_number` (`bank_account_number`),
KEY `account_code` (`account_code`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
+) ENGINE=InnoDB AUTO_INCREMENT=3 ;
--
-- Dumping data for table `0_bank_accounts`
KEY `type` (`type`,`trans_no`),
KEY `bank_act_2` (`bank_act`,`reconciled`),
KEY `bank_act_3` (`bank_act`,`trans_date`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_bank_trans`
KEY `loc_code` (`loc_code`),
KEY `parent` (`parent`,`loc_code`),
KEY `workcentre_added` (`workcentre_added`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_bom`
`dimension2_id` int(11) default '0',
PRIMARY KEY (`id`),
KEY `Account` (`account`,`tran_date`,`dimension_id`,`dimension2_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_budget_trans`
`ctype` tinyint(1) NOT NULL default '0',
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`cid`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_chart_class`
PRIMARY KEY (`account_code`),
KEY `account_name` (`account_name`),
KEY `accounts_by_type` (`account_type`,`account_code`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_chart_master`
PRIMARY KEY (`id`),
KEY `name` (`name`),
KEY `class_id` (`class_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;
+) ENGINE=InnoDB ;
--
-- Dumping data for table `0_chart_types`
`date_` date default '0000-00-00',
`memo_` tinytext,
KEY `type_and_id` (`type`,`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_comments`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `reason_description` (`reason_description`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
+) ENGINE=InnoDB AUTO_INCREMENT=5 ;
--
-- Dumping data for table `0_credit_status`
PRIMARY KEY (`id`),
UNIQUE KEY `type` (`type`,`action`),
UNIQUE KEY `type_2` (`type`,`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
+) ENGINE=InnoDB AUTO_INCREMENT=13 ;
--
-- Dumping data for table `0_crm_categories`
`entity_id` varchar(11) default NULL COMMENT 'entity id in related class table',
PRIMARY KEY (`id`),
KEY `type` (`type`,`action`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_crm_contacts`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `ref` (`ref`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_crm_persons`
`auto_update` tinyint(1) NOT NULL default '1',
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`curr_abrev`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_currencies`
UNIQUE KEY `trans_type_from` (`person_id`,`trans_type_from`,`trans_no_from`,`trans_type_to`,`trans_no_to`),
KEY `From` (`trans_type_from`,`trans_no_from`),
KEY `To` (`trans_type_to`,`trans_no_to`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_cust_allocations`
KEY `branch_code` (`branch_code`),
KEY `branch_ref` (`branch_ref`),
KEY `group_no` (`group_no`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_cust_branch`
PRIMARY KEY (`debtor_no`),
KEY `name` (`name`),
UNIQUE KEY `debtor_ref` (`debtor_ref`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_debtors_master`
KEY `debtor_no` (`debtor_no`,`branch_code`),
KEY `tran_date` (`tran_date`),
KEY `order_` (`order_`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_debtor_trans`
PRIMARY KEY (`id`),
KEY `Transaction` (`debtor_trans_type`,`debtor_trans_no`),
KEY (`src_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_debtor_trans_details`
KEY `date_` (`date_`),
KEY `due_date` (`due_date`),
KEY `type_` (`type_`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_dimensions`
`date_` date NOT NULL default '0000-00-00',
PRIMARY KEY (`id`),
UNIQUE KEY `curr_code` (`curr_code`,`date_`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_exchange_rates`
PRIMARY KEY (`id`),
UNIQUE KEY `begin` (`begin`),
UNIQUE KEY `end` (`end`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
+) ENGINE=InnoDB AUTO_INCREMENT=3 ;
--
-- Dumping data for table `0_fiscal_year`
KEY `dimension2_id` (`dimension2_id`),
KEY `tran_date` (`tran_date`),
KEY `account_and_tran_date` (`account`,`tran_date`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_gl_trans`
PRIMARY KEY (`id`),
KEY `delivery_date` (`delivery_date`),
KEY `purch_order_no` (`purch_order_no`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_grn_batch`
`quantity_inv` double NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `grn_batch_id` (`grn_batch_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_grn_items`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `description` (`description`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
+) ENGINE=InnoDB AUTO_INCREMENT=4 ;
--
-- Dumping data for table `0_groups`
PRIMARY KEY (`id`),
UNIQUE KEY `stock_id` (`stock_id`,`item_code`),
KEY `item_code` (`item_code`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_item_codes`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `0_item_tax_types`
`item_tax_type_id` int(11) NOT NULL default '0',
`tax_type_id` int(11) NOT NULL default '0',
PRIMARY KEY (`item_tax_type_id`,`tax_type_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_item_tax_type_exemptions`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`abbr`),
UNIQUE KEY `name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_item_units`
`rate` double NOT NULL DEFAULT '1',
PRIMARY KEY (`type`,`trans_no`),
KEY `tran_date` (`tran_date`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;
+) ENGINE=InnoDB ;
-- Data of table `0_journal`
`contact` varchar(30) NOT NULL default '',
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`loc_code`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_locations`
`reorder_level` double NOT NULL default '0',
PRIMARY KEY (`loc_code`,`stock_id`),
KEY `stock_id` (`stock_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_loc_stock`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`terms_indicator`),
UNIQUE KEY `terms` (`terms`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
+) ENGINE=InnoDB AUTO_INCREMENT=5 ;
--
-- Dumping data for table `0_payment_terms`
`price` double NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `price` (`stock_id`,`sales_type_id`,`curr_abrev`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_prices`
`timeout` tinyint(3) unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
+) ENGINE=InnoDB AUTO_INCREMENT=4 ;
--
-- Dumping data for table `0_printers`
`printer` tinyint(3) unsigned default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `profile` (`profile`,`report`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
+) ENGINE=InnoDB AUTO_INCREMENT=10 ;
--
-- Dumping data for table `0_print_profiles`
`conversion_factor` double NOT NULL default '1',
`supplier_description` char(50) NOT NULL default '',
PRIMARY KEY (`supplier_id`,`stock_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_purch_data`
`tax_included` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`order_no`),
KEY `ord_date` (`ord_date`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_purch_orders`
PRIMARY KEY (`po_detail_item`),
KEY `order` (`order_no`,`po_detail_item`),
KEY `itemcode` (`item_code`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_purch_order_details`
`bal_type` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `description` (`description`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
+) ENGINE=InnoDB AUTO_INCREMENT=4 ;
--
-- Dumping data for table `0_quick_entries`
`dimension2_id` smallint(6) unsigned default NULL,
PRIMARY KEY (`id`),
KEY `qid` (`qid`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
+) ENGINE=InnoDB AUTO_INCREMENT=7 ;
--
-- Dumping data for table `0_quick_entry_lines`
`last_sent` date NOT NULL default '0000-00-00',
PRIMARY KEY (`id`),
UNIQUE KEY `description` (`description`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_recurrent_invoices`
`reference` varchar(100) NOT NULL default '',
PRIMARY KEY (`id`,`type`),
KEY `Type_and_Reference` (`type`,`reference`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_refs`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`salesman_code`),
UNIQUE KEY `salesman_name` (`salesman_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `0_salesman`
`prep_amount` double NOT NULL DEFAULT '0',
`alloc` double NOT NULL DEFAULT '0',
PRIMARY KEY (`trans_type`,`order_no`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_sales_orders`
PRIMARY KEY (`id`),
KEY `sorder` (`trans_type`,`order_no`),
KEY `stkcode` (`stk_code`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_sales_order_details`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `pos_name` (`pos_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `0_sales_pos`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `sales_type` (`sales_type`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
+) ENGINE=InnoDB AUTO_INCREMENT=3 ;
--
-- Dumping data for table `0_sales_types`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `role` (`role`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;
+) ENGINE=InnoDB AUTO_INCREMENT=11 ;
--
-- Dumping data for table `0_security_roles`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`shipper_id`),
UNIQUE KEY `name` (`shipper_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `0_shippers`
`result` tinyint(1) NOT NULL,
`msg` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_sql_trail`
`dflt_no_purchase` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`category_id`),
UNIQUE KEY `description` (`description`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
+) ENGINE=InnoDB AUTO_INCREMENT=5 ;
--
-- Dumping data for table `0_stock_category`
`no_purchase` tinyint(1) NOT NULL default '0',
`editable` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`stock_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_stock_master`
PRIMARY KEY (`trans_id`),
KEY `type` (`type`,`trans_no`),
KEY `Move` (`stock_id`,`loc_code`,`tran_date`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;
+) ENGINE=InnoDB ;
--
-- Dumping data for table `0_stock_moves`
--
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`supplier_id`),
KEY `supp_ref` (`supp_ref`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_suppliers`
UNIQUE KEY `trans_type_from` (`person_id`,`trans_type_from`,`trans_no_from`,`trans_type_to`,`trans_no_to`),
KEY `From` (`trans_type_from`,`trans_no_from`),
KEY `To` (`trans_type_to`,`trans_no_to`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_supp_allocations`
`dimension2_id` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `Transaction` (`supp_trans_type`,`supp_trans_no`,`stock_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_supp_invoice_items`
KEY `SupplierID_2` (`supplier_id`,`supp_reference`),
KEY `type` (`type`),
KEY `tran_date` (`tran_date`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_supp_trans`
`value` TEXT NOT NULL DEFAULT '',
PRIMARY KEY (`name`),
KEY `category` (`category`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_sys_prefs`
`type_no` int(11) NOT NULL default '1',
`next_reference` varchar(100) NOT NULL default '',
PRIMARY KEY (`type_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_sys_types`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `type` (`type`,`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_tags`
`record_id` varchar(15) NOT NULL,
`tag_id` int(11) NOT NULL,
UNIQUE KEY `record_id` (`record_id`,`tag_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_tag_associations`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
+) ENGINE=InnoDB AUTO_INCREMENT=3 ;
--
-- Dumping data for table `0_tax_groups`
`tax_type_id` int(11) NOT NULL default '0',
`tax_shipping` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`tax_group_id`,`tax_type_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_tax_group_items`
`name` varchar(60) NOT NULL default '',
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `0_tax_types`
PRIMARY KEY (`id`),
KEY `Type_and_Number` (`trans_type`,`trans_no`),
KEY `tran_date` (`tran_date`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_trans_tax_details`
PRIMARY KEY (`id`),
KEY `timestamp` (`timestamp`),
KEY `ip` (`ip`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_useronline`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
+) ENGINE=InnoDB AUTO_INCREMENT=2 ;
--
-- Dumping data for table `0_users`
`date_` date NOT NULL default '0000-00-00',
`memo_` tinytext NOT NULL,
UNIQUE KEY `id` (`type`,`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_voided`
`inactive` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_workcentres`
`additional_costs` double NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `wo_ref` (`wo_ref`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_workorders`
`trans_no` int(11) NOT NULL default '0',
`factor` double NOT NULL default '1',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB;
--
-- Dumping data for table `0_wo_costing`
`workcentre_id` int(11) default NULL,
PRIMARY KEY (`issue_no`),
KEY `workorder_id` (`workorder_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_wo_issues`
`issue_id` int(11) default NULL,
`qty_issued` double default NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_wo_issue_items`
`date_` date NOT NULL default '0000-00-00',
PRIMARY KEY (`id`),
KEY `workorder_id` (`workorder_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_wo_manufacture`
`units_issued` double NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `workorder_id` (`workorder_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+) ENGINE=InnoDB AUTO_INCREMENT=1 ;
--
-- Dumping data for table `0_wo_requirements`
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td class='quick_menu'>\n"; // tabs
+
+ $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif";
if (!$no_menu)
{
$applications = $_SESSION['App']->applications;
echo "<table class='logoutBar'>";
echo "<tr><td class='headingtext3'>" . $db_connections[user_company()]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
- $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif";
echo "<td class='logoutBarRight'><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;' alt='ajaxmark'></td>";
echo " <td class='logoutBarRight'><a class='shortcut' href='$path_to_root/admin/display_prefs.php?'>" . _("Preferences") . "</a> \n";
echo " <a class='shortcut' href='$path_to_root/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>" . _("Change password") . "</a> \n";
}
echo "</td></tr></table>";
if ($no_menu)
- echo "<br>";
- elseif ($title && !$is_index)
+ {
+ echo "<center><table class='tablestyle_noborder'>"
+ ."<tr><td><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;' alt='ajaxmark'></td></tr>"
+ ."</table></center>";
+ } elseif ($title && !$is_index)
{
echo "<center><table id='title'><tr><td width='100%' class='titletext'>$title</td>"
."<td align=right>"
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td class='quick_menu'>\n"; // tabs
+
+ $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif";
if (!$no_menu)
{
$applications = $_SESSION['App']->applications;
echo "<table class='logoutBar'>";
echo "<tr><td class='headingtext3'>" . $db_connections[user_company()]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
- $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif";
echo "<td class='logoutBarRight'><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;' alt='ajaxmark'></td>";
echo " <td class='logoutBarRight'><a class='shortcut' href='$path_to_root/admin/display_prefs.php?'>" . _("Preferences") . "</a> \n";
echo " <a class='shortcut' href='$path_to_root/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>" . _("Change password") . "</a> \n";
echo "</td></tr></table>";
}
echo "</td></tr></table>";
+
if ($no_menu)
- echo "<br>";
- elseif ($title && !$is_index)
+ {
+ echo "<center><table class='tablestyle_noborder'>"
+ ."<tr><td><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;' alt='ajaxmark'></td></tr>"
+ ."</table></center>";
+ } elseif ($title && !$is_index)
{
echo "<center><table id='title'><tr><td width='100%' class='titletext'>$title</td>"
."<td align=right>"
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td class='quick_menu'>\n"; // tabs
+
+ $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif";
if (!$no_menu)
{
$applications = $_SESSION['App']->applications;
$himg = "<img src='$local_path_to_root/themes/default/images/help.gif' width='14' height='14' border='0' alt='"._('Help')."'> ";
echo "<table class='logoutBar'>";
echo "<tr><td class='headingtext3'>" . $db_connections[user_company()]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
- $indicator = "$path_to_root/themes/".user_theme(). "/images/ajax-loader.gif";
echo "<td class='logoutBarRight'><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;' alt='ajaxmark'></td>";
echo " <td class='logoutBarRight'><a class='shortcut' href='$path_to_root/admin/display_prefs.php?'>" . _("Preferences") . "</a> \n";
echo " <a class='shortcut' href='$path_to_root/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>" . _("Change password") . "</a> \n";
echo "</td></tr></table>";
}
echo "</td></tr></table>";
+
if ($no_menu)
- echo "<br>";
- elseif ($title && !$is_index)
+ { // ajax indicator for installer and popups
+ echo "<center><table class='tablestyle_noborder'>"
+ ."<tr><td><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;' alt='ajaxmark'></td></tr>"
+ ."</table></center>";
+ } elseif ($title && !$is_index)
{
echo "<center><table id='title'><tr><td width='100%' class='titletext'>$title</td>"
."<td align=right>"