diff --git a/ChangeLog.md b/ChangeLog.md index 7d71e83..9eb2f74 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -48,4 +48,5 @@ # v1.2.6 [6 мая 2019] - Modified TailOrder Line model for take away -- Prompt on viewing order \ No newline at end of file +- Prompt on viewing order +- Close order goes back to the listing \ No newline at end of file diff --git a/src/container/SalesContainer/index.js b/src/container/SalesContainer/index.js index 6b2f500..339be26 100644 --- a/src/container/SalesContainer/index.js +++ b/src/container/SalesContainer/index.js @@ -697,6 +697,7 @@ export default class SalesContainer extends React.Component { currentTable, queueOrigin, setCurrentTable, + setViewingOrder, } = this.props.stateStore; const { defaultReceipt } = this.props.receiptStore; @@ -707,6 +708,7 @@ export default class SalesContainer extends React.Component { }); setCurrentTable(-1); defaultReceipt.clear(); + setViewingOrder(false); }); };