mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Fixed set outcomes SQL
This commit is contained in:
@@ -136,7 +136,7 @@ if (isset($_POST['addoutcome']) && isset($_POST['save'])){
|
|||||||
if (isset($_POST['default_o'])) $def = 1; else $def = 0;
|
if (isset($_POST['default_o'])) $def = 1; else $def = 0;
|
||||||
if (isset($_POST['permanent'])) $perm = 1; else $perm = 0;
|
if (isset($_POST['permanent'])) $perm = 1; else $perm = 0;
|
||||||
|
|
||||||
$sql = "INSERT INTO `outcome` VALUES ('NULL','$aapor_id','$desc','$ddm','$outcome_type_id','$tryanother','$contacted','$tryagain','$eligible','$require_note','$calc','$def','$perm')";
|
$sql = "INSERT INTO `outcome` VALUES (NULL,'$aapor_id','$desc','$ddm','$outcome_type_id','$tryanother','$contacted','$tryagain','$eligible','$require_note','$calc','$def','$perm')";
|
||||||
if ($db->Execute($sql)) {
|
if ($db->Execute($sql)) {
|
||||||
$msg_ok = T_("Custom outcome") . " <b>" . $desc . "</b> " . T_("saved");
|
$msg_ok = T_("Custom outcome") . " <b>" . $desc . "</b> " . T_("saved");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1105,6 +1105,10 @@ INSERT INTO `outcome` (`outcome_id`, `aapor_id`, `description`, `default_delay_m
|
|||||||
INSERT INTO `outcome` (`outcome_id`, `aapor_id`, `description`, `default_delay_minutes`, `outcome_type_id`, `tryanother`, `contacted`, `tryagain`, `eligible`, `require_note`, `calc`, `default`, `permanent`) VALUES (44,'2.30','Max call attempts reached (Eligible)',0,1,0,1,1,1,0,'O',1,0);
|
INSERT INTO `outcome` (`outcome_id`, `aapor_id`, `description`, `default_delay_minutes`, `outcome_type_id`, `tryanother`, `contacted`, `tryagain`, `eligible`, `require_note`, `calc`, `default`, `permanent`) VALUES (44,'2.30','Max call attempts reached (Eligible)',0,1,0,1,1,1,0,'O',1,0);
|
||||||
INSERT INTO `outcome` (`outcome_id`, `aapor_id`, `description`, `default_delay_minutes`, `outcome_type_id`, `tryanother`, `contacted`, `tryagain`, `eligible`, `require_note`, `calc`, `default`, `permanent`) VALUES (45,'2.30','Max calls reached (Eligible)',0,1,0,1,1,1,0,'O',1,0);
|
INSERT INTO `outcome` (`outcome_id`, `aapor_id`, `description`, `default_delay_minutes`, `outcome_type_id`, `tryanother`, `contacted`, `tryagain`, `eligible`, `require_note`, `calc`, `default`, `permanent`) VALUES (45,'2.30','Max calls reached (Eligible)',0,1,0,1,1,1,0,'O',1,0);
|
||||||
|
|
||||||
|
-- Auto increment start from 100 for manual entries
|
||||||
|
|
||||||
|
ALTER TABLE `outcome` AUTO_INCREMENT = 100;
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|||||||
Reference in New Issue
Block a user