Resets payment_type && amount if storage date is nullified.

This commit is contained in:
Jonathan Rosenbaum
2015-01-10 11:06:21 +00:00
parent a082412e4c
commit 2a0d9f542f
2 changed files with 20 additions and 4 deletions
+9
View File
@@ -59,6 +59,15 @@ $change_fund = CHANGE_FUND;
echo json_encode($send_back);
}
// reset payment_type && amount for storage transaction
if(isset($_POST['storage_payment_reset'])) {
$query = 'UPDATE transaction_log SET payment_type=NULL, amount=NULL WHERE transaction_id="' .
$_POST['transaction_id'] . '";';
$result = mysql_query($query, $YBDB) or die(mysql_error());
}
// Deposit Calculator
if (isset($_POST['deposit'])) {