Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open and close restaurant #46

Open
morggansoft opened this issue Mar 12, 2020 · 1 comment
Open

Open and close restaurant #46

morggansoft opened this issue Mar 12, 2020 · 1 comment
Assignees
Labels
project: Ever Platform Feature request related to Ever Platform

Comments

@morggansoft
Copy link

morggansoft commented Mar 12, 2020

To avoid for a customer to order when the restaurant is not open (or in other cases, like there is no delivery available, or the restaurants just doesn't want to sell through the app), the shopping service should be opened and closed manually.

@evereq evereq added the project: Ever Platform Feature request related to Ever Platform label Apr 18, 2020
@evereq
Copy link
Member

evereq commented Jun 8, 2020

So basically somewhere on the Merchant management page, we need to add switcher "Open / Close" which should set some property "isActive" for Merchant. See https://github.com/ever-co/ever/blob/develop/packages/common/src/entities/Warehouse.ts#L58 and also https://github.com/ever-co/ever/blob/develop/packages/admin-web-angular/src/app/@shared/warehouse/forms/warehouse-manage-tabs/details/warehouse-manage-tabs-details.component.ts#L84 and also https://github.com/ever-co/ever/blob/develop/packages/admin-web-angular/src/app/@shared/warehouse/forms/warehouse-manage-tabs/details/warehouse-manage-tabs-details.component.ts#L84, etc.

Next, when we search for available products from near by merchants we should only use merchants which are set as active, see https://github.com/ever-co/ever/blob/develop/packages/core/src/services/geo-locations/GeoLocationsWarehousesService.ts#L49 - I am not sure, could be it's all done already and we only need to add a switch in UI, because it looks like activeOnly boolean field exists, etc.

@evereq evereq assigned AlishMekliov931 and unassigned sunk0 Jun 8, 2020
@evereq evereq added this to To do in Ever Demand Platform Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project: Ever Platform Feature request related to Ever Platform
Projects
Development

No branches or pull requests

4 participants