Skip to content

Instantly share code, notes, and snippets.

@gulp
Created September 4, 2018 13:17
Show Gist options
  • Save gulp/f5ad78e96ccdffc0c02c28d1e0945a7b to your computer and use it in GitHub Desktop.
Save gulp/f5ad78e96ccdffc0c02c28d1e0945a7b to your computer and use it in GitHub Desktop.
Bin
Bin
Has single item
scan an item -> Single item added
Has multiple items*
scan multiple items -> Multiple items selected
Multiple items selected
scan pack -> How many to move?
How many to move?
enter qty -> Multiple items added to allocated
Packaging
Allocated pack
Single item added to allocated
Multiple items added to allocated
scan new pack -> New pack added
New pack added
Active
Single item added
scan pack -> Single item and single pack
Shipped
Single item and single pack
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment