Skip to content

Camera: States

Kev edited this page Apr 26, 2020 · 2 revisions

States:

1. currentStep

  • Used to switch between steps and to indicate what step you are on.

2. uploads

  • This is used for the image that will be uploaded.

3. text

  • Used to store the text generated from the image.

4. subtotal

  • Used to store the subtotal.

5. tax

  • Used to store the tax.

6. taxPercent

  • Used to store the percent tax.

7. total

  • Used to store the total.

8. orders

  • Is in a form of an array consisting of certain properties.
    * number - An unique ID to keep track of the order value.
    * quantity - The quantity of the order.
    * order - The name of the order.
    * cost - The cost of the order.
    * association - Who is associated with this order.

9. names

  • This is used for Detailed Split.
  • Is in a form of an array consisting of certain properties.
    * number - An unique ID to keep track of the person value.
    * name - The name of each individual person.
    * check - If this user needs to be checked in the database.
    * found - If this user is found in the database.
    * subtotal - The subtotal this individual person has to pay, default at 0.
    * tax - The tax this individual person has to pay, default at 0.
    * total - The total this individual person has to pay, default at 0.

10. failAttempts

  • This is used to store the amount of fail attempts, default at 0.
  • If this reaches 3, it will redirect the user to the User Input page.

11. found

  • This is used to indicate if the text of an image is found, default at false.

11. loading

  • This is used to indicate if a process is loading, default at false.

Clone this wiki locally