IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation. Added IsIdentifier and SeqnoSelection to AD_InfoColumn. Ported InfoOrderPanel.

This commit is contained in:
Heng Sin Low 2013-01-30 22:38:09 +08:00
parent 85b7303d98
commit ef393112e3
7 changed files with 819 additions and 27 deletions

View File

@ -0,0 +1,333 @@
-- Jan 30, 2013 4:14:20 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoWindow (Processing,FromClause,AD_InfoWindow_UU,AD_InfoWindow_ID,AD_Table_ID,EntityType,Name,AD_Client_ID,AD_Org_ID,Created,Updated,UpdatedBy,CreatedBy,IsActive,IsDefault,IsDistinct,OrderByClause,IsValid) VALUES ('N','C_Order o','9a8cdbc5-2563-47ac-9f64-971723128db5',200002,259,'D','Order Info',0,0,TO_DATE('2013-01-30 16:14:17','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-01-30 16:14:17','YYYY-MM-DD HH24:MI:SS'),100,100,'Y','N','N','2,3,4','N')
;
-- Jan 30, 2013 4:14:20 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('fe226ae2-ce32-41fa-a880-69683ce3fc0e',TO_DATE('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,50002,200002,0,0,TO_DATE('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,'Y')
;
-- Jan 30, 2013 4:14:20 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('24827c4b-5900-4a37-ab7e-de10aecc00d0',TO_DATE('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,0,200002,0,0,TO_DATE('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,'Y')
;
-- Jan 30, 2013 4:14:20 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('9b4e2d38-3585-494e-b321-29f3b0eefb79',TO_DATE('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,102,200002,11,0,TO_DATE('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,'Y')
;
-- Jan 30, 2013 4:14:20 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('a26e76bd-c222-42f9-93d7-a07dfd82e26b',TO_DATE('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,103,200002,11,0,TO_DATE('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,'Y')
;
-- Jan 30, 2013 4:14:21 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('609534dd-c820-471f-b901-d565b677192d',TO_DATE('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,50001,200002,0,0,TO_DATE('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,'Y')
;
-- Jan 30, 2013 4:17:05 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,AD_Val_Rule_ID,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,SelectClause) VALUES (200002,'A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson','4a3dc535-a44a-42e4-bf1c-4be76639cf10',30,200039,'Y','D','Identifies a Business Partner',TO_DATE('2013-01-30 16:17:04','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-30 16:17:04','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Business Partner ',230,'Y','C_BPartner_ID','Y','Y',187,10,'=','o.C_BPartner_ID')
;
-- Jan 30, 2013 4:17:56 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200002,'Indicates the Date an item was ordered.','18041344-a196-4a51-bfdd-a7e726641c21',15,200040,'N','D','Date of Order',TO_DATE('2013-01-30 16:17:55','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-30 16:17:55','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Date Ordered','Y','DateOrdered','Y','Y',268,20,'=','Trunc','o.DateOrdered')
;
-- Jan 30, 2013 4:44:25 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200002,'The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>".
If the document type of your document has no automatic document sequence defined, the field is empty if you create a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table (e.g. C_Order).','ad9d5345-b85f-4712-a43c-781c491b5e6f',10,200041,'Y','D','Document sequence number of the document',TO_DATE('2013-01-30 16:44:23','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-30 16:44:23','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Document No','Y','DocumentNo','Y','Y',290,30,'Like','Upper','o.DocumentNo')
;
-- Jan 30, 2013 4:45:26 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,SelectClause) VALUES (200002,'Indicates the Currency to be used when processing or reporting on this record','18b59430-dfcd-4a0a-b152-2c28051fb220',19,200042,'N','D','The Currency for this record',TO_DATE('2013-01-30 16:45:25','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-30 16:45:25','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Currency','Y','C_Currency_ID','Y','Y',193,40,'o.C_Currency_ID')
;
-- Jan 30, 2013 4:45:45 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200002,'A description is limited to 255 characters.','a94c3237-9b61-4b1f-b3b8-726c7316fb9b',14,200043,'Y','D','Optional short description of the record',TO_DATE('2013-01-30 16:45:45','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-30 16:45:45','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Description','Y','Description','N','Y',275,50,'Like','Upper','o.Description')
;
-- Jan 30, 2013 4:47:01 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200002,'Indicates the Date an item was ordered.','175d4ba8-a123-49d8-b068-18455285792d',15,200044,'Y','D','Date of Order',TO_DATE('2013-01-30 16:47:00','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-30 16:47:00','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Date Ordered','Y','DateOrdered','N','Y',268,60,'>=','Trunc','o.DateOrdered AS DateOrderedFrom')
;
-- Jan 30, 2013 4:47:41 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200002,'Indicates the Date an item was ordered.','8a87c928-0764-40d1-b47d-2ba2b9f70835',15,200045,'Y','D','Date of Order',TO_DATE('2013-01-30 16:47:40','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-30 16:47:40','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Date Ordered','Y','DateOrdered','N','Y',268,70,'<=','Trunc','o.DateOrdered AS DateOrderedTo')
;
-- Jan 30, 2013 4:48:22 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200002,'The business partner order reference is the order reference for this specific transaction; Often Purchase Order numbers are given to print on Invoices for easier reference. A standard number can be defined in the Business Partner (Customer) window.','386f401d-1557-4b6c-9e99-052ecb0cdc4f',10,200046,'Y','D','Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner',TO_DATE('2013-01-30 16:48:21','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-30 16:48:21','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Order Reference','Y','POReference','N','Y',952,80,'Like','Upper','o.POReference')
;
-- Jan 30, 2013 4:48:47 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,SelectClause) VALUES (200002,'The Grand Total displays the total amount including Tax and Freight in document currency','dda56d4d-8134-48de-b789-5c0944674206',12,200047,'N','D','Total amount of document',TO_DATE('2013-01-30 16:48:46','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-30 16:48:46','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Grand Total','Y','GrandTotal','Y','Y',316,90,'o.GrandTotal')
;
-- Jan 30, 2013 4:49:15 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,SelectClause) VALUES (200002,'The Grand Total displays the total amount including Tax and Freight in document currency','90715dc1-ad0e-4eab-83ce-fb8c44f3206e',12,200048,'Y','D','Total amount of document',TO_DATE('2013-01-30 16:49:14','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-30 16:49:14','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Grand Total','Y','GrandTotal','N','Y',316,100,'>=','o.GrandTotal AS GrandTotalFrom')
;
-- Jan 30, 2013 4:49:38 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,SelectClause) VALUES (200002,'The Grand Total displays the total amount including Tax and Freight in document currency','5a6de2e4-4587-4c61-b7b6-2c3e62c70e20',12,200049,'Y','D','Total amount of document',TO_DATE('2013-01-30 16:49:37','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-30 16:49:37','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Grand Total','Y','GrandTotal','N','Y',316,110,'<=','o.GrandTotal AS GrandTotalTo')
;
-- Jan 30, 2013 4:50:52 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,SeqNo,QueryOperator,SelectClause) VALUES (200002,'d12130dc-c065-473a-bd63-517d90ddfc24',12,200050,'N','D',TO_DATE('2013-01-30 16:50:51','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-30 16:50:51','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Converted','Y','ConvertedAmount','Y','Y',120,'=','currencyBase(o.GrandTotal,o.C_Currency_ID,o.DateAcct, o.AD_Client_ID,o.AD_Org_ID) AS ConvertedAmount')
;
-- Jan 30, 2013 4:51:43 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,SelectClause) VALUES (200002,'The Sales Transaction checkbox indicates if this item is a Sales Transaction.','e06299a7-3ea5-463e-85c5-b3fe83e019fd',20,200051,'Y','D','This is a Sales Transaction',TO_DATE('2013-01-30 16:51:42','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-30 16:51:42','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Sales Transaction','Y','IsSOTrx','Y','Y',1106,130,'=','o.IsSOTrx')
;
-- Jan 30, 2013 4:53:56 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET IsDisplayed='Y', SeqNo=130,Updated=TO_DATE('2013-01-30 16:53:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200046
;
-- Jan 30, 2013 4:54:11 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET IsDisplayed='Y', SeqNo=120,Updated=TO_DATE('2013-01-30 16:54:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200043
;
-- Jan 30, 2013 4:54:25 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=80,Updated=TO_DATE('2013-01-30 16:54:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200047
;
-- Jan 30, 2013 4:54:29 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=90,Updated=TO_DATE('2013-01-30 16:54:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200048
;
-- Jan 30, 2013 4:54:32 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=100,Updated=TO_DATE('2013-01-30 16:54:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200049
;
-- Jan 30, 2013 4:54:45 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=110,Updated=TO_DATE('2013-01-30 16:54:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200050
;
-- Jan 30, 2013 4:54:50 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=50,Updated=TO_DATE('2013-01-30 16:54:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200044
;
-- Jan 30, 2013 4:54:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=60,Updated=TO_DATE('2013-01-30 16:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200045
;
-- Jan 30, 2013 4:54:57 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=70,Updated=TO_DATE('2013-01-30 16:54:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200047
;
-- Jan 30, 2013 4:55:00 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=80,Updated=TO_DATE('2013-01-30 16:55:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200048
;
-- Jan 30, 2013 4:55:03 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=90,Updated=TO_DATE('2013-01-30 16:55:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200049
;
-- Jan 30, 2013 4:55:06 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=100,Updated=TO_DATE('2013-01-30 16:55:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200050
;
-- Jan 30, 2013 4:55:19 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=110,Updated=TO_DATE('2013-01-30 16:55:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200051
;
-- Jan 30, 2013 4:55:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoWindow SET IsDefault='Y',Updated=TO_DATE('2013-01-30 16:55:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200002
;
-- Jan 30, 2013 4:56:19 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoWindow SET IsValid='Y',Updated=TO_DATE('2013-01-30 16:56:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200002
;
-- Jan 30, 2013 5:47:22 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',1,897,208444,'D','Y','N','N',0,'N',1,'N',20,'N',382,'N','Y','40c556b6-f818-4ea6-9ae6-9ece30ba938b','Y','IsIdentifier','This column is part of the record identifier','N','The Identifier checkbox indicates that this column is part of the identifier or key for this table. ','Identifier','Y',TO_DATE('2013-01-30 17:47:21','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-01-30 17:47:21','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N')
;
-- Jan 30, 2013 5:47:38 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
ALTER TABLE AD_InfoColumn ADD IsIdentifier CHAR(1) DEFAULT 'N' CHECK (IsIdentifier IN ('Y','N')) NOT NULL
;
-- Jan 30, 2013 5:50:05 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',1,897,208445,'D','N','N','N',0,'N',10,'N',11,'N',200096,'N','Y','29bb3f29-299c-46b8-9e08-372083702d1e','Y','SeqNoSelection','Selection Column Sequence','For ordering sequence of selection column','Selection Column Sequence','Y',TO_DATE('2013-01-30 17:50:04','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_DATE('2013-01-30 17:50:04','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N')
;
-- Jan 30, 2013 5:50:13 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
ALTER TABLE AD_InfoColumn ADD SeqNoSelection NUMBER(10) DEFAULT NULL
;
-- Jan 30, 2013 6:00:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_Field (ColumnSpan,NumLines,SortNo,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,DisplayLogic,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry) VALUES (2,1,0,'N',844,0,'N','N',208444,220,'Y',201719,'N','The Identifier checkbox indicates that this column is part of the identifier or key for this table. ','@IsQueryCriteria@=Y','D','This column is part of the record identifier','Identifier','Y','N','b79dad18-0a75-4cc3-a8dc-2bcaec0b6e97',100,0,TO_DATE('2013-01-30 18:00:52','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-01-30 18:00:52','YYYY-MM-DD HH24:MI:SS'),'Y','Y',130,1,'N')
;
-- Jan 30, 2013 6:01:39 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_Field (ColumnSpan,NumLines,SortNo,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,DisplayLogic,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry) VALUES (2,1,0,'N',844,0,'N','N',208445,230,'Y',201720,'N','For ordering sequence of selection column','@IsQueryCriteria@=Y','D','Selection Column Sequence','Selection Column Sequence','Y','N','99b2daa0-13cd-42a9-bc74-fbe704e3c449',100,0,TO_DATE('2013-01-30 18:01:37','YYYY-MM-DD HH24:MI:SS'),0,100,TO_DATE('2013-01-30 18:01:37','YYYY-MM-DD HH24:MI:SS'),'Y','Y',140,1,'N')
;
-- Jan 30, 2013 6:02:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Field SET SeqNo=150, IsDisplayed='Y', XPosition=2,Updated=TO_DATE('2013-01-30 18:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201719
;
-- Jan 30, 2013 6:02:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Field SET ColumnSpan=2, SeqNo=160, IsDisplayed='Y', XPosition=4,Updated=TO_DATE('2013-01-30 18:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201720
;
-- Jan 30, 2013 6:02:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Field SET SeqNo=170,Updated=TO_DATE('2013-01-30 18:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201625
;
-- Jan 30, 2013 6:02:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Field SET SeqNo=180,Updated=TO_DATE('2013-01-30 18:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201635
;
-- Jan 30, 2013 6:02:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Field SET SeqNo=190,Updated=TO_DATE('2013-01-30 18:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201636
;
-- Jan 30, 2013 6:02:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Field SET SeqNo=200,Updated=TO_DATE('2013-01-30 18:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13603
;
-- Jan 30, 2013 6:02:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Field SET SeqNo=210,Updated=TO_DATE('2013-01-30 18:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201622
;
-- Jan 30, 2013 6:02:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Field SET SeqNo=220,Updated=TO_DATE('2013-01-30 18:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201623
;
-- Jan 30, 2013 6:02:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Field SET SeqNo=230,Updated=TO_DATE('2013-01-30 18:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13597
;
-- Jan 30, 2013 9:58:17 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNoSelection=20,Updated=TO_DATE('2013-01-30 21:58:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200039
;
-- Jan 30, 2013 9:58:21 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNoSelection=10,Updated=TO_DATE('2013-01-30 21:58:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200041
;
-- Jan 30, 2013 9:58:24 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNoSelection=50,Updated=TO_DATE('2013-01-30 21:58:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200044
;
-- Jan 30, 2013 9:58:29 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNoSelection=60,Updated=TO_DATE('2013-01-30 21:58:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200045
;
-- Jan 30, 2013 9:58:33 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNoSelection=80,Updated=TO_DATE('2013-01-30 21:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200048
;
-- Jan 30, 2013 9:58:36 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNoSelection=90,Updated=TO_DATE('2013-01-30 21:58:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200049
;
-- Jan 30, 2013 9:58:40 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNoSelection=30,Updated=TO_DATE('2013-01-30 21:58:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200051
;
-- Jan 30, 2013 9:58:43 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNoSelection=40,Updated=TO_DATE('2013-01-30 21:58:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200043
;
-- Jan 30, 2013 9:58:49 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNoSelection=70,Updated=TO_DATE('2013-01-30 21:58:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200046
;
-- Jan 30, 2013 10:00:00 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Column SET DefaultValue='0',Updated=TO_DATE('2013-01-30 22:00:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208445
;
-- Jan 30, 2013 10:00:10 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
ALTER TABLE AD_InfoColumn MODIFY SeqNoSelection NUMBER(10) DEFAULT 0
;
-- Jan 30, 2013 10:08:33 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET IsIdentifier='Y',Updated=TO_DATE('2013-01-30 22:08:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200023
;
-- Jan 30, 2013 10:08:40 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET IsIdentifier='Y',Updated=TO_DATE('2013-01-30 22:08:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200024
;
-- Jan 30, 2013 10:09:46 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET IsIdentifier='Y',Updated=TO_DATE('2013-01-30 22:09:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200000
;
-- Jan 30, 2013 10:09:58 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET IsIdentifier='Y',Updated=TO_DATE('2013-01-30 22:09:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200001
;
-- Jan 30, 2013 10:10:43 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET IsIdentifier='Y',Updated=TO_DATE('2013-01-30 22:10:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200041
;
UPDATE AD_InfoColumn SET SeqNoSelection = 0 WHERE SeqNoSelection IS NULL
;
SELECT register_migration_script('201301301425_IDEMPIERE-325.sql') FROM dual
;

View File

@ -0,0 +1,333 @@
-- Jan 30, 2013 4:14:20 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoWindow (Processing,FromClause,AD_InfoWindow_UU,AD_InfoWindow_ID,AD_Table_ID,EntityType,Name,AD_Client_ID,AD_Org_ID,Created,Updated,UpdatedBy,CreatedBy,IsActive,IsDefault,IsDistinct,OrderByClause,IsValid) VALUES ('N','C_Order o','9a8cdbc5-2563-47ac-9f64-971723128db5',200002,259,'D','Order Info',0,0,TO_TIMESTAMP('2013-01-30 16:14:17','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-01-30 16:14:17','YYYY-MM-DD HH24:MI:SS'),100,100,'Y','N','N','2,3,4','N')
;
-- Jan 30, 2013 4:14:20 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('fe226ae2-ce32-41fa-a880-69683ce3fc0e',TO_TIMESTAMP('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,50002,200002,0,0,TO_TIMESTAMP('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,'Y')
;
-- Jan 30, 2013 4:14:20 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('24827c4b-5900-4a37-ab7e-de10aecc00d0',TO_TIMESTAMP('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,0,200002,0,0,TO_TIMESTAMP('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,'Y')
;
-- Jan 30, 2013 4:14:20 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('9b4e2d38-3585-494e-b321-29f3b0eefb79',TO_TIMESTAMP('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,102,200002,11,0,TO_TIMESTAMP('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,'Y')
;
-- Jan 30, 2013 4:14:20 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('a26e76bd-c222-42f9-93d7-a07dfd82e26b',TO_TIMESTAMP('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,103,200002,11,0,TO_TIMESTAMP('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,'Y')
;
-- Jan 30, 2013 4:14:21 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('609534dd-c820-471f-b901-d565b677192d',TO_TIMESTAMP('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,50001,200002,0,0,TO_TIMESTAMP('2013-01-30 16:14:20','YYYY-MM-DD HH24:MI:SS'),100,'Y')
;
-- Jan 30, 2013 4:17:05 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,AD_Val_Rule_ID,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,SelectClause) VALUES (200002,'A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson','4a3dc535-a44a-42e4-bf1c-4be76639cf10',30,200039,'Y','D','Identifies a Business Partner',TO_TIMESTAMP('2013-01-30 16:17:04','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-30 16:17:04','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Business Partner ',230,'Y','C_BPartner_ID','Y','Y',187,10,'=','o.C_BPartner_ID')
;
-- Jan 30, 2013 4:17:56 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200002,'Indicates the Date an item was ordered.','18041344-a196-4a51-bfdd-a7e726641c21',15,200040,'N','D','Date of Order',TO_TIMESTAMP('2013-01-30 16:17:55','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-30 16:17:55','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Date Ordered','Y','DateOrdered','Y','Y',268,20,'=','Trunc','o.DateOrdered')
;
-- Jan 30, 2013 4:44:25 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200002,'The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>".
If the document type of your document has no automatic document sequence defined, the field is empty if you create a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table (e.g. C_Order).','ad9d5345-b85f-4712-a43c-781c491b5e6f',10,200041,'Y','D','Document sequence number of the document',TO_TIMESTAMP('2013-01-30 16:44:23','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-30 16:44:23','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Document No','Y','DocumentNo','Y','Y',290,30,'Like','Upper','o.DocumentNo')
;
-- Jan 30, 2013 4:45:26 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,SelectClause) VALUES (200002,'Indicates the Currency to be used when processing or reporting on this record','18b59430-dfcd-4a0a-b152-2c28051fb220',19,200042,'N','D','The Currency for this record',TO_TIMESTAMP('2013-01-30 16:45:25','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-30 16:45:25','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Currency','Y','C_Currency_ID','Y','Y',193,40,'o.C_Currency_ID')
;
-- Jan 30, 2013 4:45:45 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200002,'A description is limited to 255 characters.','a94c3237-9b61-4b1f-b3b8-726c7316fb9b',14,200043,'Y','D','Optional short description of the record',TO_TIMESTAMP('2013-01-30 16:45:45','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-30 16:45:45','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Description','Y','Description','N','Y',275,50,'Like','Upper','o.Description')
;
-- Jan 30, 2013 4:47:01 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200002,'Indicates the Date an item was ordered.','175d4ba8-a123-49d8-b068-18455285792d',15,200044,'Y','D','Date of Order',TO_TIMESTAMP('2013-01-30 16:47:00','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-30 16:47:00','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Date Ordered','Y','DateOrdered','N','Y',268,60,'>=','Trunc','o.DateOrdered AS DateOrderedFrom')
;
-- Jan 30, 2013 4:47:41 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200002,'Indicates the Date an item was ordered.','8a87c928-0764-40d1-b47d-2ba2b9f70835',15,200045,'Y','D','Date of Order',TO_TIMESTAMP('2013-01-30 16:47:40','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-30 16:47:40','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Date Ordered','Y','DateOrdered','N','Y',268,70,'<=','Trunc','o.DateOrdered AS DateOrderedTo')
;
-- Jan 30, 2013 4:48:22 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200002,'The business partner order reference is the order reference for this specific transaction; Often Purchase Order numbers are given to print on Invoices for easier reference. A standard number can be defined in the Business Partner (Customer) window.','386f401d-1557-4b6c-9e99-052ecb0cdc4f',10,200046,'Y','D','Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner',TO_TIMESTAMP('2013-01-30 16:48:21','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-30 16:48:21','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Order Reference','Y','POReference','N','Y',952,80,'Like','Upper','o.POReference')
;
-- Jan 30, 2013 4:48:47 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,SelectClause) VALUES (200002,'The Grand Total displays the total amount including Tax and Freight in document currency','dda56d4d-8134-48de-b789-5c0944674206',12,200047,'N','D','Total amount of document',TO_TIMESTAMP('2013-01-30 16:48:46','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-30 16:48:46','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Grand Total','Y','GrandTotal','Y','Y',316,90,'o.GrandTotal')
;
-- Jan 30, 2013 4:49:15 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,SelectClause) VALUES (200002,'The Grand Total displays the total amount including Tax and Freight in document currency','90715dc1-ad0e-4eab-83ce-fb8c44f3206e',12,200048,'Y','D','Total amount of document',TO_TIMESTAMP('2013-01-30 16:49:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-30 16:49:14','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Grand Total','Y','GrandTotal','N','Y',316,100,'>=','o.GrandTotal AS GrandTotalFrom')
;
-- Jan 30, 2013 4:49:38 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,SelectClause) VALUES (200002,'The Grand Total displays the total amount including Tax and Freight in document currency','5a6de2e4-4587-4c61-b7b6-2c3e62c70e20',12,200049,'Y','D','Total amount of document',TO_TIMESTAMP('2013-01-30 16:49:37','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-30 16:49:37','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Grand Total','Y','GrandTotal','N','Y',316,110,'<=','o.GrandTotal AS GrandTotalTo')
;
-- Jan 30, 2013 4:50:52 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,SeqNo,QueryOperator,SelectClause) VALUES (200002,'d12130dc-c065-473a-bd63-517d90ddfc24',12,200050,'N','D',TO_TIMESTAMP('2013-01-30 16:50:51','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-30 16:50:51','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Converted','Y','ConvertedAmount','Y','Y',120,'=','currencyBase(o.GrandTotal,o.C_Currency_ID,o.DateAcct, o.AD_Client_ID,o.AD_Org_ID) AS ConvertedAmount')
;
-- Jan 30, 2013 4:51:43 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,SelectClause) VALUES (200002,'The Sales Transaction checkbox indicates if this item is a Sales Transaction.','e06299a7-3ea5-463e-85c5-b3fe83e019fd',20,200051,'Y','D','This is a Sales Transaction',TO_TIMESTAMP('2013-01-30 16:51:42','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-30 16:51:42','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Sales Transaction','Y','IsSOTrx','Y','Y',1106,130,'=','o.IsSOTrx')
;
-- Jan 30, 2013 4:53:56 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET IsDisplayed='Y', SeqNo=130,Updated=TO_TIMESTAMP('2013-01-30 16:53:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200046
;
-- Jan 30, 2013 4:54:11 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET IsDisplayed='Y', SeqNo=120,Updated=TO_TIMESTAMP('2013-01-30 16:54:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200043
;
-- Jan 30, 2013 4:54:25 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=80,Updated=TO_TIMESTAMP('2013-01-30 16:54:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200047
;
-- Jan 30, 2013 4:54:29 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=90,Updated=TO_TIMESTAMP('2013-01-30 16:54:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200048
;
-- Jan 30, 2013 4:54:32 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=100,Updated=TO_TIMESTAMP('2013-01-30 16:54:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200049
;
-- Jan 30, 2013 4:54:45 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=110,Updated=TO_TIMESTAMP('2013-01-30 16:54:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200050
;
-- Jan 30, 2013 4:54:50 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=50,Updated=TO_TIMESTAMP('2013-01-30 16:54:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200044
;
-- Jan 30, 2013 4:54:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=60,Updated=TO_TIMESTAMP('2013-01-30 16:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200045
;
-- Jan 30, 2013 4:54:57 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=70,Updated=TO_TIMESTAMP('2013-01-30 16:54:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200047
;
-- Jan 30, 2013 4:55:00 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=80,Updated=TO_TIMESTAMP('2013-01-30 16:55:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200048
;
-- Jan 30, 2013 4:55:03 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=90,Updated=TO_TIMESTAMP('2013-01-30 16:55:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200049
;
-- Jan 30, 2013 4:55:06 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=100,Updated=TO_TIMESTAMP('2013-01-30 16:55:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200050
;
-- Jan 30, 2013 4:55:19 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNo=110,Updated=TO_TIMESTAMP('2013-01-30 16:55:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200051
;
-- Jan 30, 2013 4:55:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoWindow SET IsDefault='Y',Updated=TO_TIMESTAMP('2013-01-30 16:55:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200002
;
-- Jan 30, 2013 4:56:19 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoWindow SET IsValid='Y',Updated=TO_TIMESTAMP('2013-01-30 16:56:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200002
;
-- Jan 30, 2013 5:47:22 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',1,897,208444,'D','Y','N','N',0,'N',1,'N',20,'N',382,'N','Y','40c556b6-f818-4ea6-9ae6-9ece30ba938b','Y','IsIdentifier','This column is part of the record identifier','N','The Identifier checkbox indicates that this column is part of the identifier or key for this table. ','Identifier','Y',TO_TIMESTAMP('2013-01-30 17:47:21','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-01-30 17:47:21','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N')
;
-- Jan 30, 2013 5:47:38 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
ALTER TABLE AD_InfoColumn ADD COLUMN IsIdentifier CHAR(1) DEFAULT 'N' CHECK (IsIdentifier IN ('Y','N')) NOT NULL
;
-- Jan 30, 2013 5:50:05 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted) VALUES (0,'N',1,897,208445,'D','N','N','N',0,'N',10,'N',11,'N',200096,'N','Y','29bb3f29-299c-46b8-9e08-372083702d1e','Y','SeqNoSelection','Selection Column Sequence','For ordering sequence of selection column','Selection Column Sequence','Y',TO_TIMESTAMP('2013-01-30 17:50:04','YYYY-MM-DD HH24:MI:SS'),100,0,'Y',TO_TIMESTAMP('2013-01-30 17:50:04','YYYY-MM-DD HH24:MI:SS'),100,0,'N','N','N')
;
-- Jan 30, 2013 5:50:13 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
ALTER TABLE AD_InfoColumn ADD COLUMN SeqNoSelection NUMERIC(10) DEFAULT NULL
;
-- Jan 30, 2013 6:00:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_Field (ColumnSpan,NumLines,SortNo,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,DisplayLogic,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry) VALUES (2,1,0,'N',844,0,'N','N',208444,220,'Y',201719,'N','The Identifier checkbox indicates that this column is part of the identifier or key for this table. ','@IsQueryCriteria@=Y','D','This column is part of the record identifier','Identifier','Y','N','b79dad18-0a75-4cc3-a8dc-2bcaec0b6e97',100,0,TO_TIMESTAMP('2013-01-30 18:00:52','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-01-30 18:00:52','YYYY-MM-DD HH24:MI:SS'),'Y','Y',130,1,'N')
;
-- Jan 30, 2013 6:01:39 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO AD_Field (ColumnSpan,NumLines,SortNo,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,DisplayLogic,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,IsQuickEntry) VALUES (2,1,0,'N',844,0,'N','N',208445,230,'Y',201720,'N','For ordering sequence of selection column','@IsQueryCriteria@=Y','D','Selection Column Sequence','Selection Column Sequence','Y','N','99b2daa0-13cd-42a9-bc74-fbe704e3c449',100,0,TO_TIMESTAMP('2013-01-30 18:01:37','YYYY-MM-DD HH24:MI:SS'),0,100,TO_TIMESTAMP('2013-01-30 18:01:37','YYYY-MM-DD HH24:MI:SS'),'Y','Y',140,1,'N')
;
-- Jan 30, 2013 6:02:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Field SET SeqNo=150, IsDisplayed='Y', XPosition=2,Updated=TO_TIMESTAMP('2013-01-30 18:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201719
;
-- Jan 30, 2013 6:02:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Field SET ColumnSpan=2, SeqNo=160, IsDisplayed='Y', XPosition=4,Updated=TO_TIMESTAMP('2013-01-30 18:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201720
;
-- Jan 30, 2013 6:02:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Field SET SeqNo=170,Updated=TO_TIMESTAMP('2013-01-30 18:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201625
;
-- Jan 30, 2013 6:02:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Field SET SeqNo=180,Updated=TO_TIMESTAMP('2013-01-30 18:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201635
;
-- Jan 30, 2013 6:02:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Field SET SeqNo=190,Updated=TO_TIMESTAMP('2013-01-30 18:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201636
;
-- Jan 30, 2013 6:02:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Field SET SeqNo=200,Updated=TO_TIMESTAMP('2013-01-30 18:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13603
;
-- Jan 30, 2013 6:02:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Field SET SeqNo=210,Updated=TO_TIMESTAMP('2013-01-30 18:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201622
;
-- Jan 30, 2013 6:02:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Field SET SeqNo=220,Updated=TO_TIMESTAMP('2013-01-30 18:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201623
;
-- Jan 30, 2013 6:02:54 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Field SET SeqNo=230,Updated=TO_TIMESTAMP('2013-01-30 18:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13597
;
-- Jan 30, 2013 9:58:17 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNoSelection=20,Updated=TO_TIMESTAMP('2013-01-30 21:58:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200039
;
-- Jan 30, 2013 9:58:21 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNoSelection=10,Updated=TO_TIMESTAMP('2013-01-30 21:58:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200041
;
-- Jan 30, 2013 9:58:24 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNoSelection=50,Updated=TO_TIMESTAMP('2013-01-30 21:58:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200044
;
-- Jan 30, 2013 9:58:29 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNoSelection=60,Updated=TO_TIMESTAMP('2013-01-30 21:58:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200045
;
-- Jan 30, 2013 9:58:33 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNoSelection=80,Updated=TO_TIMESTAMP('2013-01-30 21:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200048
;
-- Jan 30, 2013 9:58:36 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNoSelection=90,Updated=TO_TIMESTAMP('2013-01-30 21:58:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200049
;
-- Jan 30, 2013 9:58:40 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNoSelection=30,Updated=TO_TIMESTAMP('2013-01-30 21:58:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200051
;
-- Jan 30, 2013 9:58:43 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNoSelection=40,Updated=TO_TIMESTAMP('2013-01-30 21:58:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200043
;
-- Jan 30, 2013 9:58:49 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET SeqNoSelection=70,Updated=TO_TIMESTAMP('2013-01-30 21:58:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200046
;
-- Jan 30, 2013 10:00:00 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_Column SET DefaultValue='0',Updated=TO_TIMESTAMP('2013-01-30 22:00:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=208445
;
-- Jan 30, 2013 10:00:10 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
INSERT INTO t_alter_column values('ad_infocolumn','SeqNoSelection','NUMERIC(10)',null,'0')
;
-- Jan 30, 2013 10:08:33 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET IsIdentifier='Y',Updated=TO_TIMESTAMP('2013-01-30 22:08:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200023
;
-- Jan 30, 2013 10:08:40 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET IsIdentifier='Y',Updated=TO_TIMESTAMP('2013-01-30 22:08:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200024
;
-- Jan 30, 2013 10:09:46 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET IsIdentifier='Y',Updated=TO_TIMESTAMP('2013-01-30 22:09:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200000
;
-- Jan 30, 2013 10:09:58 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET IsIdentifier='Y',Updated=TO_TIMESTAMP('2013-01-30 22:09:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200001
;
-- Jan 30, 2013 10:10:43 PM MYT
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
UPDATE AD_InfoColumn SET IsIdentifier='Y',Updated=TO_TIMESTAMP('2013-01-30 22:10:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200041
;
UPDATE AD_InfoColumn SET SeqNoSelection = 0 WHERE SeqNoSelection IS NULL
;
SELECT register_migration_script('201301301425_IDEMPIERE-325.sql') FROM dual
;

View File

@ -137,6 +137,7 @@ public class CalloutInfoWindow implements IColumnCallout {
infoColumn.setAD_Val_Rule_ID(col.getAD_Val_Rule_ID()); infoColumn.setAD_Val_Rule_ID(col.getAD_Val_Rule_ID());
if ((col.isSelectionColumn() || col.isIdentifier()) && !col.isKey()) { if ((col.isSelectionColumn() || col.isIdentifier()) && !col.isKey()) {
infoColumn.setIsQueryCriteria(true); infoColumn.setIsQueryCriteria(true);
infoColumn.setIsIdentifier(col.isIdentifier());
setQueryOption(infoColumn.getAD_Reference_ID(), infoColumn); setQueryOption(infoColumn.getAD_Reference_ID(), infoColumn);
} }
break; break;

View File

@ -281,6 +281,19 @@ public interface I_AD_InfoColumn
*/ */
public boolean isDisplayed(); public boolean isDisplayed();
/** Column name IsIdentifier */
public static final String COLUMNNAME_IsIdentifier = "IsIdentifier";
/** Set Identifier.
* This column is part of the record identifier
*/
public void setIsIdentifier (boolean IsIdentifier);
/** Get Identifier.
* This column is part of the record identifier
*/
public boolean isIdentifier();
/** Column name IsQueryCriteria */ /** Column name IsQueryCriteria */
public static final String COLUMNNAME_IsQueryCriteria = "IsQueryCriteria"; public static final String COLUMNNAME_IsQueryCriteria = "IsQueryCriteria";
@ -361,6 +374,19 @@ public interface I_AD_InfoColumn
*/ */
public int getSeqNo(); public int getSeqNo();
/** Column name SeqNoSelection */
public static final String COLUMNNAME_SeqNoSelection = "SeqNoSelection";
/** Set Selection Column Sequence.
* Selection Column Sequence
*/
public void setSeqNoSelection (int SeqNoSelection);
/** Get Selection Column Sequence.
* Selection Column Sequence
*/
public int getSeqNoSelection();
/** Column name Updated */ /** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated"; public static final String COLUMNNAME_Updated = "Updated";

View File

@ -30,7 +30,7 @@ public class X_AD_InfoColumn extends PO implements I_AD_InfoColumn, I_Persistent
/** /**
* *
*/ */
private static final long serialVersionUID = 20130108L; private static final long serialVersionUID = 20130130L;
/** Standard Constructor */ /** Standard Constructor */
public X_AD_InfoColumn (Properties ctx, int AD_InfoColumn_ID, String trxName) public X_AD_InfoColumn (Properties ctx, int AD_InfoColumn_ID, String trxName)
@ -48,6 +48,8 @@ public class X_AD_InfoColumn extends PO implements I_AD_InfoColumn, I_Persistent
// Y // Y
setIsDisplayed (true); setIsDisplayed (true);
// Y // Y
setIsIdentifier (false);
// N
setIsQueryCriteria (false); setIsQueryCriteria (false);
setName (null); setName (null);
setSelectClause (null); setSelectClause (null);
@ -397,6 +399,30 @@ public class X_AD_InfoColumn extends PO implements I_AD_InfoColumn, I_Persistent
return false; return false;
} }
/** Set Identifier.
@param IsIdentifier
This column is part of the record identifier
*/
public void setIsIdentifier (boolean IsIdentifier)
{
set_Value (COLUMNNAME_IsIdentifier, Boolean.valueOf(IsIdentifier));
}
/** Get Identifier.
@return This column is part of the record identifier
*/
public boolean isIdentifier ()
{
Object oo = get_Value(COLUMNNAME_IsIdentifier);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Query Criteria. /** Set Query Criteria.
@param IsQueryCriteria @param IsQueryCriteria
The column is also used as a query criteria The column is also used as a query criteria
@ -533,4 +559,24 @@ public class X_AD_InfoColumn extends PO implements I_AD_InfoColumn, I_Persistent
return 0; return 0;
return ii.intValue(); return ii.intValue();
} }
/** Set Selection Column Sequence.
@param SeqNoSelection
Selection Column Sequence
*/
public void setSeqNoSelection (int SeqNoSelection)
{
set_Value (COLUMNNAME_SeqNoSelection, Integer.valueOf(SeqNoSelection));
}
/** Get Selection Column Sequence.
@return Selection Column Sequence
*/
public int getSeqNoSelection ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_SeqNoSelection);
if (ii == null)
return 0;
return ii.intValue();
}
} }

View File

@ -3,6 +3,10 @@
*/ */
package org.adempiere.webui.info; package org.adempiere.webui.info;
import org.adempiere.webui.editor.WEditor;
import org.compiere.util.Env;
import org.compiere.util.Util;
/** /**
* @author hengsin * @author hengsin
* *
@ -28,7 +32,6 @@ public class InfoOrderWindow extends InfoWindow {
int AD_InfoWindow_ID) { int AD_InfoWindow_ID) {
super(WindowNo, tableName, keyColumn, queryValue, multipleSelection, super(WindowNo, tableName, keyColumn, queryValue, multipleSelection,
whereClause, AD_InfoWindow_ID); whereClause, AD_InfoWindow_ID);
// TODO Auto-generated constructor stub
} }
/** /**
@ -46,7 +49,19 @@ public class InfoOrderWindow extends InfoWindow {
int AD_InfoWindow_ID, boolean lookup) { int AD_InfoWindow_ID, boolean lookup) {
super(WindowNo, tableName, keyColumn, queryValue, multipleSelection, super(WindowNo, tableName, keyColumn, queryValue, multipleSelection,
whereClause, AD_InfoWindow_ID, lookup); whereClause, AD_InfoWindow_ID, lookup);
// TODO Auto-generated constructor stub
} }
@Override
protected void createParameterPanel() {
super.createParameterPanel();
String isSOTrx = Env.getContext(Env.getCtx(), p_WindowNo, "IsSOTrx");
if (!Util.isEmpty(isSOTrx)) {
for (WEditor editor : editors) {
if (editor.getGridField() != null && editor.getGridField().getColumnName().equals("IsSOTrx")) {
editor.setValue(isSOTrx);
break;
}
}
}
}
} }

View File

@ -9,6 +9,7 @@ import java.sql.Timestamp;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Properties; import java.util.Properties;
import java.util.TreeMap;
import java.util.logging.Level; import java.util.logging.Level;
import org.adempiere.webui.AdempiereWebUI; import org.adempiere.webui.AdempiereWebUI;
@ -73,6 +74,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
private Vbox southBody; private Vbox southBody;
/** List of WEditors */ /** List of WEditors */
protected List<WEditor> editors; protected List<WEditor> editors;
protected List<WEditor> identifiers;
protected Properties infoContext; protected Properties infoContext;
/** Max Length of Fields */ /** Max Length of Fields */
@ -133,30 +135,34 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
private void processQueryValue() { private void processQueryValue() {
//try first 2 only //try first 2 only
String[] values = queryValue.split("[_]"); for(int i = 0; i < identifiers.size() && i < 2; i++) {
if (values.length == 2) { WEditor editor = identifiers.get(i);
for(int i = 0; i < values.length && i < editors.size(); i++) { editor.setValue(queryValue);
WEditor editor = editors.get(i);
editor.setValue(values[i]);
}
testCount(); testCount();
} else { if (m_count > 0) {
for(int i = 0; i < editors.size() && i < 2; i++) { break;
WEditor editor = editors.get(i); } else {
editor.setValue(queryValue); editor.setValue(null);
testCount(); }
if (m_count > 0) { }
break;
} else { boolean splitValue = false;
editor.setValue(null); if (m_count <= 0) {
String[] values = queryValue.split("[_]");
if (values.length == 2 && identifiers.size() == 2) {
splitValue = true;
for(int i = 0; i < values.length && i < identifiers.size(); i++) {
WEditor editor = identifiers.get(i);
editor.setValue(values[i]);
} }
testCount();
} }
} }
if (m_count > 0) { if (m_count > 0) {
executeQuery(); executeQuery();
renderItems(); renderItems();
} else if (editors.size() > 0 && values.length != 2) { } else if (!splitValue) {
editors.get(0).setValue(queryValue); editors.get(0).setValue(queryValue);
} }
} }
@ -339,6 +345,10 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
continue; continue;
} }
String columnName = mInfoColumn.getSelectClause(); String columnName = mInfoColumn.getSelectClause();
int asIndex = columnName.toUpperCase().lastIndexOf(" AS ");
if (asIndex > 0) {
columnName = columnName.substring(0, asIndex);
}
if (builder.length() > 0) { if (builder.length() > 0) {
builder.append(checkAND.isChecked() ? " AND " : " OR "); builder.append(checkAND.isChecked() ? " AND " : " OR ");
} else if (p_whereClause != null && p_whereClause.trim().length() > 0) { } else if (p_whereClause != null && p_whereClause.trim().length() > 0) {
@ -520,10 +530,25 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
parameterGrid.appendChild(rows); parameterGrid.appendChild(rows);
editors = new ArrayList<WEditor>(); editors = new ArrayList<WEditor>();
identifiers = new ArrayList<WEditor>();
TreeMap<Integer, List<Object[]>> tree = new TreeMap<Integer, List<Object[]>>();
for (int i = 0; i < infoColumns.length; i++) for (int i = 0; i < infoColumns.length; i++)
{ {
if (infoColumns[i].isQueryCriteria()) if (infoColumns[i].isQueryCriteria()) {
addSelectionColumn(gridFields.get(i)); List<Object[]> list = tree.get(infoColumns[i].getSeqNoSelection());
if (list == null) {
list = new ArrayList<Object[]>();
tree.put(infoColumns[i].getSeqNoSelection(), list);
}
list.add(new Object[]{infoColumns[i], gridFields.get(i)});
}
}
for (Integer i : tree.keySet()) {
List<Object[]> list = tree.get(i);
for(Object[] value : list) {
addSelectionColumn((MInfoColumn)value[0], (GridField)value[1]);
}
} }
if (checkAND == null) { if (checkAND == null) {
@ -558,9 +583,10 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
/** /**
* Add Selection Column to first Tab * Add Selection Column to first Tab
* @param infoColumn
* @param mField field * @param mField field
**/ **/
protected void addSelectionColumn(GridField mField) protected void addSelectionColumn(MInfoColumn infoColumn, GridField mField)
{ {
int displayLength = mField.getDisplayLength(); int displayLength = mField.getDisplayLength();
if (displayLength <= 0 || displayLength > FIELDLENGTH) if (displayLength <= 0 || displayLength > FIELDLENGTH)
@ -590,10 +616,22 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
if (displayLength > 0) // set it back if (displayLength > 0) // set it back
mField.setDisplayLength(displayLength); mField.setDisplayLength(displayLength);
// //
if (label != null) {
if (infoColumn.getQueryOperator().equals(X_AD_InfoColumn.QUERYOPERATOR_Gt) ||
infoColumn.getQueryOperator().equals(X_AD_InfoColumn.QUERYOPERATOR_GtEq) ||
infoColumn.getQueryOperator().equals(X_AD_InfoColumn.QUERYOPERATOR_Le) ||
infoColumn.getQueryOperator().equals(X_AD_InfoColumn.QUERYOPERATOR_LeEq) ||
infoColumn.getQueryOperator().equals(X_AD_InfoColumn.QUERYOPERATOR_NotEq )) {
label.setValue(label.getValue() + " " + infoColumn.getQueryOperator());
}
}
addSearchParameter(label, fieldEditor); addSearchParameter(label, fieldEditor);
editors.add(editor); editors.add(editor);
if (infoColumn.isIdentifier()) {
identifiers.add(editor);
}
fieldEditor.addEventListener(Events.ON_OK,this); fieldEditor.addEventListener(Events.ON_OK,this);
} // addSelectionColumn } // addSelectionColumn
@ -665,9 +703,10 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
if (row == -1) if (row == -1)
return; return;
int column = 0; int column = -1;
for(ColumnInfo columnInfo : columnInfos) for(ColumnInfo columnInfo : columnInfos)
{ {
column++;
GridField field = columnInfo.getGridField(); GridField field = columnInfo.getGridField();
if (field == null) continue; if (field == null) continue;
@ -687,7 +726,6 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
Object value = contentPanel.getValueAt(row, column); Object value = contentPanel.getValueAt(row, column);
Env.setContext(Env.getCtx(), p_WindowNo, Env.TAB_INFO, field.getColumnName(), value == null ? "" : value.toString()); Env.setContext(Env.getCtx(), p_WindowNo, Env.TAB_INFO, field.getColumnName(), value == null ? "" : value.toString());
} }
column++;
} }
} // saveSelectionDetail } // saveSelectionDetail