Skip to content

Commit

Permalink
Fixed issue where the end-of-shift management z report would bomb out…
Browse files Browse the repository at this point in the history
…, but still end the shift, if the lane is unable to contact the server. Now it dies gracefully and does not end the shift.
  • Loading branch information
maxolasersquad committed Apr 29, 2010
1 parent 29cdfe5 commit 12d5e27
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions pos/is4c/admintasks.php
Expand Up @@ -59,10 +59,17 @@
}
}
elseif ($admin_task == "TR") {
getsubtotals();
if ($_SESSION["LastID"] != 0) {
msgscreen("transaction in progress");
}
getsubtotals();
if ($_SESSION["LastID"] != 0) {
msgscreen("transaction in progress");
}
elseif ($_SESSION["standalone"] != 0) {?>
<script type="text/javascript">
alert('Unable to contact server. Please make sure both the lane and server are connected to the network and the server is powered on. You can check connectivity to the server by looking for the gren connection icon next to the date and time field.');
</script>
<?php
gohome();
}
else {
tenderReport();
}
Expand Down

0 comments on commit 12d5e27

Please sign in to comment.