| 688 | | function consolidate_clients($useUuid = false){ |
| 689 | | |
| 690 | | $noOutput = true; |
| 691 | | include("modules/bms/clients_consolidate.php"); |
| 692 | | |
| 693 | | $consolidator = new clientConsolidator($this->db); |
| 694 | | |
| 695 | | $consolidator->showPicker($this->idsArray, $useUuid); |
| 696 | | exit(); |
| 697 | | |
| 698 | | |
| 699 | | }//end function consolidate_clients |
| | 688 | function consolidate_clients($useUuid = false){ |
| | 689 | |
| | 690 | $noOutput = true; |
| | 691 | include("modules/bms/clients_consolidate.php"); |
| | 692 | |
| | 693 | $consolidator = new clientConsolidator($this->db); |
| | 694 | |
| | 695 | $consolidator->showPicker($this->idsArray, $useUuid); |
| | 696 | exit(); |
| | 697 | |
| | 698 | |
| | 699 | }//end function consolidate_clients |
| | 949 | |
| | 950 | |
| | 951 | /* |
| | 952 | * function delete_record |
| | 953 | * @param bool $useUUID Whether the identifiers passed to the constructor are integer ids or string uuids. |
| | 954 | */ |
| | 955 | |
| | 956 | function delete_record($useUUID = false) { |
| | 957 | |
| | 958 | if(!$useUUID) |
| | 959 | $whereclause = $this->buildWhereClause(); |
| | 960 | else |
| | 961 | $whereclause = $this->buildWhereClause($this->maintable.".uuid"); |
| | 962 | |
| | 963 | |
| | 964 | $querystatement = " |
| | 965 | UPDATE |
| | 966 | `clients` |
| | 967 | SET |
| | 968 | `clients`.`inactive` = '1', |
| | 969 | `clients`.`canemail` = '0', |
| | 970 | `modifiedby` = ".$_SESSION["userinfo"]["id"].", |
| | 971 | `modifieddate` = NOW() |
| | 972 | WHERE |
| | 973 | ".$whereclause; |
| | 974 | |
| | 975 | $endmessage =" marked inactive"; |
| | 976 | |
| | 977 | $queryresult = $this->db->query($querystatement); |
| | 978 | $message = $this->buildStatusMessage().$endmessage; |
| | 979 | |
| | 980 | return $message; |
| | 981 | |
| | 982 | }//end function |