An easy point of sale system with automatic inventory tracking. https://netsyms.biz/apps/nickelbox/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

chooseregister.php 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /*
  3. * This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. */
  7. $registers = $database->select("registers", ['[>]cash_drawer' => ['registerid' => 'registerid']], ['registers.registerid (id)', 'registername (name)'], ['AND' => ['open[!]' => null, 'close' => null], 'ORDER' => 'registername']);
  8. ?>
  9. <div class="row justify-content-center">
  10. <div class="col-12 col-sm-8 col-md-6 col-lg-4">
  11. <form class="card border-green" action="action.php" method="POST">
  12. <h3 class="card-header text-green">
  13. <?php $Strings->get("point of sale"); ?>
  14. </h3>
  15. <div class="card-body">
  16. <h5 class="card-title"><?php $Strings->get("choose register"); ?></h5>
  17. <?php
  18. if (count($registers) > 0) {
  19. ?>
  20. <div class="list-group">
  21. <?php
  22. foreach ($registers as $r) {
  23. ?>
  24. <button class="list-group-item" name="register" value="<?php echo $r['id']; ?>">
  25. <?php echo $r['name']; ?>
  26. </button>
  27. <?php
  28. }
  29. ?>
  30. </div>
  31. <?php
  32. } else {
  33. ?>
  34. <div class="alert alert-info">
  35. <?php $Strings->get("no open registers"); ?>
  36. </div>
  37. <?php
  38. }
  39. ?>
  40. </div>
  41. <input type="hidden" name="action" value="set_register" />
  42. <input type="hidden" name="source" value="pos" />
  43. </form>
  44. </div>
  45. </div>