Actions

Cash Register V2

From Convention Master Documentation

Revision as of 22:48, 7 September 2024 by Trapa (talk | contribs) (Created page with "Some Notes on the cash register *Conceptual How it works. **'''Cashv2 Index landing Page''' *# The ''$result = @include_once('cashbox_assignment.inc.php');'' function ensures a cashbox assigned if needed. *# On Page load, the main part of the cart is drawn via the cashv2.index.inc.php *# After Loading, and after every person is added, the loadAttendeeCards() function in cashv2_index.js is called *# After loading the attendee cards, we call refreshCart() function in cas...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Some Notes on the cash register

  • Conceptual How it works.
    • Cashv2 Index landing Page
    1. The $result = @include_once('cashbox_assignment.inc.php'); function ensures a cashbox assigned if needed.
    2. On Page load, the main part of the cart is drawn via the cashv2.index.inc.php
    3. After Loading, and after every person is added, the loadAttendeeCards() function in cashv2_index.js is called
    4. After loading the attendee cards, we call refreshCart() function in cashv2_index.js
    5. The customer now starts to resolve strips.
      • Each strip calls it's own API endpoint, use network on browser console to determine easily which endpoint your strip is submitting to to resolve.
      • After each strip is handled, the jquery re-calls refreeshCart();
    6. Part of refreshCart() is enabling or disabling the Checkout Button
    7. Checkout Button moves to Finalize Sale V2
    • Finalize Sale v2 Landing Page'
    1. The $result = @include_once('cashbox_assignment.inc.php'); function ensures a cashbox assigned if needed.
    2. On page load, the main part of the cart is drawn via the finalize_salev2.inc.php file.
    3. After Loading, and after every person is added, the loadAttendeeCards() function in finalize_salev2.js is called
    4. After loading the attendee cards, we call refreshCart() function in finalize_salev2.js To draw strips and such
    5. Loading attendee cards happens after each payment, but doesn't Always Happen.
    6. Printing is called, and printing progress is held in LocalStorage, so that the cards can draw printing information even after a LoadAttendeeCards()