[Cancel and Replace] Button Display logic
authorAnder Iraceburu <ander.iraceburu@openbravo.com>
Tue, 03 Feb 2015 18:41:24 +0100
changeset 27872 ec9bf4b6fbbe
parent 27871 bee59d479386
child 27873 fc2fffcc0963
[Cancel and Replace] Button Display logic
src-db/database/sourcedata/AD_COLUMN.xml
src-db/database/sourcedata/AD_ELEMENT.xml
src-db/database/sourcedata/AD_FIELD.xml
src/org/openbravo/common/actionhandler/ConfirmCancelAndReplaceSalesOrder.java
--- a/src-db/database/sourcedata/AD_COLUMN.xml	Mon Feb 02 18:56:23 2015 +0100
+++ b/src-db/database/sourcedata/AD_COLUMN.xml	Tue Feb 03 18:41:24 2015 +0100
@@ -227694,6 +227694,7 @@
 <!--129F2530A63B4C7CA9AF17996732E6A4-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
 <!--129F2530A63B4C7CA9AF17996732E6A4-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
 <!--129F2530A63B4C7CA9AF17996732E6A4-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--129F2530A63B4C7CA9AF17996732E6A4-->  <AD_ELEMENT_ID><![CDATA[EB7F6DD0A85D48AD84ED48CF6D2C3776]]></AD_ELEMENT_ID>
 <!--129F2530A63B4C7CA9AF17996732E6A4-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
 <!--129F2530A63B4C7CA9AF17996732E6A4-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
 <!--129F2530A63B4C7CA9AF17996732E6A4-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
@@ -236757,6 +236758,38 @@
 <!--3958F2FE6BD54288B69FF3D175C19480-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--3958F2FE6BD54288B69FF3D175C19480--></AD_COLUMN>
 
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B--><AD_COLUMN>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <AD_COLUMN_ID><![CDATA[39E1DEC5D52B40DEBAD42F965CF4FA1B]]></AD_COLUMN_ID>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <NAME><![CDATA[hasBeenReplaced]]></NAME>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <COLUMNNAME><![CDATA[hasbeenreplaced]]></COLUMNNAME>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <AD_TABLE_ID><![CDATA[259]]></AD_TABLE_ID>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <AD_REFERENCE_ID><![CDATA[20]]></AD_REFERENCE_ID>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <FIELDLENGTH><![CDATA[1]]></FIELDLENGTH>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <SEQNO><![CDATA[740]]></SEQNO>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B-->  <SQLLOGIC><![CDATA[select case when (select count(*) from c_order where replacedorder = c_order_id) >= 1 then 'Y' else 'N' end]]></SQLLOGIC>
+<!--39E1DEC5D52B40DEBAD42F965CF4FA1B--></AD_COLUMN>
+
 <!--39E68AB00DEA43D1B68302BE844FEE81--><AD_COLUMN>
 <!--39E68AB00DEA43D1B68302BE844FEE81-->  <AD_COLUMN_ID><![CDATA[39E68AB00DEA43D1B68302BE844FEE81]]></AD_COLUMN_ID>
 <!--39E68AB00DEA43D1B68302BE844FEE81-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -320167,6 +320200,7 @@
 <!--CB3A64CFC2B8471E91DBBF12A663D0FB-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
 <!--CB3A64CFC2B8471E91DBBF12A663D0FB-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
 <!--CB3A64CFC2B8471E91DBBF12A663D0FB-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--CB3A64CFC2B8471E91DBBF12A663D0FB-->  <AD_ELEMENT_ID><![CDATA[2627023DF29E469E89105888E791393B]]></AD_ELEMENT_ID>
 <!--CB3A64CFC2B8471E91DBBF12A663D0FB-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
 <!--CB3A64CFC2B8471E91DBBF12A663D0FB-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
 <!--CB3A64CFC2B8471E91DBBF12A663D0FB-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
--- a/src-db/database/sourcedata/AD_ELEMENT.xml	Mon Feb 02 18:56:23 2015 +0100
+++ b/src-db/database/sourcedata/AD_ELEMENT.xml	Tue Feb 03 18:41:24 2015 +0100
@@ -21751,6 +21751,18 @@
 <!--24DF09C68AD04D86963F5DE05B759600-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--24DF09C68AD04D86963F5DE05B759600--></AD_ELEMENT>
 
+<!--2627023DF29E469E89105888E791393B--><AD_ELEMENT>
+<!--2627023DF29E469E89105888E791393B-->  <AD_ELEMENT_ID><![CDATA[2627023DF29E469E89105888E791393B]]></AD_ELEMENT_ID>
+<!--2627023DF29E469E89105888E791393B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--2627023DF29E469E89105888E791393B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--2627023DF29E469E89105888E791393B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--2627023DF29E469E89105888E791393B-->  <COLUMNNAME><![CDATA[Replacedorder]]></COLUMNNAME>
+<!--2627023DF29E469E89105888E791393B-->  <NAME><![CDATA[Replaced Order]]></NAME>
+<!--2627023DF29E469E89105888E791393B-->  <PRINTNAME><![CDATA[Replaced Order]]></PRINTNAME>
+<!--2627023DF29E469E89105888E791393B-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--2627023DF29E469E89105888E791393B-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--2627023DF29E469E89105888E791393B--></AD_ELEMENT>
+
 <!--26CEA9911F5D4A1880B6C9B552B40322--><AD_ELEMENT>
 <!--26CEA9911F5D4A1880B6C9B552B40322-->  <AD_ELEMENT_ID><![CDATA[26CEA9911F5D4A1880B6C9B552B40322]]></AD_ELEMENT_ID>
 <!--26CEA9911F5D4A1880B6C9B552B40322-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -33048,6 +33060,18 @@
 <!--EB58AFE2D52942FEA4B7DA407282DC1D-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--EB58AFE2D52942FEA4B7DA407282DC1D--></AD_ELEMENT>
 
+<!--EB7F6DD0A85D48AD84ED48CF6D2C3776--><AD_ELEMENT>
+<!--EB7F6DD0A85D48AD84ED48CF6D2C3776-->  <AD_ELEMENT_ID><![CDATA[EB7F6DD0A85D48AD84ED48CF6D2C3776]]></AD_ELEMENT_ID>
+<!--EB7F6DD0A85D48AD84ED48CF6D2C3776-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--EB7F6DD0A85D48AD84ED48CF6D2C3776-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--EB7F6DD0A85D48AD84ED48CF6D2C3776-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--EB7F6DD0A85D48AD84ED48CF6D2C3776-->  <COLUMNNAME><![CDATA[Cancelledorder]]></COLUMNNAME>
+<!--EB7F6DD0A85D48AD84ED48CF6D2C3776-->  <NAME><![CDATA[Cancelled Order]]></NAME>
+<!--EB7F6DD0A85D48AD84ED48CF6D2C3776-->  <PRINTNAME><![CDATA[Cancelled Order]]></PRINTNAME>
+<!--EB7F6DD0A85D48AD84ED48CF6D2C3776-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--EB7F6DD0A85D48AD84ED48CF6D2C3776-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--EB7F6DD0A85D48AD84ED48CF6D2C3776--></AD_ELEMENT>
+
 <!--EBE913C1DDD84066A1D88C9903717DB9--><AD_ELEMENT>
 <!--EBE913C1DDD84066A1D88C9903717DB9-->  <AD_ELEMENT_ID><![CDATA[EBE913C1DDD84066A1D88C9903717DB9]]></AD_ELEMENT_ID>
 <!--EBE913C1DDD84066A1D88C9903717DB9-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_FIELD.xml	Mon Feb 02 18:56:23 2015 +0100
+++ b/src-db/database/sourcedata/AD_FIELD.xml	Tue Feb 03 18:41:24 2015 +0100
@@ -199262,6 +199262,33 @@
 <!--3C0B7FD069C24F40AB9CA1F21DB182F4-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--3C0B7FD069C24F40AB9CA1F21DB182F4--></AD_FIELD>
 
+<!--3C2B8257EC414EFBB6BA098C8400D28A--><AD_FIELD>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <AD_FIELD_ID><![CDATA[3C2B8257EC414EFBB6BA098C8400D28A]]></AD_FIELD_ID>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <NAME><![CDATA[Cancelled Order]]></NAME>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <AD_TAB_ID><![CDATA[186]]></AD_TAB_ID>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <AD_COLUMN_ID><![CDATA[129F2530A63B4C7CA9AF17996732E6A4]]></AD_COLUMN_ID>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <DISPLAYLOGIC><![CDATA[@Cancelledorder@!'']]></DISPLAYLOGIC>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <SEQNO><![CDATA[125]]></SEQNO>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--3C2B8257EC414EFBB6BA098C8400D28A-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--3C2B8257EC414EFBB6BA098C8400D28A--></AD_FIELD>
+
 <!--3C42EE919FD647FEAD42BA89899FCB0F--><AD_FIELD>
 <!--3C42EE919FD647FEAD42BA89899FCB0F-->  <AD_FIELD_ID><![CDATA[3C42EE919FD647FEAD42BA89899FCB0F]]></AD_FIELD_ID>
 <!--3C42EE919FD647FEAD42BA89899FCB0F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -199441,7 +199468,7 @@
 <!--3C9B97CD980A4D809BDE5B9FDC3E0E73-->  <AD_COLUMN_ID><![CDATA[9AEBE3623CCD4E6F820A2EB70F2F243D]]></AD_COLUMN_ID>
 <!--3C9B97CD980A4D809BDE5B9FDC3E0E73-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
 <!--3C9B97CD980A4D809BDE5B9FDC3E0E73-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
-<!--3C9B97CD980A4D809BDE5B9FDC3E0E73-->  <DISPLAYLOGIC><![CDATA[@DocStatus@='CO']]></DISPLAYLOGIC>
+<!--3C9B97CD980A4D809BDE5B9FDC3E0E73-->  <DISPLAYLOGIC><![CDATA[@DocStatus@='CO'&@Cancelledorder@!''&@Hasbeenreplaced@='N']]></DISPLAYLOGIC>
 <!--3C9B97CD980A4D809BDE5B9FDC3E0E73-->  <DISPLAYLENGTH><![CDATA[1]]></DISPLAYLENGTH>
 <!--3C9B97CD980A4D809BDE5B9FDC3E0E73-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
 <!--3C9B97CD980A4D809BDE5B9FDC3E0E73-->  <SEQNO><![CDATA[2140]]></SEQNO>
@@ -293292,6 +293319,33 @@
 <!--E71F2C217A324DE397F8527BFB2513C3-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--E71F2C217A324DE397F8527BFB2513C3--></AD_FIELD>
 
+<!--E7336543F2EA4658A48B719F833D43B6--><AD_FIELD>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <AD_FIELD_ID><![CDATA[E7336543F2EA4658A48B719F833D43B6]]></AD_FIELD_ID>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <NAME><![CDATA[Replaced Order]]></NAME>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <AD_TAB_ID><![CDATA[186]]></AD_TAB_ID>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <AD_COLUMN_ID><![CDATA[CB3A64CFC2B8471E91DBBF12A663D0FB]]></AD_COLUMN_ID>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <DISPLAYLOGIC><![CDATA[@Replacedorder@!'']]></DISPLAYLOGIC>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <SEQNO><![CDATA[130]]></SEQNO>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--E7336543F2EA4658A48B719F833D43B6-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--E7336543F2EA4658A48B719F833D43B6--></AD_FIELD>
+
 <!--E73474C229524EFEA43AB9F6462E49A8--><AD_FIELD>
 <!--E73474C229524EFEA43AB9F6462E49A8-->  <AD_FIELD_ID><![CDATA[E73474C229524EFEA43AB9F6462E49A8]]></AD_FIELD_ID>
 <!--E73474C229524EFEA43AB9F6462E49A8-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -298736,6 +298790,32 @@
 <!--F78B253B664E4CB3B0E47A6E4E134201-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--F78B253B664E4CB3B0E47A6E4E134201--></AD_FIELD>
 
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C--><AD_FIELD>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <AD_FIELD_ID><![CDATA[F7DBE59E703E4A6DAD70B25B6296CE3C]]></AD_FIELD_ID>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <NAME><![CDATA[hasBeenReplaced]]></NAME>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <AD_TAB_ID><![CDATA[186]]></AD_TAB_ID>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <AD_COLUMN_ID><![CDATA[39E1DEC5D52B40DEBAD42F965CF4FA1B]]></AD_COLUMN_ID>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <IGNOREINWAD><![CDATA[Y]]></IGNOREINWAD>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <DISPLAYLENGTH><![CDATA[1]]></DISPLAYLENGTH>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <ISREADONLY><![CDATA[N]]></ISREADONLY>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <SEQNO><![CDATA[2220]]></SEQNO>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--F7DBE59E703E4A6DAD70B25B6296CE3C--></AD_FIELD>
+
 <!--F7E44E05B7C847F0908C0627735C0186--><AD_FIELD>
 <!--F7E44E05B7C847F0908C0627735C0186-->  <AD_FIELD_ID><![CDATA[F7E44E05B7C847F0908C0627735C0186]]></AD_FIELD_ID>
 <!--F7E44E05B7C847F0908C0627735C0186-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src/org/openbravo/common/actionhandler/ConfirmCancelAndReplaceSalesOrder.java	Mon Feb 02 18:56:23 2015 +0100
+++ b/src/org/openbravo/common/actionhandler/ConfirmCancelAndReplaceSalesOrder.java	Tue Feb 03 18:41:24 2015 +0100
@@ -103,6 +103,11 @@
       boolean originalAutomaticReceipt = accountPaymentMethod.isAutomaticReceipt();
       accountPaymentMethod.setAutomaticReceipt(false);
 
+      // Create goods shipment without real warehouse movement
+      // OldOrder Lines -> New goods shipment
+      // InverseOrder Lines -> New goods shipment
+      // Total movement 0
+
       // Complete inverse order and generate good shipment and sales invoice
       callCOrderPost(inverseOrder);