Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0040959Openbravo ERPA. Platformpublic2019-05-28 11:422022-02-01 08:07
nicolasuriz 
Triage Platform Base 
normalminoralways
acknowledgedopen 
5
 
 
Core
No
0040959: While creating a reservation, it is different the info shown in grid and in form view.
When you create a reservation, in the date it is shown the date and the hour exactly in grid view, not working like that while viewing in form view (See attached images).
0. Install Resource and Reservation Management module (org.openbravo.module.resources)

Alternative 1:
1. Create a new Resource with Water as Product Category
2. As F&B admin create a Sales Order header, in org F&B España - Región Norte
3. Add a new line with Agua sin gas as product
4. Create a new Reservation for that line and check that the "Start Time" and "End Time" fields show different information in grid and form.

Alternative 2:
1. Create a new Resource "bookable online"
2. Using the "Resources and Reservations" calendar create and book a new reservation
3. Go to the [Sales Order] window, select a line of the newly created order, switch into the "Reservation" subtab to see that the "Start Time" and "End Time" fields show different information in grid and form.
It will be better if it shows the time and date in both views.
No tags attached.
related to defect 0040829 closed caristu Unable to create record with fields having references 'DateTime_From (Date)' and 'DateTime_To (Date)' 
png grid.png (27,742) 2019-05-28 17:00
https://issues.openbravo.com/file_download.php?file_id=12988&type=bug
png

png form.png (36,398) 2019-05-28 17:00
https://issues.openbravo.com/file_download.php?file_id=12989&type=bug
png
Issue History
2019-05-28 11:42nicolasurizNew Issue
2019-05-28 11:42nicolasurizAssigned To => platform
2019-05-28 11:42nicolasurizModules => Core
2019-05-28 11:42nicolasurizResolution time => 1560981600
2019-05-28 11:42nicolasurizTriggers an Emergency Pack => No
2019-05-28 12:09caristuSeveritymajor => minor
2019-05-28 12:27nicolasurizProposed Solution updated
2019-05-28 12:31nicolasurizProposed Solution updated
2019-05-28 12:36caristuRelationship addedrelated to 0040829
2019-05-28 16:29caristuDescription Updatedbug_revision_view_page.php?rev_id=18829#r18829
2019-05-28 16:29caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=18831#r18831
2019-05-28 16:29caristuFile Added: grid.png
2019-05-28 16:59caristuFile Deleted: grid.png
2019-05-28 17:00caristuFile Added: grid.png
2019-05-28 17:00caristuFile Added: form.png
2019-05-28 17:05caristuTypedefect => design defect
2019-05-28 17:05caristuNote Added: 0112211
2019-05-28 17:05caristuResolution time1560981600 =>
2019-05-28 17:05caristuNote Edited: 0112211bug_revision_view_page.php?bugnote_id=0112211#r18834
2019-05-28 17:52caristuStatusnew => acknowledged
2022-02-01 08:07alostaleAssigned Toplatform => Triage Platform Base

Notes
(0112211)
caristu   
2019-05-28 17:05   
Moved to design defect.

It should be reviewed in deep how these references (DateTime_From and DateTime_To) should behave both in form and grid views.

Note that the time is not displayed in form view because this reference has specific code that prevents to show it[1]. By default it does not show the time (showTime: false) and it has a fixed time ('00:00:00')

[1] https://code.openbravo.com/erp/devel/pi/file/tip/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-datetime.js#l286 [^]