Browse Source

Related to #62, better behavior on submit:

* Checks that transaction is not a Deposite, and that transation is paid.
devel
Jonathan Rosenbaum 7 years ago
parent
commit
78102f3600
  1. 6
      transaction_log.php

6
transaction_log.php

@ -726,7 +726,9 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) {
?> ?>
><?php echo $row_Recordset1['format_amount']; ><?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'];
}
?>&nbsp;</td> ?>&nbsp;</td>
<td><?php $record_trans_id = $row_Recordset1['transaction_id']; <td><?php $record_trans_id = $row_Recordset1['transaction_id'];
foreach ($_GET as $i => $value) { 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 ?> <?php } //while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); // while Recordset1 ?>
<tr> <tr>
<td>TOTAL</td><td></td><td></td><td></td><td></td><td></td> <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> <td></td><td></td>
</tr> </tr>
</table> </tr> </table> </tr>

Loading…
Cancel
Save