Openbravo Issue Tracking System - POS2 | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0049090 | POS2 | POS | public | 2022-04-20 08:55 | 2022-04-20 10:39 |
Reporter | ebecerra | ||||
Assigned To | ebecerra | ||||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | approved | ||||
Review Assigned To | |||||
OBNetwork customer | No | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0049090: Restaurant: Function "getRestaurantService" fail when service time is before 10:00 AM | ||||
Description | When calls the function "getRestaurantService" before 10:00 AM always return "false". | ||||
Steps To Reproduce | 1. In the BO configure a mealservice to start at: 01:00:00 2. In the BO configure another mealservice to start at: 10:30:00 3. Call the function "getRestaurantService" with argument time before 10:30 PM | ||||
Proposed Solution | Fixes in the file: GetRestaurantService.js the function: isValidHour function isValidHour(hour, dayStartTime) { let serviceStartTime = new Date(dayStartTime).toLocaleTimeString(); if (serviceStartTime.length < 8) { serviceStartTime = `0${serviceStartTime}`; } return hour >= serviceStartTime; } | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2022-04-20 08:55 | ebecerra | New Issue | |||
2022-04-20 08:55 | ebecerra | Assigned To | => Retail | ||
2022-04-20 08:55 | ebecerra | OBNetwork customer | => No | ||
2022-04-20 08:55 | ebecerra | Triggers an Emergency Pack | => No | ||
2022-04-20 09:03 | ebecerra | Summary | Restaurant: Function "getRestaurantService" fail when time is before 10:00 AM => Restaurant: Function "getRestaurantService" fail when service time is before 10:00 AM | ||
2022-04-20 09:03 | ebecerra | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=23930#r23930 | ||
2022-04-20 09:03 | ebecerra | Proposed Solution updated | |||
2022-04-20 09:12 | ebecerra | Proposed Solution updated | |||
2022-04-20 09:12 | ebecerra | Assigned To | Retail => ebecerra | ||
2022-04-20 09:12 | ebecerra | Status | new => scheduled | ||
2022-04-20 09:50 | hgbot | Merge Request Status | => open | ||
2022-04-20 09:50 | hgbot | Note Added: 0136618 | |||
2022-04-20 10:39 | hgbot | Merge Request Status | open => approved | ||
2022-04-20 10:39 | hgbot | Resolution | open => fixed | ||
2022-04-20 10:39 | hgbot | Status | scheduled => closed | ||
2022-04-20 10:39 | hgbot | Note Added: 0136621 | |||
2022-04-20 10:39 | hgbot | Note Added: 0136622 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|