mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-22 08:53:23 -05:00
Related to #62, better behavior on submit:
* Checks that transaction is not a Deposite, and that transation is paid.
This commit is contained in:
parent
dbcfbd67e0
commit
78102f3600
@ -726,7 +726,9 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) {
|
||||
?>
|
||||
|
||||
><?php echo $row_Recordset1['format_amount'];
|
||||
$total = $total + $row_Recordset1['amount'];
|
||||
if($row_Recordset1['transaction_type'] !== "Deposit" && $row_Recordset1['paid'] == 1) {
|
||||
$total = $total + $row_Recordset1['amount'];
|
||||
}
|
||||
?> </td>
|
||||
<td><?php $record_trans_id = $row_Recordset1['transaction_id'];
|
||||
foreach ($_GET as $i => $value) {
|
||||
@ -790,7 +792,7 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) {
|
||||
<?php } //while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); // while Recordset1 ?>
|
||||
<tr>
|
||||
<td>TOTAL</td><td></td><td></td><td></td><td></td><td></td>
|
||||
<td>$<?php echo number_format((float)$total, 2, '.', ''); ?></td>
|
||||
<td title="Updates on Transaction Search Submit">$<?php echo number_format((float)$total, 2, '.', ''); ?></td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table> </tr>
|
||||
|
Loading…
x
Reference in New Issue
Block a user