meemup-library 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -130,7 +130,7 @@ export default new class KitchenController {
130
130
  //-----------------------------------------------------------------------------------------------
131
131
  desiredDateTime.setMinutes(desiredDateTime.getMinutes() + estimatedTime);
132
132
  let tik = this.dateToSecond(desiredDateTime) - this.dateToSecond(currentDateTime);
133
- return tik - ((kitchenTime + travelTime) * 60) > 0;
133
+ return tik - ((kitchenTime + travelTime + 5) * 60) > 0; //5 min teloranse
134
134
  }
135
135
  // isAddvanceOrder(detail: IKitchenOrderDetail) {
136
136
  // let current = moment().format("YYYY-MM-DDTHH:mm:ss")
@@ -317,6 +317,7 @@ class OrderToolController {
317
317
  text: item.text,
318
318
  extraItemOptionId: item.extraItemOptionId,
319
319
  extraItemOptionTitle: item.extraItemOptionTitle,
320
+ doNotPrintOnReceipt: item.doNotPrintOnReceipt
320
321
  };
321
322
  }
322
323
  convertOrderItemToOrderDetailProduct(item, currency) {
@@ -128,6 +128,7 @@ export default new class ProductModalController {
128
128
  extraTitle: ((_a = extras.find(i => i.id === extra.extraId)) === null || _a === void 0 ? void 0 : _a.title) + "",
129
129
  extraItemOptionId: extraItem.optionId,
130
130
  extraItemOptionTitle: extraItem.optionTitle,
131
+ doNotPrintOnReceipt: extraItem.doNotPrintOnReceipt,
131
132
  });
132
133
  });
133
134
  });
@@ -12,5 +12,6 @@ interface IPointOfSaleOrderExtraItem {
12
12
  text: string;
13
13
  extraItemOptionTitle: string;
14
14
  extraItemOptionId: number;
15
+ doNotPrintOnReceipt: boolean;
15
16
  }
16
17
  export default IPointOfSaleOrderExtraItem;
@@ -12,5 +12,6 @@ interface IOrderDetailProductsExtra {
12
12
  text: string;
13
13
  extraItemOptionId: number | null;
14
14
  extraItemOptionTitle: string;
15
+ doNotPrintOnReceipt: boolean;
15
16
  }
16
17
  export default IOrderDetailProductsExtra;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "remove:one": "rimraf dist",
12
12
  "remove:two": "rimraf ./src/dist",
13
13
  "test": "echo \"Error: no test specified\" && exit 1",
14
- "commit": "git add . && git commit -m \"version.1.5.0\" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.5.2\" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"