Merge 455c96ee2bc3

This commit is contained in:
Heng Sin Low 2013-07-16 15:11:37 +08:00
commit 0bdbe4a99c
32 changed files with 1251 additions and 92 deletions

View File

@ -131,6 +131,5 @@ Check existance of cash payment (now on payment table)
|*Read* | | |*Read* | |
|documentno | | |documentno | |
|description | | |description | |
|amount | |
|processed | | |processed | |

View File

@ -1,7 +1,7 @@
|IdempiereSuite.TestCashPosOrder||22:32:07 mié, jul 10, 2013|
|IdempiereSuite.TestInitialClientSetup||17:03:35 vie, jun 28, 2013| |IdempiereSuite.TestInitialClientSetup||17:03:35 vie, jun 28, 2013|
|IdempiereSuite.TestPostInternalInventory||15:31:05 vie, jun 28, 2013| |IdempiereSuite.TestPostInternalInventory||15:31:05 vie, jun 28, 2013|
|IdempiereSuite.TestCreateReference||14:44:52 vie, jun 28, 2013| |IdempiereSuite.TestCreateReference||14:44:52 vie, jun 28, 2013|
|IdempiereSuite.TestCashPosOrder||14:42:20 vie, jun 28, 2013|
|ZkSuite.ZkGardenAdminLogin||13:02:13 vie, jun 28, 2013| |ZkSuite.ZkGardenAdminLogin||13:02:13 vie, jun 28, 2013|
|ZkSuite.ZkSystemAdminLogin||13:00:38 vie, jun 28, 2013| |ZkSuite.ZkSystemAdminLogin||13:00:38 vie, jun 28, 2013|
|||12:04:00 jue, dic 20, 2012| |||12:04:00 jue, dic 20, 2012|

View File

@ -0,0 +1,64 @@
-- Jul 4, 2013 5:39:38 PM COT
-- Hide workflows deprecated
UPDATE AD_Workflow SET IsValid='N', IsActive='N',Updated=TO_DATE('2013-07-04 17:39:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50014
;
-- Jul 6, 2013 5:50:57 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_DATE('2013-07-06 17:50:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=119
;
-- Jul 6, 2013 5:51:01 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_DATE('2013-07-06 17:51:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50009
;
-- Jul 6, 2013 5:51:11 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_DATE('2013-07-06 17:51:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50011
;
-- Jul 6, 2013 5:51:31 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_DATE('2013-07-06 17:51:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50008
;
-- Jul 6, 2013 5:51:39 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_DATE('2013-07-06 17:51:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50013
;
-- Jul 6, 2013 5:52:09 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_DATE('2013-07-06 17:52:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50002
;
-- Jul 6, 2013 5:52:16 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_DATE('2013-07-06 17:52:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50005
;
-- Jul 6, 2013 5:52:28 PM COT
UPDATE AD_Workflow SET IsValid='N', IsActive='N',Updated=TO_DATE('2013-07-06 17:52:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50007
;
-- Jul 6, 2013 5:52:36 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_DATE('2013-07-06 17:52:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50010
;
-- Jul 6, 2013 5:52:41 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_DATE('2013-07-06 17:52:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50006
;
-- Jul 6, 2013 5:53:07 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_DATE('2013-07-06 17:53:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50000
;
-- Jul 6, 2013 5:53:11 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_DATE('2013-07-06 17:53:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50001
;
-- Jul 6, 2013 5:53:14 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_DATE('2013-07-06 17:53:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50004
;
-- Jul 6, 2013 5:53:27 PM COT
UPDATE AD_Workflow SET IsValid='N', IsActive='N',Updated=TO_DATE('2013-07-06 17:53:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50003
;
SELECT register_migration_script('20130407174015_IDEMPIERE-632.sql') FROM dual
;

View File

@ -0,0 +1,53 @@
-- Jun 25, 2013 6:30:15 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2013-06-25 18:30:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201369
;
-- Jun 25, 2013 6:30:56 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=201366
;
-- Jun 25, 2013 6:30:56 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=201369
;
-- Jun 25, 2013 6:30:56 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=201895
;
-- Jun 25, 2013 6:30:56 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=56664
;
-- Jun 25, 2013 6:30:56 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=201367
;
-- Jun 25, 2013 6:30:56 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=201365
;
-- Jun 25, 2013 6:30:56 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=201368
;
-- Jun 25, 2013 6:48:01 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET DisplayLogic='@IsIdentifier@=''Y" & @AD_Column_ID@!0',Updated=TO_DATE('2013-06-25 18:48:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201365
;
-- Jun 25, 2013 6:48:57 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET DisplayLogic='@IsIdentifier@=''Y" & @AD_Column_ID@!0',Updated=TO_DATE('2013-06-25 18:48:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201368
;
SELECT register_migration_script('201306261433_IDEMPIERE-1164.sql') FROM dual
;

View File

@ -0,0 +1,192 @@
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=56666
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=201366
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=201367
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=201369
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=201368
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=56665
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=56664
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=201365
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=201895
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=56669
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=56667
;
-- Jul 3, 2013 10:40:30 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56663
;
-- Jul 3, 2013 10:40:30 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56659
;
-- Jul 3, 2013 10:40:30 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56657
;
-- Jul 3, 2013 10:40:30 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=56660
;
-- Jul 3, 2013 10:40:30 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=56661
;
-- Jul 3, 2013 10:40:30 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=56658
;
-- Jul 3, 2013 10:40:30 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=56662
;
-- Jul 3, 2013 10:40:30 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=56656
;
-- Jul 3, 2013 10:50:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56669
;
-- Jul 3, 2013 10:50:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56665
;
-- Jul 3, 2013 10:50:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56667
;
-- Jul 3, 2013 10:50:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=201895
;
-- Jul 3, 2013 10:50:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=201365
;
-- Jul 3, 2013 10:50:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=56664
;
-- Jul 3, 2013 10:57:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56675
;
-- Jul 3, 2013 10:57:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56673
;
-- Jul 3, 2013 10:57:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56671
;
-- Jul 3, 2013 10:57:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=56672
;
-- Jul 3, 2013 10:57:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=56674
;
-- Jul 3, 2013 10:57:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=56670
;
-- Jul 3, 2013 10:58:28 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56681
;
-- Jul 3, 2013 10:58:28 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56677
;
-- Jul 3, 2013 10:58:28 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56678
;
-- Jul 3, 2013 10:58:28 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=56680
;
-- Jul 3, 2013 10:58:28 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=56679
;
-- Jul 3, 2013 10:58:28 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=56676
;
-- Jul 10, 2013 11:33:41 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET DisplayLogic='@WS_WebService_ID@ !200001',Updated=TO_DATE('2013-07-10 11:33:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56652
;
SELECT register_migration_script('201307031130_IDEMPIERE-1164.sql') FROM dual
;

View File

@ -0,0 +1,8 @@
-- Jul 11, 2013 2:11:52 PM MYT
-- IDEMPIERE-1163 Web service role access control not working
UPDATE AD_Field SET IsDisplayed='N', IsDisplayedGrid='N',Updated=TO_DATE('2013-07-11 14:11:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56679
;
SELECT register_migration_script('201307110629_IDEMPIERE-1163.sql') FROM dual
;

View File

@ -0,0 +1,138 @@
-- Jul 11, 2013 3:47:37 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET DisplayLogic='@AD_Reference_ID@=18 | @AD_Reference_ID@=30',Updated=TO_DATE('2013-07-11 15:47:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201895
;
-- Jul 11, 2013 3:53:23 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2013-07-11 15:53:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56629
;
-- Jul 11, 2013 3:53:28 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET XPosition=4,Updated=TO_DATE('2013-07-11 15:53:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56629
;
-- Jul 11, 2013 3:53:49 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET XPosition=1,Updated=TO_DATE('2013-07-11 15:53:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56629
;
-- Jul 11, 2013 3:53:57 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=2, XPosition=4,Updated=TO_DATE('2013-07-11 15:53:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56633
;
-- Jul 11, 2013 3:54:09 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2013-07-11 15:54:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56634
;
-- Jul 11, 2013 3:54:15 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=5,Updated=TO_DATE('2013-07-11 15:54:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56632
;
-- Jul 11, 2013 3:54:22 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=5,Updated=TO_DATE('2013-07-11 15:54:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56631
;
-- Jul 11, 2013 3:54:31 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=5, NumLines=3,Updated=TO_DATE('2013-07-11 15:54:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56630
;
-- Jul 11, 2013 3:54:37 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET XPosition=2,Updated=TO_DATE('2013-07-11 15:54:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56628
;
-- Jul 11, 2013 4:00:47 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56643
;
-- Jul 11, 2013 4:00:47 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56644
;
-- Jul 11, 2013 4:00:47 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56641
;
-- Jul 11, 2013 4:00:47 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56637
;
-- Jul 11, 2013 4:00:47 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=56640
;
-- Jul 11, 2013 4:00:47 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=56642
;
-- Jul 11, 2013 4:00:47 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=56639
;
-- Jul 11, 2013 4:00:47 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=56638
;
-- Jul 11, 2013 4:00:47 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=56636
;
-- Jul 11, 2013 4:01:05 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2013-07-11 16:01:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56637
;
-- Jul 11, 2013 4:01:14 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=2, XPosition=4,Updated=TO_DATE('2013-07-11 16:01:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56641
;
-- Jul 11, 2013 4:01:21 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2013-07-11 16:01:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56643
;
-- Jul 11, 2013 4:01:28 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_DATE('2013-07-11 16:01:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56642
;
-- Jul 11, 2013 4:01:35 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=5,Updated=TO_DATE('2013-07-11 16:01:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56640
;
-- Jul 11, 2013 4:01:45 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=5,Updated=TO_DATE('2013-07-11 16:01:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56639
;
-- Jul 11, 2013 4:01:52 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=5, NumLines=3,Updated=TO_DATE('2013-07-11 16:01:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56638
;
-- Jul 11, 2013 4:02:09 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET XPosition=2,Updated=TO_DATE('2013-07-11 16:02:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56636
;
SELECT register_migration_script('201307111604_IDEMPIERE-1164.sql') FROM dual
;

View File

@ -0,0 +1,65 @@
-- Jul 4, 2013 5:39:38 PM COT
-- Hide workflows deprecated
UPDATE AD_Workflow SET IsValid='N', IsActive='N',Updated=TO_TIMESTAMP('2013-07-04 17:39:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50014
;
-- Jul 6, 2013 5:50:57 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_TIMESTAMP('2013-07-06 17:50:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=119
;
-- Jul 6, 2013 5:51:01 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_TIMESTAMP('2013-07-06 17:51:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50009
;
-- Jul 6, 2013 5:51:11 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_TIMESTAMP('2013-07-06 17:51:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50011
;
-- Jul 6, 2013 5:51:31 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_TIMESTAMP('2013-07-06 17:51:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50008
;
-- Jul 6, 2013 5:51:39 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_TIMESTAMP('2013-07-06 17:51:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50013
;
-- Jul 6, 2013 5:52:09 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_TIMESTAMP('2013-07-06 17:52:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50002
;
-- Jul 6, 2013 5:52:16 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_TIMESTAMP('2013-07-06 17:52:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50005
;
-- Jul 6, 2013 5:52:28 PM COT
UPDATE AD_Workflow SET IsValid='N', IsActive='N',Updated=TO_TIMESTAMP('2013-07-06 17:52:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50007
;
-- Jul 6, 2013 5:52:36 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_TIMESTAMP('2013-07-06 17:52:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50010
;
-- Jul 6, 2013 5:52:41 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_TIMESTAMP('2013-07-06 17:52:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50006
;
-- Jul 6, 2013 5:53:07 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_TIMESTAMP('2013-07-06 17:53:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50000
;
-- Jul 6, 2013 5:53:11 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_TIMESTAMP('2013-07-06 17:53:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50001
;
-- Jul 6, 2013 5:53:14 PM COT
UPDATE AD_Workflow SET IsValid='Y', IsActive='N',Updated=TO_TIMESTAMP('2013-07-06 17:53:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50004
;
-- Jul 6, 2013 5:53:27 PM COT
UPDATE AD_Workflow SET IsValid='N', IsActive='N',Updated=TO_TIMESTAMP('2013-07-06 17:53:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50003
;
SELECT register_migration_script('20130407174015_IDEMPIERE-632.sql') FROM dual
;

View File

@ -0,0 +1,53 @@
-- Jun 25, 2013 6:30:15 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2013-06-25 18:30:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201369
;
-- Jun 25, 2013 6:30:56 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=201366
;
-- Jun 25, 2013 6:30:56 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=201369
;
-- Jun 25, 2013 6:30:56 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=201895
;
-- Jun 25, 2013 6:30:56 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=56664
;
-- Jun 25, 2013 6:30:56 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=201367
;
-- Jun 25, 2013 6:30:56 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=201365
;
-- Jun 25, 2013 6:30:56 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=201368
;
-- Jun 25, 2013 6:48:01 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET DisplayLogic='@IsIdentifier@=''Y" & @AD_Column_ID@!0',Updated=TO_TIMESTAMP('2013-06-25 18:48:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201365
;
-- Jun 25, 2013 6:48:57 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET DisplayLogic='@IsIdentifier@=''Y" & @AD_Column_ID@!0',Updated=TO_TIMESTAMP('2013-06-25 18:48:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201368
;
SELECT register_migration_script('201306261433_IDEMPIERE-1164.sql') FROM dual
;

View File

@ -0,0 +1,192 @@
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=56666
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=201366
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=201367
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=201369
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=201368
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=56665
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=56664
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=201365
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=201895
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=56669
;
-- Jul 2, 2013 7:02:39 PM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=56667
;
-- Jul 3, 2013 10:40:30 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56663
;
-- Jul 3, 2013 10:40:30 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56659
;
-- Jul 3, 2013 10:40:30 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56657
;
-- Jul 3, 2013 10:40:30 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=56660
;
-- Jul 3, 2013 10:40:30 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=56661
;
-- Jul 3, 2013 10:40:30 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=56658
;
-- Jul 3, 2013 10:40:30 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=56662
;
-- Jul 3, 2013 10:40:30 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=56656
;
-- Jul 3, 2013 10:50:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56669
;
-- Jul 3, 2013 10:50:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56665
;
-- Jul 3, 2013 10:50:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56667
;
-- Jul 3, 2013 10:50:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=201895
;
-- Jul 3, 2013 10:50:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=201365
;
-- Jul 3, 2013 10:50:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=56664
;
-- Jul 3, 2013 10:57:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56675
;
-- Jul 3, 2013 10:57:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56673
;
-- Jul 3, 2013 10:57:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56671
;
-- Jul 3, 2013 10:57:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=56672
;
-- Jul 3, 2013 10:57:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=56674
;
-- Jul 3, 2013 10:57:40 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=56670
;
-- Jul 3, 2013 10:58:28 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56681
;
-- Jul 3, 2013 10:58:28 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56677
;
-- Jul 3, 2013 10:58:28 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56678
;
-- Jul 3, 2013 10:58:28 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=56680
;
-- Jul 3, 2013 10:58:28 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=56679
;
-- Jul 3, 2013 10:58:28 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=56676
;
-- Jul 10, 2013 11:33:41 AM IST
-- Changes in the layout of Web Service Security window
UPDATE AD_Field SET DisplayLogic='@WS_WebService_ID@ !200001',Updated=TO_TIMESTAMP('2013-07-10 11:33:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56652
;
SELECT register_migration_script('201307031130_IDEMPIERE-1164.sql') FROM dual
;

View File

@ -0,0 +1,8 @@
-- Jul 11, 2013 2:11:52 PM MYT
-- IDEMPIERE-1163 Web service role access control not working
UPDATE AD_Field SET IsDisplayed='N', IsDisplayedGrid='N',Updated=TO_TIMESTAMP('2013-07-11 14:11:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56679
;
SELECT register_migration_script('201307110629_IDEMPIERE-1163.sql') FROM dual
;

View File

@ -0,0 +1,137 @@
-- Jul 11, 2013 3:47:37 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET DisplayLogic='@AD_Reference_ID@=18 | @AD_Reference_ID@=30',Updated=TO_TIMESTAMP('2013-07-11 15:47:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201895
;
-- Jul 11, 2013 3:53:23 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2013-07-11 15:53:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56629
;
-- Jul 11, 2013 3:53:28 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET XPosition=4,Updated=TO_TIMESTAMP('2013-07-11 15:53:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56629
;
-- Jul 11, 2013 3:53:49 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET XPosition=1,Updated=TO_TIMESTAMP('2013-07-11 15:53:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56629
;
-- Jul 11, 2013 3:53:57 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=2, XPosition=4,Updated=TO_TIMESTAMP('2013-07-11 15:53:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56633
;
-- Jul 11, 2013 3:54:09 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2013-07-11 15:54:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56634
;
-- Jul 11, 2013 3:54:15 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=5,Updated=TO_TIMESTAMP('2013-07-11 15:54:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56632
;
-- Jul 11, 2013 3:54:22 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=5,Updated=TO_TIMESTAMP('2013-07-11 15:54:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56631
;
-- Jul 11, 2013 3:54:31 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=5, NumLines=3,Updated=TO_TIMESTAMP('2013-07-11 15:54:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56630
;
-- Jul 11, 2013 3:54:37 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET XPosition=2,Updated=TO_TIMESTAMP('2013-07-11 15:54:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56628
;
-- Jul 11, 2013 4:00:47 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56643
;
-- Jul 11, 2013 4:00:47 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56644
;
-- Jul 11, 2013 4:00:47 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56641
;
-- Jul 11, 2013 4:00:47 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=56637
;
-- Jul 11, 2013 4:00:47 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=56640
;
-- Jul 11, 2013 4:00:47 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=56642
;
-- Jul 11, 2013 4:00:47 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=56639
;
-- Jul 11, 2013 4:00:47 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=56638
;
-- Jul 11, 2013 4:00:47 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=56636
;
-- Jul 11, 2013 4:01:05 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2013-07-11 16:01:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56637
;
-- Jul 11, 2013 4:01:14 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=2, XPosition=4,Updated=TO_TIMESTAMP('2013-07-11 16:01:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56641
;
-- Jul 11, 2013 4:01:21 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2013-07-11 16:01:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56643
;
-- Jul 11, 2013 4:01:28 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=2,Updated=TO_TIMESTAMP('2013-07-11 16:01:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56642
;
-- Jul 11, 2013 4:01:35 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=5,Updated=TO_TIMESTAMP('2013-07-11 16:01:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56640
;
-- Jul 11, 2013 4:01:45 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=5,Updated=TO_TIMESTAMP('2013-07-11 16:01:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56639
;
-- Jul 11, 2013 4:01:52 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET ColumnSpan=5, NumLines=3,Updated=TO_TIMESTAMP('2013-07-11 16:01:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56638
;
-- Jul 11, 2013 4:02:09 PM IST
-- Improve window layout of webservices
UPDATE AD_Field SET XPosition=2,Updated=TO_TIMESTAMP('2013-07-11 16:02:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56636
;
SELECT register_migration_script('201307111604_IDEMPIERE-1164.sql') FROM dual
;

View File

@ -681,18 +681,32 @@ public class MColumn extends X_AD_Column
public String getReferenceTableName() { public String getReferenceTableName() {
String foreignTable = null; String foreignTable = null;
if (DisplayType.TableDir == getAD_Reference_ID() int refid = getAD_Reference_ID();
|| (DisplayType.Search == getAD_Reference_ID() && getAD_Reference_Value_ID() == 0)) { if (DisplayType.TableDir == refid || (DisplayType.Search == refid && getAD_Reference_Value_ID() == 0)) {
foreignTable = getColumnName().substring(0, getColumnName().length()-3); foreignTable = getColumnName().substring(0, getColumnName().length()-3);
} else if (DisplayType.Table == getAD_Reference_ID() || DisplayType.Search == getAD_Reference_ID()) { } else if (DisplayType.Table == refid || DisplayType.Search == refid) {
X_AD_Reference ref = new X_AD_Reference(getCtx(), getAD_Reference_Value_ID(), get_TrxName()); X_AD_Reference ref = new X_AD_Reference(getCtx(), getAD_Reference_Value_ID(), get_TrxName());
if (X_AD_Reference.VALIDATIONTYPE_TableValidation.equals(ref.getValidationType())) { if (X_AD_Reference.VALIDATIONTYPE_TableValidation.equals(ref.getValidationType())) {
MRefTable rt = new MRefTable(getCtx(), getAD_Reference_Value_ID(), get_TrxName()); MRefTable rt = new MRefTable(getCtx(), getAD_Reference_Value_ID(), get_TrxName());
if (rt != null) if (rt != null)
foreignTable = rt.getAD_Table().getTableName(); foreignTable = rt.getAD_Table().getTableName();
} }
} else if (DisplayType.List == getAD_Reference_ID()) { } else if (DisplayType.List == refid || DisplayType.Payment == refid) {
foreignTable = "AD_Ref_List"; foreignTable = "AD_Ref_List";
} else if (DisplayType.Location == refid) {
foreignTable = "C_Location";
} else if (DisplayType.Account == refid) {
foreignTable = "C_ValidCombination";
} else if (DisplayType.Locator == refid) {
foreignTable = "M_Locator";
} else if (DisplayType.PAttribute == refid) {
foreignTable = "M_AttributeSetInstance";
} else if (DisplayType.Assignment == refid) {
foreignTable = "S_ResourceAssignment";
} else if (DisplayType.Image == refid) {
foreignTable = "AD_Image";
} else if (DisplayType.Color == refid) {
foreignTable = "AD_Color";
} }
return foreignTable; return foreignTable;

View File

@ -323,8 +323,12 @@ public class MProcess extends X_AD_Process
private boolean startClass (ProcessInfo pi, Trx trx, boolean managedTrx) private boolean startClass (ProcessInfo pi, Trx trx, boolean managedTrx)
{ {
if (log.isLoggable(Level.INFO)) log.info(pi.getClassName()); if (log.isLoggable(Level.INFO)) log.info(pi.getClassName());
return ProcessUtil.startJavaProcess(getCtx(), pi, trx, managedTrx); if (pi.getClassName().toLowerCase().startsWith(MRule.SCRIPT_PREFIX)) {
return ProcessUtil.startScriptProcess(getCtx(), pi, trx);
} else {
return ProcessUtil.startJavaProcess(getCtx(), pi, trx, managedTrx);
}
} // startClass } // startClass

View File

@ -41,6 +41,7 @@ import org.compiere.acct.Fact;
import org.compiere.util.CLogger; import org.compiere.util.CLogger;
import org.compiere.util.Env; import org.compiere.util.Env;
import org.compiere.util.KeyNamePair; import org.compiere.util.KeyNamePair;
import org.compiere.util.Util;
import org.osgi.service.event.Event; import org.osgi.service.event.Event;
/** /**
@ -79,7 +80,7 @@ public class ModelValidationEngine
/** Engine Singleton */ /** Engine Singleton */
private static ModelValidationEngine s_engine = null; private static ModelValidationEngine s_engine = null;
/* flag to indicate a missing model validation class */ /* flag to indicate a missing model validation class */
private static String missingModelValidationMessage = null; private static String missingModelValidationMessage = "";
/************************************************************************** /**************************************************************************
@ -159,7 +160,7 @@ public class ModelValidationEngine
if (validator == null) if (validator == null)
{ {
missingModelValidationMessage = missingModelValidationMessage + missingModelValidationMessage = missingModelValidationMessage + " Missing class " + className +
(client != null ? (" on client " + client.getName()) : " global") + '\n'; (client != null ? (" on client " + client.getName()) : " global") + '\n';
} }
else else
@ -273,7 +274,7 @@ public class ModelValidationEngine
if (AD_User_ID == 0 && AD_Role_ID == 0) if (AD_User_ID == 0 && AD_Role_ID == 0)
; // don't validate for user system on role system ; // don't validate for user system on role system
else else
if (missingModelValidationMessage != null) { if (! Util.isEmpty(missingModelValidationMessage)) {
MSystem system = MSystem.get(Env.getCtx()); MSystem system = MSystem.get(Env.getCtx());
if (system.isFailOnMissingModelValidator()) if (system.isFailOnMissingModelValidator())
return missingModelValidationMessage; return missingModelValidationMessage;

View File

@ -40,11 +40,11 @@ public class BankTransfer extends SvrProcess
private String p_DocumentNo= ""; // Document No private String p_DocumentNo= ""; // Document No
private String p_Description= ""; // Description private String p_Description= ""; // Description
private int p_C_BPartner_ID = 0; // Business Partner to be used as bridge private int p_C_BPartner_ID = 0; // Business Partner to be used as bridge
private int p_C_Currency_ID = 0; // Payment Currency private int p_C_Currency_ID = 0; // Payment Currency
private int p_C_ConversionType_ID = 0; // Payment Conversion Type private int p_C_ConversionType_ID = 0; // Payment Conversion Type
private int p_C_Charge_ID = 0; // Charge to be used as bridge private int p_C_Charge_ID = 0; // Charge to be used as bridge
private BigDecimal p_Amount = Env.ZERO; // Amount to be transfered between the accounts private BigDecimal p_Amount = Env.ZERO; // Amount to be transfered between the accounts
private int p_From_C_BankAccount_ID = 0; // Bank Account From private int p_From_C_BankAccount_ID = 0; // Bank Account From
private int p_To_C_BankAccount_ID= 0; // Bank Account To private int p_To_C_BankAccount_ID= 0; // Bank Account To
private Timestamp p_StatementDate = null; // Date Statement private Timestamp p_StatementDate = null; // Date Statement
@ -153,7 +153,7 @@ public class BankTransfer extends SvrProcess
paymentBankFrom.setC_BPartner_ID (p_C_BPartner_ID); paymentBankFrom.setC_BPartner_ID (p_C_BPartner_ID);
paymentBankFrom.setC_Currency_ID(p_C_Currency_ID); paymentBankFrom.setC_Currency_ID(p_C_Currency_ID);
if (p_C_ConversionType_ID > 0) if (p_C_ConversionType_ID > 0)
paymentBankFrom.setC_ConversionType_ID(p_C_ConversionType_ID); paymentBankFrom.setC_ConversionType_ID(p_C_ConversionType_ID);
paymentBankFrom.setPayAmt(p_Amount); paymentBankFrom.setPayAmt(p_Amount);
paymentBankFrom.setOverUnderAmt(Env.ZERO); paymentBankFrom.setOverUnderAmt(Env.ZERO);
paymentBankFrom.setC_DocType_ID(false); paymentBankFrom.setC_DocType_ID(false);
@ -164,7 +164,11 @@ public class BankTransfer extends SvrProcess
throw new IllegalStateException("Payment Process Failed: " + paymentBankFrom + " - " + paymentBankFrom.getProcessMsg()); throw new IllegalStateException("Payment Process Failed: " + paymentBankFrom + " - " + paymentBankFrom.getProcessMsg());
} }
paymentBankFrom.saveEx(); paymentBankFrom.saveEx();
addLog(paymentBankFrom.getC_Payment_ID(), paymentBankFrom.getDateTrx(),
null, paymentBankFrom.getC_DocType().getName() + " " + paymentBankFrom.getDocumentNo(),
MPayment.Table_ID, paymentBankFrom.getC_Payment_ID());
m_created++;
MPayment paymentBankTo = new MPayment(getCtx(), 0 , get_TrxName()); MPayment paymentBankTo = new MPayment(getCtx(), 0 , get_TrxName());
paymentBankTo.setC_BankAccount_ID(mBankTo.getC_BankAccount_ID()); paymentBankTo.setC_BankAccount_ID(mBankTo.getC_BankAccount_ID());
paymentBankTo.setDocumentNo(p_DocumentNo); paymentBankTo.setDocumentNo(p_DocumentNo);
@ -186,6 +190,9 @@ public class BankTransfer extends SvrProcess
throw new IllegalStateException("Payment Process Failed: " + paymentBankTo + " - " + paymentBankTo.getProcessMsg()); throw new IllegalStateException("Payment Process Failed: " + paymentBankTo + " - " + paymentBankTo.getProcessMsg());
} }
paymentBankTo.saveEx(); paymentBankTo.saveEx();
addLog(paymentBankTo.getC_Payment_ID(), paymentBankTo.getDateTrx(),
null, paymentBankTo.getC_DocType().getName() + " " + paymentBankTo.getDocumentNo(),
MPayment.Table_ID, paymentBankTo.getC_Payment_ID());
m_created++; m_created++;
return; return;

View File

@ -368,7 +368,7 @@ public abstract class AbstractElementHandler implements ElementHandler {
*/ */
protected boolean isProcessElement(Properties ctx, String entityType) { protected boolean isProcessElement(Properties ctx, String entityType) {
if ("D".equals(entityType) || "C".equals(entityType)) { if ("D".equals(entityType) || "C".equals(entityType)) {
return "true".equalsIgnoreCase(getUpdateMode(ctx)); return "Y".equalsIgnoreCase(getUpdateMode(ctx));
} else { } else {
return true; return true;
} }
@ -578,7 +578,10 @@ public abstract class AbstractElementHandler implements ElementHandler {
protected boolean hasUUIDKey(PIPOContext ctx, Element element) { protected boolean hasUUIDKey(PIPOContext ctx, Element element) {
String tableName = element.getElementValue(); String tableName = element.getElementValue();
String uuidColumn = PO.getUUIDColumnName(tableName); String uuidColumn = PO.getUUIDColumnName(tableName);
String uuid = element.properties.get(uuidColumn).contents.toString(); String uuid = null;
if (element.properties.containsKey(uuidColumn)) {
uuid = element.properties.get(uuidColumn).contents.toString();
}
return (uuid != null && uuid.trim().length() == 36); return (uuid != null && uuid.trim().length() == 36);
} }

View File

@ -191,9 +191,9 @@ public class PackInHandler extends DefaultHandler {
packageInst.saveEx(); packageInst.saveEx();
} }
m_ctx.ctx.put("AD_Package_Imp_ID", String.valueOf(AD_Package_Imp_ID)); Env.setContext(m_ctx.ctx, "AD_Package_Imp_ID", String.valueOf(AD_Package_Imp_ID));
m_ctx.ctx.put("UpdateMode", m_updateDictionary); Env.setContext(m_ctx.ctx, "UpdateMode", m_updateDictionary);
m_ctx.ctx.put("PackageDirectory", packageDirectory); Env.setContext(m_ctx.ctx, "PackageDirectory", packageDirectory);
m_ctx.packIn = packIn; m_ctx.packIn = packIn;
} else { } else {
Element e = new Element(uri, localName, qName, new AttributesImpl(atts)); Element e = new Element(uri, localName, qName, new AttributesImpl(atts));

View File

@ -88,13 +88,14 @@ public class AdempiereIdGenerator implements IdGenerator {
} }
String number; String number;
if ((number = (String)desktop.getAttribute("Id_Num")) == null) { IdSpace idspace = comp.getSpaceOwner();
if ((number = (String)idspace.getAttribute("uid.sequence")) == null) {
number = "0"; number = "0";
desktop.setAttribute("Id_Num", number); idspace.setAttribute("uid.sequence", number);
} }
int i = Integer.parseInt(number); int i = Integer.parseInt(number);
i++;// Start from 1 i++;// Start from 1
desktop.setAttribute("Id_Num", String.valueOf(i)); idspace.setAttribute("uid.sequence", String.valueOf(i));
return uuid + "_" + i; return uuid + "_" + i;
} }

View File

@ -92,11 +92,17 @@ public class WFEditor extends ADForm {
Borderlayout layout = new Borderlayout(); Borderlayout layout = new Borderlayout();
layout.setStyle("width: 100%; height: 100%; position: absolute;"); layout.setStyle("width: 100%; height: 100%; position: absolute;");
appendChild(layout); appendChild(layout);
String sql;
String sql = MRole.getDefault().addAccessSQL( boolean isBaseLanguage = Env.isBaseLanguage(Env.getCtx(), "AD_Workflow");
"SELECT AD_Workflow_ID, Name FROM AD_Workflow ORDER BY 2", if (isBaseLanguage)
sql = MRole.getDefault().addAccessSQL(
"SELECT AD_Workflow_ID, Name FROM AD_Workflow WHERE IsActive='Y' ORDER BY 2",
"AD_Workflow", MRole.SQL_NOTQUALIFIED, MRole.SQL_RO); // all "AD_Workflow", MRole.SQL_NOTQUALIFIED, MRole.SQL_RO); // all
KeyNamePair[] pp = DB.getKeyNamePairs(sql, true); else
sql = MRole.getDefault().addAccessSQL(
"SELECT AD_Workflow.AD_Workflow_ID, AD_Workflow_Trl.Name FROM AD_Workflow INNER JOIN AD_Workflow_Trl ON (AD_Workflow.AD_Workflow_ID=AD_Workflow_Trl.AD_Workflow_ID) "
+ " WHERE AD_Workflow.IsActive='Y' AND AD_Workflow_Trl.AD_Language='"+Env.getAD_Language(Env.getCtx())+"' ORDER BY 2","AD_Workflow", MRole.SQL_FULLYQUALIFIED, MRole.SQL_RO); // all
KeyNamePair[] pp = DB.getKeyNamePairs(sql, true);
workflowList = ListboxFactory.newDropdownListbox(); workflowList = ListboxFactory.newDropdownListbox();
for (KeyNamePair knp : pp) { for (KeyNamePair knp : pp) {
@ -378,7 +384,7 @@ public class WFEditor extends ADForm {
addMenuItem(popupMenu, Msg.getMsg(Env.getCtx(), "Properties"), node, WFPopupItem.WFPOPUPITEM_PROPERTIES); addMenuItem(popupMenu, Msg.getMsg(Env.getCtx(), "Properties"), node, WFPopupItem.WFPOPUPITEM_PROPERTIES);
// Delete node // Delete node
String title = Msg.getMsg(Env.getCtx(), "DeleteNode") + String title = Msg.getMsg(Env.getCtx(), "DeleteNode") +
": " + node.getName(); ": " + node.getName(true);
addMenuItem(popupMenu, title, node, WFPopupItem.WFPOPUPITEM_DELETENODE); addMenuItem(popupMenu, title, node, WFPopupItem.WFPOPUPITEM_DELETENODE);
} }
MWFNode[] nodes = m_wf.getNodes(true, Env.getAD_Client_ID(Env.getCtx())); MWFNode[] nodes = m_wf.getNodes(true, Env.getAD_Client_ID(Env.getCtx()));
@ -412,7 +418,7 @@ public class WFEditor extends ADForm {
if (!found) if (!found)
{ {
String title = Msg.getMsg(Env.getCtx(), "AddLine") String title = Msg.getMsg(Env.getCtx(), "AddLine")
+ ": " + node.getName() + " -> " + nn.getName(); + ": " + node.getName(true) + " -> " + nn.getName(true);
addMenuItem(popupMenu, title, node, nn.getAD_WF_Node_ID()); addMenuItem(popupMenu, title, node, nn.getAD_WF_Node_ID());
} }
} }
@ -423,7 +429,7 @@ public class WFEditor extends ADForm {
continue; continue;
MWFNode next = MWFNode.get(Env.getCtx(), line.getAD_WF_Next_ID()); MWFNode next = MWFNode.get(Env.getCtx(), line.getAD_WF_Next_ID());
String title = Msg.getMsg(Env.getCtx(), "DeleteLine") String title = Msg.getMsg(Env.getCtx(), "DeleteLine")
+ ": " + node.getName() + " -> " + next.getName(); + ": " + node.getName(true) + " -> " + next.getName(true);
addMenuItem(popupMenu, title, line); addMenuItem(popupMenu, title, line);
} }
popupMenu.setPage(target.getPage()); popupMenu.setPage(target.getPage());

View File

@ -389,6 +389,7 @@ public class WAttachment extends Window implements EventListener<Event>
{ {
bSave.setEnabled(false); bSave.setEnabled(false);
bDelete.setEnabled(false); bDelete.setEnabled(false);
sizeLabel.setText("");
return false; return false;
} }
} }
@ -453,7 +454,7 @@ public class WAttachment extends Window implements EventListener<Event>
{ {
String fileName = null; String fileName = null;
if (cbContent.getItemCount() > index) if (index>=0 && cbContent.getItemCount() > index)
{ {
ListItem listitem = cbContent.getItemAtIndex(index); ListItem listitem = cbContent.getItemAtIndex(index);
fileName = (String)listitem.getValue(); fileName = (String)listitem.getValue();
@ -663,8 +664,11 @@ public class WAttachment extends Window implements EventListener<Event>
{ {
if (result) if (result)
{ {
if (m_attachment.deleteEntry(index)) if (m_attachment.deleteEntry(index)) {
cbContent.removeItemAt(index); cbContent.removeItemAt(index);
clearPreview();
autoPreview (cbContent.getSelectedIndex(), true);
}
m_change = true; m_change = true;
} }

View File

@ -276,6 +276,9 @@ public final class WAccountDialog extends Window
GridWindowVO wVO = AEnv.getMWindowVO (m_WindowNo, AD_Window_ID, 0); GridWindowVO wVO = AEnv.getMWindowVO (m_WindowNo, AD_Window_ID, 0);
if (wVO == null) if (wVO == null)
return false; return false;
// Force window/tab to be read-only
wVO.WindowType = GridWindowVO.WINDOWTYPE_QUERY;
wVO.Tabs.get(0).IsReadOnly = true;
m_mWindow = new GridWindow (wVO); m_mWindow = new GridWindow (wVO);
m_mTab = m_mWindow.getTab(0); m_mTab = m_mWindow.getTab(0);
// Make sure is the tab is loaded - teo_sarca [ 1659124 ] // Make sure is the tab is loaded - teo_sarca [ 1659124 ]

View File

@ -10,7 +10,8 @@
import org.compiere.util.Env; import org.compiere.util.Env;
Env.setContext(Env.getCtx(), "#ZK_Toolbar_Button_Size", "24"); Env.setContext(Env.getCtx(), "#ZK_Toolbar_Button_Size", "24");
Env.setContext(Env.getCtx(), "#ZK_BROWSER_TITLE", "iDempiere"); /* Set the next variable if you want to control browser title in theme */
/* Env.setContext(Env.getCtx(), "#ZK_BROWSER_TITLE", "iDempiere"); */
]]> ]]>
</zscript> </zscript>
</zk> </zk>

View File

@ -76,7 +76,7 @@ public class WFNodeWidget extends Widget {
} }
if (image != null) { if (image != null) {
imageWidget = new ImageWidget(scene, image); imageWidget = new ImageWidget(scene, image);
imageWidget.setToolTipText(node.getName()); imageWidget.setToolTipText(node.getName(true));
addChild(imageWidget); addChild(imageWidget);
} }
} }
@ -97,7 +97,7 @@ public class WFNodeWidget extends Widget {
titleWidget.addChild (titleIcon); titleWidget.addChild (titleIcon);
} }
String titleText = node.getName(); String titleText = node.getName(true);
if (titleText.length() > 20) if (titleText.length() > 20)
titleText = titleText.substring(0, 20) + "..."; titleText = titleText.substring(0, 20) + "...";
LabelWidget titleTextWidget = new LabelWidget (scene, titleText); LabelWidget titleTextWidget = new LabelWidget (scene, titleText);

View File

@ -66,7 +66,7 @@ public class AssertRecord extends TableFixture {
MTable table = null; MTable table = null;
POInfo poinfo = null; POInfo poinfo = null;
boolean alreadyread = false; boolean alreadyread = false;
StringBuilder whereclause = new StringBuilder(""); StringBuilder whereclause = new StringBuilder();
boolean isErrorExpected = false; boolean isErrorExpected = false;
for (int i = 0; i < rows; i++) { for (int i = 0; i < rows; i++) {
String cell_title = getText(i, 0); String cell_title = getText(i, 0);
@ -104,6 +104,8 @@ public class AssertRecord extends TableFixture {
wrong(i, 1); wrong(i, 1);
return; return;
} }
whereclause.insert(0, "(");
whereclause.append(") AND AD_Client_ID IN (0,").append(Env.getAD_Client_ID(ctx)).append(")");
String sql = "SELECT * FROM " + tableName + " WHERE " + whereclause; String sql = "SELECT * FROM " + tableName + " WHERE " + whereclause;
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
ResultSet rs = null; ResultSet rs = null;
@ -166,28 +168,34 @@ public class AssertRecord extends TableFixture {
if (! alreadyread) { if (! alreadyread) {
// not read yet - add value to where clause // not read yet - add value to where clause
String value_evaluated = Util.evaluate(ctx, windowNo, cell_value, getCell(i, 1)); String value_evaluated = Util.evaluate(ctx, windowNo, cell_value, getCell(i, 1));
if (whereclause.length() > 0) if (whereclause.length() > 0) {
whereclause.append(" AND "); whereclause.insert(0, "(");
whereclause.append(") AND ");
}
whereclause.append(cell_title).append("=").append(value_evaluated); whereclause.append(cell_title).append("=").append(value_evaluated);
} else { } else {
// already read, compare the value of db with the context variable or formula // already read, compare the value of db with the context variable or formula
String title_evaluated = ""; String title_evaluated = "";
if (gpo != null) { if (gpo != null) {
Object result = gpo.get_Value(cell_title); if (poinfo.getColumnIndex(cell_title) < 0) {
if (result != null) { wrong(i, 0);
getCell(i, 0).addToBody("<hr/>" + result.toString());
title_evaluated = result.toString();
}
String value_evaluated = cell_value;
if (cell_value.startsWith("@")) {
value_evaluated = Util.evaluate(ctx, windowNo,cell_value, getCell(i, 1));
}
if (title_evaluated.equals(value_evaluated)) {
right(i, 1);
} else { } else {
wrong(i, 1); Object result = gpo.get_Value(cell_title);
if (result != null) {
getCell(i, 0).addToBody("<hr/>" + result.toString());
title_evaluated = result.toString();
}
String value_evaluated = cell_value;
if (cell_value.startsWith("@")) {
value_evaluated = Util.evaluate(ctx, windowNo,cell_value, getCell(i, 1));
}
if (title_evaluated.equals(value_evaluated)) {
right(i, 1);
} else {
wrong(i, 1);
}
} }
} }
} }

View File

@ -30,9 +30,12 @@ import java.math.BigDecimal;
import java.sql.Timestamp; import java.sql.Timestamp;
import java.util.Properties; import java.util.Properties;
import org.compiere.model.MColumn;
import org.compiere.model.MTable; import org.compiere.model.MTable;
import org.compiere.model.PO; import org.compiere.model.PO;
import org.compiere.model.POInfo; import org.compiere.model.POInfo;
import org.compiere.util.DB;
import org.compiere.util.DisplayType;
import org.compiere.util.Env; import org.compiere.util.Env;
import org.compiere.util.ValueNamePair; import org.compiere.util.ValueNamePair;
@ -65,6 +68,7 @@ public class CreateRecord extends TableFixture {
boolean tableOK = false; boolean tableOK = false;
boolean columnsOK = true; boolean columnsOK = true;
boolean isErrorExpected = "*Save*Error*".equalsIgnoreCase(getText(rows-1, 0)); boolean isErrorExpected = "*Save*Error*".equalsIgnoreCase(getText(rows-1, 0));
String msgerror1 = getText(rows-1, 1);
MTable table = null; MTable table = null;
POInfo poinfo = null; POInfo poinfo = null;
@ -145,7 +149,7 @@ public class CreateRecord extends TableFixture {
columnName = cell_title; columnName = cell_title;
int idxcol = gpo.get_ColumnIndex(columnName); int idxcol = gpo.get_ColumnIndex(columnName);
if (idxcol < 0) { if (idxcol < 0) {
wrong(i,1); wrong(i,0);
// column does not exist in dictionary - anyways try custom column in case it exists in table // column does not exist in dictionary - anyways try custom column in case it exists in table
gpo.set_CustomColumnReturningBoolean(columnName, cell_value); gpo.set_CustomColumnReturningBoolean(columnName, cell_value);
} else { } else {
@ -153,8 +157,16 @@ public class CreateRecord extends TableFixture {
String value_evaluated = Util.evaluate(ctx, windowNo, cell_value, getCell(i, 1)); String value_evaluated = Util.evaluate(ctx, windowNo, cell_value, getCell(i, 1));
// set value according to class // set value according to class
Object value = null; Object value = null;
if (value_evaluated == null || value_evaluated.length() == 0) { if (org.compiere.util.Util.isEmpty(cell_value)) {
value = null; value = null;
} else if (org.compiere.util.Util.isEmpty(value_evaluated)) {
boolean ok = Util.evaluateError("Data not found",msgerror1,isErrorExpected);
if (ok)
right(i,1);
else
wrong(i,1);
columnsOK = false;
continue;
} else if (columnClass == Boolean.class) { } else if (columnClass == Boolean.class) {
if ("Y".equalsIgnoreCase(value_evaluated) || "true".equalsIgnoreCase(value_evaluated)) if ("Y".equalsIgnoreCase(value_evaluated) || "true".equalsIgnoreCase(value_evaluated))
value = new Boolean(true); value = new Boolean(true);
@ -166,7 +178,27 @@ public class CreateRecord extends TableFixture {
} }
} else if (columnClass == Integer.class) { } else if (columnClass == Integer.class) {
try { try {
value = Integer.parseInt(value_evaluated); Integer intid = Integer.parseInt(value_evaluated);
MColumn column = table.getColumn(cell_title);
if (intid > 0 && (DisplayType.isID(column.getAD_Reference_ID()) || column.getAD_Reference_ID() != DisplayType.ID)) {
// Evaluate the ID is from the actual client or system
String foreignTable = column.getReferenceTableName();
if (foreignTable != null) {
int foreignClient = DB.getSQLValueEx(null,
"SELECT AD_Client_ID FROM " + foreignTable + " WHERE " + foreignTable + "_ID=?",
intid);
if (foreignClient != 0 && foreignClient != Env.getAD_Client_ID(ctx)) {
boolean ok = Util.evaluateError("Data not found", msgerror1, isErrorExpected);
if (ok)
right(i, 1);
else
wrong(i, 1);
columnsOK = false;
continue;
}
}
}
value = intid;
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
exception(getCell(i, 1), e); exception(getCell(i, 1), e);
continue; continue;

View File

@ -30,6 +30,7 @@ import java.util.Properties;
import org.compiere.model.MTable; import org.compiere.model.MTable;
import org.compiere.model.PO; import org.compiere.model.PO;
import org.compiere.util.DB; import org.compiere.util.DB;
import org.compiere.util.Env;
import fitnesse.fixtures.TableFixture; import fitnesse.fixtures.TableFixture;
@ -65,7 +66,7 @@ public class DeleteRecord extends TableFixture {
MTable table = null; MTable table = null;
boolean alreadyread = false; boolean alreadyread = false;
StringBuilder whereclause = new StringBuilder(""); StringBuilder whereclause = new StringBuilder();
boolean isErrorExpected = false; boolean isErrorExpected = false;
String msgerror = null; String msgerror = null;
@ -105,6 +106,8 @@ public class DeleteRecord extends TableFixture {
wrong(i, 1); wrong(i, 1);
return; return;
} }
whereclause.insert(0, "(");
whereclause = whereclause.append(") AND AD_Client_ID=").append(Env.getAD_Client_ID(ctx));
String sql = "SELECT * FROM " + tableName + " WHERE "+ whereclause; String sql = "SELECT * FROM " + tableName + " WHERE "+ whereclause;
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
ResultSet rs = null; ResultSet rs = null;
@ -159,8 +162,10 @@ public class DeleteRecord extends TableFixture {
String value_evaluated = Util.evaluate(ctx, windowNo,cell_value, getCell(i, 1)); String value_evaluated = Util.evaluate(ctx, windowNo,cell_value, getCell(i, 1));
if (!alreadyread) { if (!alreadyread) {
// not read yet - add value to where clause // not read yet - add value to where clause
if (whereclause.length() > 0) if (whereclause.length() > 0) {
whereclause.append(" AND "); whereclause.insert(0, "(");
whereclause.append(") AND ");
}
whereclause.append(cell_title).append("=").append(value_evaluated); whereclause.append(cell_title).append("=").append(value_evaluated);
} }
} }

View File

@ -66,7 +66,7 @@ public class ReadRecord extends TableFixture {
MTable table = null; MTable table = null;
POInfo poinfo = null; POInfo poinfo = null;
boolean alreadyread = false; boolean alreadyread = false;
String whereclause = new String(""); StringBuilder whereclause = new StringBuilder();
boolean isErrorExpected = false; boolean isErrorExpected = false;
for (int i = 0; i < rows; i++) { for (int i = 0; i < rows; i++) {
String cell_title = getText(i, 0); String cell_title = getText(i, 0);
@ -90,7 +90,7 @@ public class ReadRecord extends TableFixture {
exception(getCell(i, 1), new Exception("*Where* must be defined in second row")); exception(getCell(i, 1), new Exception("*Where* must be defined in second row"));
return; return;
} }
whereclause = cell_value; whereclause.append(cell_value);
} else if (cell_title.equalsIgnoreCase("*Read*") || cell_title.equalsIgnoreCase("*Read*Error*")) { } else if (cell_title.equalsIgnoreCase("*Read*") || cell_title.equalsIgnoreCase("*Read*Error*")) {
if (! tableOK) { if (! tableOK) {
getCell(i, 1).addToBody("Table " + tableName + " does not exist"); getCell(i, 1).addToBody("Table " + tableName + " does not exist");
@ -103,6 +103,8 @@ public class ReadRecord extends TableFixture {
wrong(i, 1); wrong(i, 1);
return; return;
} }
whereclause.insert(0, "(");
whereclause.append(") AND AD_Client_ID IN (0,").append(Env.getAD_Client_ID(ctx)).append(")");
String sql = "SELECT * FROM " + tableName + " WHERE " + whereclause; String sql = "SELECT * FROM " + tableName + " WHERE " + whereclause;
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
ResultSet rs = null; ResultSet rs = null;
@ -170,15 +172,21 @@ public class ReadRecord extends TableFixture {
if (! alreadyread) { if (! alreadyread) {
// not read yet - add value to where clause // not read yet - add value to where clause
String value_evaluated = Util.evaluate(ctx, windowNo, cell_value, getCell(i, 1)); String value_evaluated = Util.evaluate(ctx, windowNo, cell_value, getCell(i, 1));
if (whereclause.length() > 0) if (whereclause.length() > 0) {
whereclause = whereclause + " AND "; whereclause.insert(0, "(");
whereclause = whereclause + cell_title + "=" + value_evaluated; whereclause.append(") AND ");
}
whereclause.append(cell_title).append("=").append(value_evaluated);
} else { } else {
// already read, show the value of context variable // already read, show the value of context variable
if (gpo != null) { if (gpo != null) {
Object result = gpo.get_Value(cell_title); if (poinfo.getColumnIndex(cell_title) < 0) {
if (result != null) wrong(i, 0);
getCell(i, 1).addToBody(result.toString()); } else {
Object result = gpo.get_Value(cell_title);
if (result != null)
getCell(i, 1).addToBody(result.toString());
}
} }
} }
} }

View File

@ -44,6 +44,7 @@ import org.compiere.model.MTable;
import org.compiere.model.PO; import org.compiere.model.PO;
import org.compiere.process.ProcessInfo; import org.compiere.process.ProcessInfo;
import org.compiere.util.CLogger; import org.compiere.util.CLogger;
import org.compiere.util.DB;
import org.compiere.util.DisplayType; import org.compiere.util.DisplayType;
import org.compiere.util.Env; import org.compiere.util.Env;
import org.compiere.util.Msg; import org.compiere.util.Msg;
@ -293,11 +294,27 @@ public class RunProcess extends TableFixture {
exception(getCell(i, 1), e); exception(getCell(i, 1), e);
continue; continue;
} }
} } else {
else if (parameterName.equalsIgnoreCase("*DocAction*")) if (parameterName.equalsIgnoreCase("*DocAction*")) {
docAction = value_evaluated; docAction = value_evaluated;
else } else {
fmap.put(parameterName, value_evaluated); String param = DB.getSQLValueStringEx(null,
"SELECT ColumnName " +
"FROM AD_Process_Para " +
"WHERE IsActive='Y' AND AD_Process_ID=? AND LOWER(ColumnName)=?",
process.getAD_Process_ID(), parameterName.toLowerCase());
if (param == null) {
boolean ok = Util.evaluateError(msgerror1,"Parameter Not Found", isErrorExpected);
if (ok) {
right(getCell(i, 1));
} else {
exception(getCell(i, 1), new Exception("Parameter Not Found"));
}
} else {
fmap.put(param, value_evaluated);
}
}
}
} }
} }

View File

@ -23,14 +23,21 @@
package org.idempiere.fitnesse.fixture; package org.idempiere.fitnesse.fixture;
import java.math.BigDecimal;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.Properties; import java.util.Properties;
import org.compiere.model.MColumn;
import org.compiere.model.MTable; import org.compiere.model.MTable;
import org.compiere.model.PO; import org.compiere.model.PO;
import org.compiere.model.POInfo;
import org.compiere.util.DB; import org.compiere.util.DB;
import org.compiere.util.DisplayType;
import org.compiere.util.Env;
import org.compiere.util.ValueNamePair;
import fitnesse.fixtures.TableFixture; import fitnesse.fixtures.TableFixture;
@ -66,10 +73,12 @@ public class UpdateRecord extends TableFixture {
PO gpo = null; PO gpo = null;
String tableName = new String(""); String tableName = new String("");
boolean tableOK = false; boolean tableOK = false;
boolean columnsOK = true;
MTable table = null; MTable table = null;
POInfo poinfo = null;
boolean alreadyread = false; boolean alreadyread = false;
StringBuilder whereclause = new StringBuilder(""); StringBuilder whereclause = new StringBuilder();
boolean isErrorExpected = false; boolean isErrorExpected = false;
String msgerror = null; String msgerror = null;
for (int i = 0; i < rows; i++) { for (int i = 0; i < rows; i++) {
@ -88,6 +97,7 @@ public class UpdateRecord extends TableFixture {
} else { } else {
tableOK = true; tableOK = true;
} }
poinfo = POInfo.getPOInfo(ctx, table!=null ? table.getAD_Table_ID() : 0);
} else if (cell_title.equalsIgnoreCase("*Where*")) { } else if (cell_title.equalsIgnoreCase("*Where*")) {
if (i != 1) { if (i != 1) {
@ -108,6 +118,7 @@ public class UpdateRecord extends TableFixture {
wrong(i, 1); wrong(i, 1);
return; return;
} }
whereclause = whereclause.append(" AND AD_Client_ID=").append(Env.getAD_Client_ID(ctx));
String sql = "SELECT * FROM " + tableName + " WHERE "+ whereclause; String sql = "SELECT * FROM " + tableName + " WHERE "+ whereclause;
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
ResultSet rs = null; ResultSet rs = null;
@ -160,34 +171,145 @@ public class UpdateRecord extends TableFixture {
String value_evaluated = Util.evaluate(ctx, windowNo,cell_value, getCell(i, 1)); String value_evaluated = Util.evaluate(ctx, windowNo,cell_value, getCell(i, 1));
if (!alreadyread) { if (!alreadyread) {
// not read yet - add value to where clause // not read yet - add value to where clause
if (whereclause.length() > 0) if (whereclause.length() > 0) {
whereclause.append(" AND "); whereclause.insert(0, "(");
whereclause.append(") AND ");
}
whereclause.append(cell_title).append("=").append(value_evaluated); whereclause.append(cell_title).append("=").append(value_evaluated);
} else { } else {
if (gpo != null) { if (gpo != null) {
if (gpo.set_ValueOfColumnReturningBoolean(cell_title, cell_value)) { String columnName = cell_title;
if (isErrorExpected) { int idxcol = gpo.get_ColumnIndex(columnName);
wrong(getCell(i, 1)); if (idxcol < 0) {
} else { wrong(i,0);
right(getCell(i, 1)); // column does not exist in dictionary - anyways try custom column in case it exists in table
gpo.set_CustomColumnReturningBoolean(columnName, cell_value);
} else {
Class<?> columnClass = poinfo.getColumnClass(idxcol);
// set value according to class
Object value = null;
if (org.compiere.util.Util.isEmpty(cell_value)) {
value = null;
} else if (org.compiere.util.Util.isEmpty(value_evaluated)) {
boolean ok = Util.evaluateError("Data not found",msgerror,isErrorExpected);
if (ok)
right(i,1);
else
wrong(i,1);
columnsOK = false;
continue;
} else if (columnClass == Boolean.class) {
if ("Y".equalsIgnoreCase(value_evaluated) || "true".equalsIgnoreCase(value_evaluated))
value = new Boolean(true);
else if ("N".equalsIgnoreCase(value_evaluated) || "false".equalsIgnoreCase(value_evaluated))
value = new Boolean(false);
else {
exception(getCell(i, 1), new Exception("Wrong value for boolean, allowed Y/N/true/false"));
continue;
}
} else if (columnClass == Integer.class) {
try {
Integer intid = Integer.parseInt(value_evaluated);
MColumn column = table.getColumn(cell_title);
if (intid > 0 && (DisplayType.isID(column.getAD_Reference_ID()) || column.getAD_Reference_ID() != DisplayType.ID)) {
// Evaluate the ID is from the actual client or system
String foreignTable = column.getReferenceTableName();
if (foreignTable != null) {
int foreignClient = DB.getSQLValueEx(null,
"SELECT AD_Client_ID FROM " + foreignTable + " WHERE " + foreignTable + "_ID=?",
intid);
if (foreignClient != 0 && foreignClient != Env.getAD_Client_ID(ctx)) {
boolean ok = Util.evaluateError("Data not found", msgerror, isErrorExpected);
if (ok)
right(i, 1);
else
wrong(i, 1);
columnsOK = false;
continue;
}
}
}
value = intid;
} catch (NumberFormatException e) {
exception(getCell(i, 1), e);
continue;
}
} else if (columnClass == BigDecimal.class) {
try {
value = new BigDecimal(value_evaluated);
} catch (Exception e) {
exception(getCell(i, 1), e);
continue;
}
} else if (columnClass == Timestamp.class) {
try {
value = Timestamp.valueOf(value_evaluated);
} catch (Exception e) {
exception(getCell(i, 1), e);
continue;
}
} else if (columnClass == byte[].class) {
exception(getCell(i, 1), new Exception("LOB not supported"));
continue;
} else {
value = value_evaluated;
}
try {
if (!gpo.set_ValueOfColumnReturningBoolean(columnName, value)) {
columnsOK = false;
boolean ok = Util.evaluateError("Cannot set value of column", cell_value, isErrorExpected);
if (ok)
right(getCell(i, 1));
else
exception(getCell(i, 1), new Exception("Cannot set value of column"));
}
} catch (Exception e) {
columnsOK = false;
boolean ok = Util.evaluateError(e.getMessage(), cell_value, isErrorExpected);
if (ok)
right(getCell(i, 1));
else
exception(getCell(i, 1), e);
} }
} }
try {
gpo.saveEx();
} catch (Exception e) {
boolean ok = Util.evaluateError(e.getMessage(),msgerror, isErrorExpected);
if (ok)
right(getCell(i, 1));
else
exception(getCell(i, 1),e);
}
} }
} }
} }
} }
}//end while } //end for
if (tableOK && columnsOK && gpo != null) {
int i = rows-1;
if (!gpo.save()) {
StringBuilder msg = new StringBuilder();
Exception e = (Exception) ctx.get("org.compiere.util.CLogger.lastException");
if (e != null)
msg.append("Exception: "+ e.getMessage());
else {
ValueNamePair vnp = (ValueNamePair) ctx.get("org.compiere.util.CLogger.lastError");
if (vnp != null)
msg.append("Error: " + vnp.getName());
}
getCell(i, 1).addToBody(msg.toString());
boolean ok = Util.evaluateError(msg.toString(),msgerror,isErrorExpected);
if (ok)
right(i,1);
else
wrong(i,1);
} else {
if (isErrorExpected) {
wrong(i,1);
} else {
right(i, 1);
}
getCell(i, 1).addToBody(gpo.toString());
for (int idx = 0; idx < poinfo.getColumnCount(); idx++) {
String colname = poinfo.getColumnName(idx);
Object result = gpo.get_Value(colname);
if (result != null)
Env.setContext(ctx, windowNo, poinfo.getTableName().toLowerCase() + "." + colname.toLowerCase(), result.toString());
}
}
}
} }

View File

@ -119,6 +119,8 @@ public class Util {
String tablename = cell_value.substring(5, pos_opsqb); String tablename = cell_value.substring(5, pos_opsqb);
String where = cell_value.substring(pos_opsqb+1, pos_clsqb); String where = cell_value.substring(pos_opsqb+1, pos_clsqb);
String whereParsed = Env.parseContext(ctx, windowNo, where, false); String whereParsed = Env.parseContext(ctx, windowNo, where, false);
if (ctx != null)
whereParsed = "(" + whereParsed + ") AND AD_Client_ID IN (0,"+Env.getAD_Client_ID(ctx)+")";
String columnname = cell_value.substring(pos_clsqb+2); String columnname = cell_value.substring(pos_clsqb+2);
String newval = DB.getSQLValueStringEx(null, "SELECT " + columnname + " FROM " + tablename + " WHERE " + whereParsed); String newval = DB.getSQLValueStringEx(null, "SELECT " + columnname + " FROM " + tablename + " WHERE " + whereParsed);
if (parse != null) if (parse != null)

View File

@ -64,6 +64,8 @@ import org.idempiere.webservices.fault.IdempiereServiceFault;
*/ */
public class AbstractService { public class AbstractService {
private static final String ROLE_ACCESS_SQL = "SELECT IsActive FROM WS_WebServiceTypeAccess WHERE AD_Role_ID=? "
+ "AND WS_WebServiceType_ID=?";
private static final String COMPIERE_SERVICE = "CompiereService"; private static final String COMPIERE_SERVICE = "CompiereService";
@Resource @Resource
protected WebServiceContext ctx; protected WebServiceContext ctx;
@ -225,7 +227,17 @@ public class AbstractService {
return "Service type " + serviceTypeValue + " not configured"; return "Service type " + serviceTypeValue + " not configured";
req.setAttribute("MWebServiceType", m_webservicetype); req.setAttribute("MWebServiceType", m_webservicetype);
// Check if role has access on web-service
String hasAccess = DB.getSQLValueStringEx(null, ROLE_ACCESS_SQL,
Env.getAD_Role_ID( m_cs.getCtx()),
m_webservicetype.get_ID());
if (!"Y".equals(hasAccess))
{
return "Web Service Error: Login role does not have access to the service type";
}
String ret=invokeLoginValidator(null, m_cs.getCtx(), m_webservicetype, IWSValidator.TIMING_ON_AUTHORIZATION); String ret=invokeLoginValidator(null, m_cs.getCtx(), m_webservicetype, IWSValidator.TIMING_ON_AUTHORIZATION);
if(ret!=null && ret.length()>0) if(ret!=null && ret.length()>0)
return ret; return ret;