-
Notifications
You must be signed in to change notification settings - Fork 1
Camera: Functions
Kev edited this page Apr 26, 2020
·
2 revisions
- Redirects the user back to step 1.
- This function would only activate if there's a BUG.
- Changes the state.
- Moves onto the next step of the multi-step form.
- Changes the state.
- Moves onto the previous step of the multi-step form.
- Changes the state.
- Handles form changes.
- Changes the state.
- Changes the subtotal.
- Changes the state.
- Changes the tax.
- Changes the state.
- If there is no tax set, it is defaulted to be 0.
- Changes the state.
- Using the subtotal and tax, calculate the tax percentage.
- Changes the state.
- Using the subtotal and tax, calculate the total.
- Changes the state.
- Given an image, reads it, and saves it as a state. It also resets the last image data.
- Changes the state.
- Using Tesseract, generate the text of the image.
- Changes the state.
- Parses the text and obtains appropriate values.
- Changes the state.
- It resets the parses data. So resets, subtotal, tax, taxPercent, total, and orders.
- Changes the state.
- Changes the order quantity of an order.
- Changes the state.
- Check to see if the order quantity of an order is blank or less than or equal to zero.
- Results a boolean expression
- Changes the order name of an order.
- Changes the state.
- If there is no order name of an order, it is automatically filled in.
- Changes the state.
- Changes the order cost of an order.
- Changes the state.
- Check to see if the order quantity of an order is blank or less than to zero.
- Results a boolean expression
- Removes an order.
- Changes the state.
- Add an order.
- Changes the state.
- Changes the name of a user.
- Changes the state.
- If there is no name of a user, it is automatically filled in.
- Changes the state.
- Changes the checkbox of a user.
- Changes the state.
- Searches for the user inside the database.
- Changes the state.
- Checks to see if the users are all found inside the database.
- Results a boolean expression.
- Removes a user.
- Changes the state.
- Add a user.
- Changes the state.
- Changes the association of an order.
- Changes the state.
- Check to see if the association of an order is blank.
- Results a boolean expression.
- It resets the association of an order.
- Changes the state.
- It sets the subtotal for each user. It uses the association and cost of the order.
- Changes the state.
- It sets the tax and total for each user. It uses the subtotal and tax percentages.
- Changes the state.
- It resets the subtotal, tax, and total for each user.
- Changes the state.
- It creates a new user that contains the subtotal, tax, and total of all the users.
- Changes the state.
- It removes the new user that contains the subtotal, tax, and total of all the users.
- Changes the state.