Notes |
|
(0069063)
|
hgbot
|
2014-08-04 11:26
|
|
Repository: erp/devel/pi
Changeset: 28068c12e140a0c14315287fe636327d305280e3
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Aug 04 11:24:21 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/28068c12e140a0c14315287fe636327d305280e3 [^]
Fixes issue 27202: AbsoluteDateTime properties are formatted in the identifier
The getIdentifier method of the IdentifierProvider class was only formatting the dates of the properties that used the Date or DateTime references. Now it also applies the proper date format for the properties that use the AbsoluteDateTime reference.
---
M src/org/openbravo/base/structure/IdentifierProvider.java
---
|
|
|
|
Quick Steps to Reproduce:
As System Admin:
- Open Tables and Columns
- Select the Order table
- Change the reference of the Updated column to Absolute Date Time
- Include this column in the identifier of the table
As F&B Admin:
- Open Sales Order and select a record. Check that the proper identifier is shown in the title. |
|
|
(0069083)
|
dbaz
|
2014-08-04 21:23
|
|
With the following configuration:
dateFormat.js=%d-%m-%Y
dateFormat.sql=DD-MM-YYYY
dateFormat.java=dd-MM-yyyy
dateTimeFormat.java=dd-MM-yyyy hh:mm:ss a
dateTimeFormat.sql=DD-MM-YYYY HH24:MI:SS
Install the following module:
https://code.openbravo.com/erp/mods/org.openbravo.platform.features/ [^]
As "System Administrator"
* Go to "Tables and Columns"
* Leave in "C_Order" table the "Used as Record Indenfifier" and its associated "Sequence Number" as shown in attached [Config.png]
Do ant.smartbuild
As "Openbravo Admin"
* Go to "Sales Order"
* Create a record with the values attached in [Result.png]
Notice that the shown text in the tab is:
"Sales Order - 2014-08-04 05:00:00.0 - 06-08-2014 12:00:00 AM - 1000108 - 2014-08-04 19:00:00.0 - 05-08-2014 08:00:00 PM"
and it should be:
"Sales Order - 5:00:00 AM - 06-08-2014 12:00:00 AM - 1000108 - 7:00:00 PM - 05-08-2014 08:00:00 PM"
So the tabs text should display exactly the same that is visualized in the form
It can be conclided that there is still a problem with the text of the Absolute Time (specified in the original issue) and with the Relative Time (not specified in the original issue) one. |
|
|
(0069088)
|
hgbot
|
2014-08-05 12:38
|
|
Repository: erp/devel/pi
Changeset: b4c15099de6b5946b8d52335e7920d06a7c12672
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Aug 05 12:37:18 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b4c15099de6b5946b8d52335e7920d06a7c12672 [^]
Fixes issue 27202: Time properties are formatted in the identifier
The previous changeset only fixed the problem for AbsoluteDateTime properties. This new changeset also applies the proper format for the Time and AbsoluteTime properties.
---
M src/org/openbravo/base/model/Property.java
M src/org/openbravo/base/structure/IdentifierProvider.java
---
|
|
|
(0069091)
|
dbaz
|
2014-08-05 14:59
|
|
The solution is not still perfect, because I see:
"Sales Order - 05:00:00 AM - 06-08-2014 12:00:00 AM - 1000108 - 07:00:00 PM - 05-08-2014 08:00:00 PM"
and I expect to see, as said before, the same than in the form, so:
"Sales Order - 5:00:00 AM - 06-08-2014 12:00:00 AM - 1000108 - 7:00:00 PM - 05-08-2014 08:00:00 PM"
Anyway, I think it could be good enough for the moment, so it can be closed.
Reviewed @ changeset 24214 - ca197a91d631 |
|
|
|
|
|
|
|