Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a seven hills person can scan barcodes to complete picking #19

Closed
14 tasks done
Tracked by #7
CapSap opened this issue Jun 12, 2024 · 3 comments · Fixed by #32
Closed
14 tasks done
Tracked by #7

a seven hills person can scan barcodes to complete picking #19

CapSap opened this issue Jun 12, 2024 · 3 comments · Fixed by #32

Comments

@CapSap
Copy link
Owner

CapSap commented Jun 12, 2024

the workflow im thinking is user hits a button, goes to a picking / scanning screen. A single list of all the items to pick, and user can scan barcode to pick

  • create a context
  • create function to save context
  • create picking page that gets data from context
  • user can scan to pick
    • function to handle checking sku / barcode against picking
      • need something to convert barcode into sku
      • find one request only where sku is correct and it still needs to be picked
      • update this one request only, and update state
      • user can manually "scan" an item without barcde
      • user can undo a scan
    • update context from picking page (or write to db with completed picking results)
      • user can mark an order as short picked.
      • update relevant typescript things (db interface, etc)
  • Alert user when a scan does not find any items. (wrong product scanned)
@CapSap
Copy link
Owner Author

CapSap commented Jun 12, 2024

how am i gonna generate the picking page? (pass user selected data to the page?)

i can see 2 options

  • use a and pass in params. nav to the picking list page, fetch from db all requests with ids in params.
  • store requests in a context. or on click store requests that have been selected to go to a picklist.
    • so user select some requests
    • on click save requests to context
    • and then navigate to new picking list page, and display picking list
    • while picking is happening, requests are being updated locally (picked, cannot pick)
    • when picking is complete, press button to update db (picked, not picked)
    • and then navigate to dashboard

@CapSap
Copy link
Owner Author

CapSap commented Jun 13, 2024

got stuck when retrieving mongo data on server via server function and passing down to client.
fix might be to use a route handler, or serialise the data before passing down to client

@CapSap CapSap mentioned this issue Jul 22, 2024
@CapSap
Copy link
Owner Author

CapSap commented Jul 22, 2024

also got stuck on next caching but was able to sort it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant