Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015559Openbravo ERPA. Platformpublic2010-12-31 11:472022-02-01 08:08
vmromanos 
Triage Platform Base 
normalminoralways
newopen 
20Debian 5.0
 
 
Core
No
0015559: DAL: Add support to @#Date@ as default value for a column
Right now is impossible to define a default value for a column to "today" in a way that both the UI and DAL understand it.

For example:
-if we define the default value in the AD for a column to "SYSDATE", DAL will understand it but the UI won't do it (it will display the string SYSDATE into the field)
-if we define the default value in the AD for a column to "@#Date@", the UI will understand it but the DAL won't do it (it will use null as a default value)

This is a problem when both DAL and the UI use this column's default value. An example can be a new date column in the AD_ORG table, because for creating a new organization we can use the DAL through the Initial Org Setup or the UI through the Organization window
See attached patch (please review it)
No tags attached.
blocks feature request 0013601 closed vmromanos "Valid from Date" field in Organization 
diff dal_today.diff (884) 2010-12-31 11:47
https://issues.openbravo.com/file_download.php?file_id=3456&type=bug
Issue History
2010-12-31 11:47vmromanosNew Issue
2010-12-31 11:47vmromanosAssigned To => alostale
2010-12-31 11:47vmromanosFile Added: dal_today.diff
2010-12-31 11:47vmromanosModules => Core
2010-12-31 11:49vmromanosRelationship addedblocks 0013601
2017-04-10 14:39alostaleAssigned Toalostale => platform
2022-02-01 08:08alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.