Skip to content

Modifiers added to last valid entity, upon entity recognition failure #45

@SpaceKatt

Description

@SpaceKatt

If a customer enters a valid order and then enters an invalid order with a modifier, then short-order will add the modifier to the last valid entity. (Version 0.0.28)

$ node build/samples/repl_demo.js
Welcome to the ShortOrder REPL.
Type your order below.
A blank line exits.

Type .help for information on commands.


% could I please have a coffee

QTY ITEM                                     TOTAL
  1 Medium Coffee (1101)                      1.29
Subtotal                                      1.29
    Tax                                       0.12
Total                                         1.41

Got it. Can I get you anything else?


% another covfefe with two cream

QTY ITEM                                     TOTAL
  1 Medium Coffee (1101)                      1.29
      ADD 2 Cream (1194)
Subtotal                                      1.29
    Tax                                       0.12
Total                                         1.41

Not sure I got all that. Is that everything?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions