Skip to content
Snippets Groups Projects
Commit e5d07431 authored by Robert Anderson's avatar Robert Anderson
Browse files

Allow the topup_summary and topup to be deleted if there is a summary linked to the topup

parent c5d8afe2
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,15 @@ function updateAdminUserTopup($params) {
# Delete user topup
function removeAdminUserTopup($params) {
# Perform query
# Delete topup summary
$res = DBDo("DELETE FROM @TP@topups_summary WHERE TopupID = ?",array($params[0]));
# Return result
if ($res !== TRUE) {
return $res;
}
# Delete topup
$res = DBDo("DELETE FROM @TP@topups WHERE ID = ?",array($params[0]));
# Return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment