Related to issue 31026: Change from DateTime to Absolute DateTime
authorAlvaro Ferraz <alvaro.ferraz@openbravo.com>
Fri, 09 Oct 2015 13:57:19 +0200
changeset 27662 b75349aa9d0f
parent 27661 1e202be0bda2
child 27663 cda754dfc560
Related to issue 31026: Change from DateTime to Absolute DateTime

Document date and Reference date references in Inventory Amount update have been changed from DateTime to Absolute DateTime, to avoid UTC conversion.
Also dateTimeFormat.java should be used instead of dateFormat.java for date formating.
src-db/database/sourcedata/AD_COLUMN.xml
src/org/openbravo/erpCommon/ad_callouts/SL_InvAmtUpd_ProductRefDate.java
--- a/src-db/database/sourcedata/AD_COLUMN.xml	Fri Oct 09 14:08:51 2015 -0700
+++ b/src-db/database/sourcedata/AD_COLUMN.xml	Fri Oct 09 13:57:19 2015 +0200
@@ -231766,7 +231766,7 @@
 <!--203C2E66223345CDBD2A5391BA5212AA-->  <HELP><![CDATA[The date used as a Reference for the document]]></HELP>
 <!--203C2E66223345CDBD2A5391BA5212AA-->  <COLUMNNAME><![CDATA[Referencedate]]></COLUMNNAME>
 <!--203C2E66223345CDBD2A5391BA5212AA-->  <AD_TABLE_ID><![CDATA[F26CC88DB04946F1A19DF05749C4381F]]></AD_TABLE_ID>
-<!--203C2E66223345CDBD2A5391BA5212AA-->  <AD_REFERENCE_ID><![CDATA[16]]></AD_REFERENCE_ID>
+<!--203C2E66223345CDBD2A5391BA5212AA-->  <AD_REFERENCE_ID><![CDATA[478169542A1747BD942DD70C8B45089C]]></AD_REFERENCE_ID>
 <!--203C2E66223345CDBD2A5391BA5212AA-->  <FIELDLENGTH><![CDATA[19]]></FIELDLENGTH>
 <!--203C2E66223345CDBD2A5391BA5212AA-->  <DEFAULTVALUE><![CDATA[@Documentdate@]]></DEFAULTVALUE>
 <!--203C2E66223345CDBD2A5391BA5212AA-->  <ISKEY><![CDATA[N]]></ISKEY>
@@ -234001,7 +234001,7 @@
 <!--2A9149F05DDC4F5CBE30066C08579533-->  <NAME><![CDATA[Document date]]></NAME>
 <!--2A9149F05DDC4F5CBE30066C08579533-->  <COLUMNNAME><![CDATA[Documentdate]]></COLUMNNAME>
 <!--2A9149F05DDC4F5CBE30066C08579533-->  <AD_TABLE_ID><![CDATA[F6B6AD5679FF4A798D2A3D44B232C52C]]></AD_TABLE_ID>
-<!--2A9149F05DDC4F5CBE30066C08579533-->  <AD_REFERENCE_ID><![CDATA[16]]></AD_REFERENCE_ID>
+<!--2A9149F05DDC4F5CBE30066C08579533-->  <AD_REFERENCE_ID><![CDATA[478169542A1747BD942DD70C8B45089C]]></AD_REFERENCE_ID>
 <!--2A9149F05DDC4F5CBE30066C08579533-->  <FIELDLENGTH><![CDATA[19]]></FIELDLENGTH>
 <!--2A9149F05DDC4F5CBE30066C08579533-->  <DEFAULTVALUE><![CDATA[@#Date@]]></DEFAULTVALUE>
 <!--2A9149F05DDC4F5CBE30066C08579533-->  <ISKEY><![CDATA[N]]></ISKEY>
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_InvAmtUpd_ProductRefDate.java	Fri Oct 09 14:08:51 2015 -0700
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_InvAmtUpd_ProductRefDate.java	Fri Oct 09 13:57:19 2015 +0200
@@ -59,7 +59,7 @@
       Currency currency = organization.getCurrency() != null ? organization.getCurrency()
           : organization.getClient().getCurrency();
       String dateFormat = OBPropertiesProvider.getInstance().getOpenbravoProperties()
-          .getProperty("dateFormat.java");
+          .getProperty("dateTimeFormat.java");
       SimpleDateFormat outputFormat = new SimpleDateFormat(dateFormat);
 
       referenceDate = outputFormat.parse(info.getStringParameter("inpreferencedate", null));