Permalink
Browse files

Fixed issue where the end-of-shift management z report would bomb out…

…, 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...
1 parent e6f7e77 commit a0db9944ecfc41355acea1eb69786ef39f8e54dc @maxolasersquad maxolasersquad committed Apr 29, 2010
Showing with 11 additions and 4 deletions.
  1. +11 −4 pos/is4c/admintasks.php
View
@@ -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();
}

0 comments on commit a0db994

Please sign in to comment.