Skip to content

Commit 2dd6aad

Browse files
committed
Wine colour
1 parent 88055ff commit 2dd6aad

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

AppHtml/js/WebVoiceControl.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,4 @@ startListening : function(){
159159

160160
},
161161

162-
// stopListening : function(){
163-
164-
// if (this._eRecognition) {
165-
// this._eRecognition.stop();
166-
// }
167-
168-
// }
169-
170162
});

AppSrc/cOrderParser.pkg

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Class cOrderParser is a cObject
6060
Move "wine" to asDrinks[26]
6161
Move "tonic" to asDrinks[27]
6262
Move "ginger" to asDrinks[28]
63+
Move "whiskies" to asDrinks[29]
64+
Move "rosé" to asDrinks[30]
6365

6466
Move 3.80 to anPrices[0]
6567
Move 0 to anPrices[1]
@@ -90,6 +92,8 @@ Class cOrderParser is a cObject
9092
Move 4.10 to anPrices[26]
9193
Move 0.80 to anPrices[27]
9294
Move 0.85 to anPrices[28]
95+
Move 5.90 to anPrices[29]
96+
Move 4.10 to anPrices[30]
9397

9498
Set pasDrinks to asDrinks
9599
Set panPrices to anPrices
@@ -164,6 +168,16 @@ Class cOrderParser is a cObject
164168
Move (SearchArray(sItem, asDrinks)) to iIdx
165169

166170
If (iIdx > -1) Begin
171+
172+
// Wind needs colour!
173+
If (asWords[i] = "wine") Begin
174+
If (asWords[i - 1] = "red") ;
175+
Move "red wine" to asWords[i]
176+
If (asWords[i - 1] = "white") ;
177+
Move "white wine" to asWords[i]
178+
End
179+
180+
167181
Move asWords[i] to tOrder.tItems[j].sItem
168182
Move anPrices[iIdx] to tOrder.tItems[j].nPrice
169183
Move iQty to tOrder.tItems[j].iQty

0 commit comments

Comments
 (0)