Turned error check into a function.

1).  This allows "close" to produce errors, although not actually prevent them.
2).  This provides a return code for "save" so that the transaction history can be saved.
This commit is contained in:
Jonathan Rosenbaum
2015-02-06 07:31:03 +00:00
parent ba0b491344
commit 82e4eb3f29
2 changed files with 76 additions and 59 deletions
+2 -2
View File
@@ -387,12 +387,12 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) {
<td></td><td></td>
<td>
<input id="save_transaction" type="submit" name="EditSubmit" value="Save" align="right">
<input type="submit" name="EditSubmit" value="Close">
<input id="close_transaction" type="submit" name="EditSubmit" value="Close">
<input type="submit" name="EditSubmit" value="Delete">
<span id="transaction_start_error"></span>
<!-- Save before using paypal ->> -->
</td>
</tr>
</tr>
<?php if ($show_shop_id) { ?>
<tr><td>&nbsp;</td>