IDEMPIERE-5746 Bank Statement and Production cannot use Overwrite Date/Seq on Complete (#1882)

* IDEMPIERE-5746 Bank Statement and Production cannot use Overwrite Date/Seq on Complete

* - Backward compatibility - assign mandatory default doc type
This commit is contained in:
Carlos Ruiz 2023-06-09 14:04:45 +02:00 committed by GitHub
parent f0c87202b4
commit 903e3859b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 1768 additions and 52 deletions

View File

@ -0,0 +1,788 @@
-- IDEMPIERE-5746 Bank Statement and Production cannot use Overwrite Date/Seq on Complete
SELECT register_migration_script('202306061239_IDEMPIERE-5746.sql') FROM dual;
SET SQLBLANKLINES ON
SET DEFINE OFF
-- Jun 6, 2023, 12:39:58 PM CEST
INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,Name,Type,Code,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Val_Rule_UU) VALUES (200177,'C_DocType Production','S','C_DocType.DocBaseType=''MMP'' AND C_DocType.AD_Client_ID=@#AD_Client_ID@',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:39:58','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:39:58','YYYY-MM-DD HH24:MI:SS'),100,'D','deadd34c-62f0-46dc-a2e0-39098ac73e01')
;
-- Jun 6, 2023, 12:40:44 PM CEST
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (215846,0,'Document Type','Document type or rules','The Document Type determines document sequence and processing rules',325,200177,'C_DocType_ID',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2023-06-06 12:40:44','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:40:44','YYYY-MM-DD HH24:MI:SS'),100,196,'N','N','D','N','N','N','Y','ef7d222d-4904-4a05-82e2-e031e63f38a2','Y',0,'N','N','N')
;
-- Jun 6, 2023, 12:40:46 PM CEST
UPDATE AD_Column SET FKConstraintName='CDocType_MProduction', FKConstraintType='N',Updated=TO_TIMESTAMP('2023-06-06 12:40:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=215846
;
-- Jun 6, 2023, 12:40:46 PM CEST
ALTER TABLE M_Production ADD C_DocType_ID NUMBER(10) DEFAULT NULL
;
-- Jun 6, 2023, 12:40:46 PM CEST
ALTER TABLE M_Production ADD CONSTRAINT CDocType_MProduction FOREIGN KEY (C_DocType_ID) REFERENCES c_doctype(c_doctype_id) DEFERRABLE INITIALLY DEFERRED
;
UPDATE M_Production
SET C_DocType_ID=(SELECT C_DocType_ID FROM C_DocType dt WHERE dt.AD_Client_ID=M_Production.AD_Client_ID AND DocBaseType='MMP' ORDER BY C_DocType_ID FETCH FIRST 1 ROWS ONLY)
WHERE C_DocType_ID IS NULL
;
-- Jun 6, 2023, 12:43:14 PM CEST
UPDATE AD_Column SET IsMandatory='Y', IsUpdateable='Y',Updated=TO_TIMESTAMP('2023-06-06 12:43:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=215846
;
-- Jun 6, 2023, 12:43:15 PM CEST
ALTER TABLE M_Production MODIFY C_DocType_ID NUMBER(10)
;
-- Jun 6, 2023, 12:43:15 PM CEST
ALTER TABLE M_Production MODIFY C_DocType_ID NOT NULL
;
-- Jun 6, 2023, 12:44:40 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207633,'Reversal ID','ID of document reversal',53344,211207,'Y',10,280,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:44:40','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:44:40','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','94a06e64-f219-42f7-879f-ba539b263eac','Y',300,2)
;
-- Jun 6, 2023, 12:44:40 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207634,'Document Type','Document type or rules','The Document Type determines document sequence and processing rules',53344,215846,'Y',22,290,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:44:40','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:44:40','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','0ec67c76-e8c0-46fc-b9e0-a5d94b306317','Y',310,2)
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207634
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, XPosition=4,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59742
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=50,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59745
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=60,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59741
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=70,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59740
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=80,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59744
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=90,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59752
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=100,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59743
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=110,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206081
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=120,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59754
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=130,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62015
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=140,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59756
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=150,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202852
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=160,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59736
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=170,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62017
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=180,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62018
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=190,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206801
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=200,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59755
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=210,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59737
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=220,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59738
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=230,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59757
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=240,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59758
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=250,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59759
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=260,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202853
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=270, XPosition=4,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59749
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=280,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59748
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=0,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204950
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207633
;
-- Jun 6, 2023, 12:46:32 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207635,'Processed On','The date+time (expressed in decimal format) when the document has been processed','The ProcessedOn Date+Time save the exact moment (nanoseconds precision if allowed by the DB) when a document has been processed.',319,59049,'Y',20,200,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:32','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:32','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y','D','7b6c3314-4970-438b-9dca-f31e80189628','Y',260,2)
;
-- Jun 6, 2023, 12:46:33 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207636,'Product','Product, Service, Item','Identifies an item which is either purchased or sold in this organization.',319,59962,'Y',22,210,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:32','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:32','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','d8e2a03a-a0b6-43d5-a8a8-7a37fefceffc','Y',270,2)
;
-- Jun 6, 2023, 12:46:33 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207637,'Locator','Warehouse Locator','The Locator indicates where in a Warehouse a product is located.',319,59963,'Y',10,220,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:33','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','73335d9a-ef56-4ec1-8543-4d48a0cef3d5','Y',280,2)
;
-- Jun 6, 2023, 12:46:34 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207638,'Production Quantity','Quantity of products to produce','The Production Quantity identifies the number of products to produce',319,59964,'Y',10,230,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:33','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','daa4c75f-00c0-49fb-9a65-dd8dbacf7854','Y',290,2)
;
-- Jun 6, 2023, 12:46:34 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207639,'Date Promised','Date Order was promised','The Date Promised indicates the date, if any, that an Order was promised for.',319,59966,'Y',7,240,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','35ed0056-dac7-47b6-8649-1c4b28f76469','Y',300,2)
;
-- Jun 6, 2023, 12:46:34 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (207640,'M_Production_UU',319,60928,'N',36,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','dfb77a2a-6597-4c0c-b931-34f40213b89a','N',2)
;
-- Jun 6, 2023, 12:46:35 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (207641,'Complete','It is complete','Indication that this is complete',319,61940,'Y',1,250,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','27e3e0c9-a47a-4085-bf4e-ac91e45d0270','Y',310,2,2)
;
-- Jun 6, 2023, 12:46:35 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207642,'Sales Order Line','Sales Order Line','The Sales Order Line is a unique identifier for a line in an order.',319,61941,'Y',10,260,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:35','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:35','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','095d9a3f-85dd-4ece-82ce-be9ae1fd65f9','Y',320,2)
;
-- Jun 6, 2023, 12:46:35 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207643,'Business Partner','Identifies a Business Partner','A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson',319,61942,'Y',10,270,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:35','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:35','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','75931f0d-0ff0-4afe-bfd6-4e4e5bdd24d0','Y',330,2)
;
-- Jun 6, 2023, 12:46:36 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207644,'Reversal ID','ID of document reversal',319,211207,'Y',10,280,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:35','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:35','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','8e2ff9a7-f1b6-4682-bec1-cda9cb084943','Y',340,2)
;
-- Jun 6, 2023, 12:46:36 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207645,'Project Phase','Phase of a Project',319,211817,'Y',10,290,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:36','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:36','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f8904c06-782f-48de-b982-cb5c214acaf6','Y',350,2)
;
-- Jun 6, 2023, 12:46:36 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207646,'Project Task','Actual Project Task in a Phase','A Project Task in a Project Phase represents the actual work.',319,211818,'Y',10,300,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:36','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:36','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','57fb25b7-9c30-4a28-8c41-d86cec465710','Y',360,2)
;
-- Jun 6, 2023, 12:46:37 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207647,'BOM & Formula','BOM & Formula',319,213948,'Y',22,310,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:36','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:36','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','250832f7-f0b8-4b59-a371-506ff5ab1f29','Y',370,2)
;
-- Jun 6, 2023, 12:46:37 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207648,'Shipment/Receipt Line','Line on Shipment or Receipt document','The Shipment/Receipt Line indicates a unique line in a Shipment/Receipt document',319,214619,'Y',22,320,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:37','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:37','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','addbf796-6d3b-4029-8c3f-159f8abc87f5','Y',380,2)
;
-- Jun 6, 2023, 12:46:37 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207649,'Document Type','Document type or rules','The Document Type determines document sequence and processing rules',319,215846,'Y',22,330,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:37','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:37','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f29b716e-03c8-4f83-bf18-734021b4d559','Y',390,2)
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207649
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, XPosition=4,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202854
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=50,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3786
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=60,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3787
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=70,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3785
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=80,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3788
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=90,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202849
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=100,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3791
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=110,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202850
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=120,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7817
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=130,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7820
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=140,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7821
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=150,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7818
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=160,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7822
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=170,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7819
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=180,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3790
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=190,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202851
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=200,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5145
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207647
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207643
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207641
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207639
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207637
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=0,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207640
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207635
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207636
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207638
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207645
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207646
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207644
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207642
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207648
;
-- Jun 6, 2023, 12:48:08 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207648
;
-- Jun 6, 2023, 12:48:08 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207647
;
-- Jun 6, 2023, 12:48:08 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207646
;
-- Jun 6, 2023, 12:48:08 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207645
;
-- Jun 6, 2023, 12:48:08 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207644
;
-- Jun 6, 2023, 12:48:08 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207643
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207642
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207641
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207639
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207638
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207637
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207636
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207635
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3789
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3782
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3783
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202628
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3784
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3786
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3787
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3785
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3788
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7817
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7820
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7821
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7818
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7822
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7819
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3790
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=130,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3791
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=140,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5145
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=150,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202849
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=160,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202850
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=170,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202851
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=180,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207649
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=190,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202854
;
-- Jun 6, 2023, 12:48:45 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59746
;
-- Jun 6, 2023, 12:48:45 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207633
;
-- Jun 6, 2023, 12:48:45 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2023-06-06 12:48:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207634
;
-- Jun 6, 2023, 12:49:05 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2023-06-06 12:49:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59746
;
-- Jun 6, 2023, 12:49:05 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2023-06-06 12:49:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207634
;
-- Jun 6, 2023, 12:49:05 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2023-06-06 12:49:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59742
;
-- Jun 6, 2023, 12:49:05 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2023-06-06 12:49:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59745
;
-- Jun 6, 2023, 12:49:05 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2023-06-06 12:49:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59741
;
-- Jun 6, 2023, 12:49:05 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2023-06-06 12:49:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59736
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59740
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59744
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59752
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59743
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206081
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59754
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=130,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62015
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=140,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62016
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=150,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202852
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=160,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59756
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=170,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59737
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=180,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59749
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=190,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59748
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=200,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59755
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=210,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59738
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=220,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62017
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=230,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62018
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=240,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206801
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=250,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59757
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=260,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59758
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=270,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59759
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=280,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202853
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=290,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203487
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=300,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203488
;
-- Jun 6, 2023, 12:51:47 PM CEST
INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,Name,Type,Code,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Val_Rule_UU) VALUES (200178,'C_DocType Bank Statement','S','C_DocType.DocBaseType=''CMB'' AND C_DocType.AD_Client_ID=@#AD_Client_ID@',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:51:47','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:51:47','YYYY-MM-DD HH24:MI:SS'),100,'D','afea2403-ccc2-40db-a60b-94ae80593b81')
;
-- Jun 6, 2023, 12:52:10 PM CEST
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (215847,0,'Document Type','Document type or rules','The Document Type determines document sequence and processing rules',392,200178,'C_DocType_ID',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2023-06-06 12:52:09','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:52:09','YYYY-MM-DD HH24:MI:SS'),100,196,'N','N','D','N','N','N','Y','8918a65f-2382-40d4-8a96-d93a5302797f','Y',0,'N','N','N')
;
-- Jun 6, 2023, 12:52:22 PM CEST
UPDATE AD_Column SET FKConstraintName='CDocType_CBankStatement', FKConstraintType='N',Updated=TO_TIMESTAMP('2023-06-06 12:52:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=215847
;
-- Jun 6, 2023, 12:52:22 PM CEST
ALTER TABLE C_BankStatement ADD C_DocType_ID NUMBER(10) DEFAULT NULL
;
-- Jun 6, 2023, 12:52:22 PM CEST
ALTER TABLE C_BankStatement ADD CONSTRAINT CDocType_CBankStatement FOREIGN KEY (C_DocType_ID) REFERENCES c_doctype(c_doctype_id) DEFERRABLE INITIALLY DEFERRED
;
UPDATE C_BankStatement
SET C_DocType_ID=(SELECT C_DocType_ID FROM C_DocType dt WHERE dt.AD_Client_ID=C_BankStatement.AD_Client_ID AND DocBaseType='CMB' ORDER BY C_DocType_ID FETCH FIRST 1 ROWS ONLY)
WHERE C_DocType_ID IS NULL
;
-- Jun 6, 2023, 12:53:05 PM CEST
UPDATE AD_Column SET IsMandatory='Y', IsUpdateable='Y',Updated=TO_TIMESTAMP('2023-06-06 12:53:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=215847
;
-- Jun 6, 2023, 12:53:07 PM CEST
ALTER TABLE C_BankStatement MODIFY C_DocType_ID NUMBER(10)
;
-- Jun 6, 2023, 12:53:07 PM CEST
ALTER TABLE C_BankStatement MODIFY C_DocType_ID NOT NULL
;
-- Jun 6, 2023, 12:54:35 PM CEST
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (215848,1,'Document No','Document sequence number of the document','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).',392,'DocumentNo',60,'N','N','Y','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2023-06-06 12:54:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:54:34','YYYY-MM-DD HH24:MI:SS'),100,290,'N','Y','D','N','N','N','Y','56b08193-781a-4e18-b6cf-73aa89358238','Y',10,'N','N','N')
;
-- Jun 6, 2023, 12:55:26 PM CEST
UPDATE AD_Column SET IsMandatory='N',Updated=TO_TIMESTAMP('2023-06-06 12:55:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=215848
;
-- Jun 6, 2023, 12:55:28 PM CEST
ALTER TABLE C_BankStatement ADD DocumentNo VARCHAR2(60 CHAR) DEFAULT NULL
;
UPDATE C_BankStatement
SET DocumentNo=Name WHERE DocumentNo IS NULL
;
-- Jun 6, 2023, 12:55:43 PM CEST
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2023-06-06 12:55:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=215848
;
-- Jun 6, 2023, 12:55:44 PM CEST
ALTER TABLE C_BankStatement MODIFY DocumentNo VARCHAR2(60 CHAR)
;
-- Jun 6, 2023, 12:55:44 PM CEST
ALTER TABLE C_BankStatement MODIFY DocumentNo NOT NULL
;
-- Jun 6, 2023, 12:57:02 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207650,'Document Type','Document type or rules','The Document Type determines document sequence and processing rules',328,215847,'Y',22,230,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:57:01','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:57:01','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','9eb62046-814e-42ad-9b23-994f43d42504','Y',200,2)
;
-- Jun 6, 2023, 12:57:02 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207651,'Document No','Document sequence number of the document','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).',328,215848,'Y',60,240,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:57:02','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:57:02','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','b6fda95d-b4c1-4e30-ae6e-5d370caa6785','Y',210,5)
;
-- Jun 6, 2023, 12:57:30 PM CEST
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:57:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207650
;
-- Jun 6, 2023, 12:57:30 PM CEST
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50, XPosition=4, ColumnSpan=2,Updated=TO_TIMESTAMP('2023-06-06 12:57:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207651
;
-- Jun 6, 2023, 12:57:30 PM CEST
UPDATE AD_Field SET SeqNo=60,Updated=TO_TIMESTAMP('2023-06-06 12:57:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4120
;
-- Jun 6, 2023, 12:57:30 PM CEST
UPDATE AD_Field SET SeqNo=70,Updated=TO_TIMESTAMP('2023-06-06 12:57:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4002
;
-- Jun 6, 2023, 12:57:30 PM CEST
UPDATE AD_Field SET SeqNo=80,Updated=TO_TIMESTAMP('2023-06-06 12:57:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=61967
;
-- Jun 6, 2023, 12:57:30 PM CEST
UPDATE AD_Field SET SeqNo=90,Updated=TO_TIMESTAMP('2023-06-06 12:57:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3996
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=100,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3998
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=110,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4119
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=120,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3993
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=130,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4365
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=140,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201691
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=150,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4003
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=160,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8933
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=170,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200599
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=180,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3997
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=190,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8686
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=200,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8687
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=210,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10585
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=220,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10586
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=230,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10587
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=240,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3999
;

View File

@ -0,0 +1,785 @@
-- IDEMPIERE-5746 Bank Statement and Production cannot use Overwrite Date/Seq on Complete
SELECT register_migration_script('202306061239_IDEMPIERE-5746.sql') FROM dual;
-- Jun 6, 2023, 12:39:58 PM CEST
INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,Name,Type,Code,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Val_Rule_UU) VALUES (200177,'C_DocType Production','S','C_DocType.DocBaseType=''MMP'' AND C_DocType.AD_Client_ID=@#AD_Client_ID@',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:39:58','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:39:58','YYYY-MM-DD HH24:MI:SS'),100,'D','deadd34c-62f0-46dc-a2e0-39098ac73e01')
;
-- Jun 6, 2023, 12:40:44 PM CEST
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (215846,0,'Document Type','Document type or rules','The Document Type determines document sequence and processing rules',325,200177,'C_DocType_ID',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2023-06-06 12:40:44','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:40:44','YYYY-MM-DD HH24:MI:SS'),100,196,'N','N','D','N','N','N','Y','ef7d222d-4904-4a05-82e2-e031e63f38a2','Y',0,'N','N','N')
;
-- Jun 6, 2023, 12:40:46 PM CEST
UPDATE AD_Column SET FKConstraintName='CDocType_MProduction', FKConstraintType='N',Updated=TO_TIMESTAMP('2023-06-06 12:40:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=215846
;
-- Jun 6, 2023, 12:40:46 PM CEST
ALTER TABLE M_Production ADD COLUMN C_DocType_ID NUMERIC(10) DEFAULT NULL
;
-- Jun 6, 2023, 12:40:46 PM CEST
ALTER TABLE M_Production ADD CONSTRAINT CDocType_MProduction FOREIGN KEY (C_DocType_ID) REFERENCES c_doctype(c_doctype_id) DEFERRABLE INITIALLY DEFERRED
;
UPDATE M_Production
SET C_DocType_ID=(SELECT C_DocType_ID FROM C_DocType dt WHERE dt.AD_Client_ID=M_Production.AD_Client_ID AND DocBaseType='MMP' ORDER BY C_DocType_ID FETCH FIRST 1 ROWS ONLY)
WHERE C_DocType_ID IS NULL
;
-- Jun 6, 2023, 12:43:14 PM CEST
UPDATE AD_Column SET IsMandatory='Y', IsUpdateable='Y',Updated=TO_TIMESTAMP('2023-06-06 12:43:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=215846
;
-- Jun 6, 2023, 12:43:15 PM CEST
INSERT INTO t_alter_column values('m_production','C_DocType_ID','NUMERIC(10)',null,null)
;
-- Jun 6, 2023, 12:43:15 PM CEST
INSERT INTO t_alter_column values('m_production','C_DocType_ID',null,'NOT NULL',null)
;
-- Jun 6, 2023, 12:44:40 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207633,'Reversal ID','ID of document reversal',53344,211207,'Y',10,280,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:44:40','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:44:40','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','94a06e64-f219-42f7-879f-ba539b263eac','Y',300,2)
;
-- Jun 6, 2023, 12:44:40 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207634,'Document Type','Document type or rules','The Document Type determines document sequence and processing rules',53344,215846,'Y',22,290,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:44:40','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:44:40','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','0ec67c76-e8c0-46fc-b9e0-a5d94b306317','Y',310,2)
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207634
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, XPosition=4,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59742
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=50,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59745
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=60,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59741
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=70,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59740
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=80,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59744
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=90,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59752
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=100,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59743
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=110,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206081
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=120,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59754
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=130,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62015
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=140,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59756
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=150,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202852
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=160,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59736
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=170,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62017
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=180,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62018
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=190,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206801
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=200,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59755
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=210,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59737
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=220,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59738
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=230,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59757
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=240,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59758
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=250,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59759
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=260,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202853
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=270, XPosition=4,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59749
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=280,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59748
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET SeqNo=0,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=204950
;
-- Jun 6, 2023, 12:46:05 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207633
;
-- Jun 6, 2023, 12:46:32 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207635,'Processed On','The date+time (expressed in decimal format) when the document has been processed','The ProcessedOn Date+Time save the exact moment (nanoseconds precision if allowed by the DB) when a document has been processed.',319,59049,'Y',20,200,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:32','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:32','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y','D','7b6c3314-4970-438b-9dca-f31e80189628','Y',260,2)
;
-- Jun 6, 2023, 12:46:33 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207636,'Product','Product, Service, Item','Identifies an item which is either purchased or sold in this organization.',319,59962,'Y',22,210,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:32','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:32','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','d8e2a03a-a0b6-43d5-a8a8-7a37fefceffc','Y',270,2)
;
-- Jun 6, 2023, 12:46:33 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207637,'Locator','Warehouse Locator','The Locator indicates where in a Warehouse a product is located.',319,59963,'Y',10,220,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:33','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','73335d9a-ef56-4ec1-8543-4d48a0cef3d5','Y',280,2)
;
-- Jun 6, 2023, 12:46:34 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207638,'Production Quantity','Quantity of products to produce','The Production Quantity identifies the number of products to produce',319,59964,'Y',10,230,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:33','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','daa4c75f-00c0-49fb-9a65-dd8dbacf7854','Y',290,2)
;
-- Jun 6, 2023, 12:46:34 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207639,'Date Promised','Date Order was promised','The Date Promised indicates the date, if any, that an Order was promised for.',319,59966,'Y',7,240,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','35ed0056-dac7-47b6-8649-1c4b28f76469','Y',300,2)
;
-- Jun 6, 2023, 12:46:34 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (207640,'M_Production_UU',319,60928,'N',36,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','dfb77a2a-6597-4c0c-b931-34f40213b89a','N',2)
;
-- Jun 6, 2023, 12:46:35 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (207641,'Complete','It is complete','Indication that this is complete',319,61940,'Y',1,250,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','27e3e0c9-a47a-4085-bf4e-ac91e45d0270','Y',310,2,2)
;
-- Jun 6, 2023, 12:46:35 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207642,'Sales Order Line','Sales Order Line','The Sales Order Line is a unique identifier for a line in an order.',319,61941,'Y',10,260,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:35','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:35','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','095d9a3f-85dd-4ece-82ce-be9ae1fd65f9','Y',320,2)
;
-- Jun 6, 2023, 12:46:35 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207643,'Business Partner','Identifies a Business Partner','A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson',319,61942,'Y',10,270,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:35','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:35','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','75931f0d-0ff0-4afe-bfd6-4e4e5bdd24d0','Y',330,2)
;
-- Jun 6, 2023, 12:46:36 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207644,'Reversal ID','ID of document reversal',319,211207,'Y',10,280,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:35','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:35','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','8e2ff9a7-f1b6-4682-bec1-cda9cb084943','Y',340,2)
;
-- Jun 6, 2023, 12:46:36 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207645,'Project Phase','Phase of a Project',319,211817,'Y',10,290,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:36','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:36','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f8904c06-782f-48de-b982-cb5c214acaf6','Y',350,2)
;
-- Jun 6, 2023, 12:46:36 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207646,'Project Task','Actual Project Task in a Phase','A Project Task in a Project Phase represents the actual work.',319,211818,'Y',10,300,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:36','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:36','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','57fb25b7-9c30-4a28-8c41-d86cec465710','Y',360,2)
;
-- Jun 6, 2023, 12:46:37 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207647,'BOM & Formula','BOM & Formula',319,213948,'Y',22,310,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:36','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:36','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','250832f7-f0b8-4b59-a371-506ff5ab1f29','Y',370,2)
;
-- Jun 6, 2023, 12:46:37 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207648,'Shipment/Receipt Line','Line on Shipment or Receipt document','The Shipment/Receipt Line indicates a unique line in a Shipment/Receipt document',319,214619,'Y',22,320,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:37','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:37','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','addbf796-6d3b-4029-8c3f-159f8abc87f5','Y',380,2)
;
-- Jun 6, 2023, 12:46:37 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207649,'Document Type','Document type or rules','The Document Type determines document sequence and processing rules',319,215846,'Y',22,330,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:46:37','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:46:37','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f29b716e-03c8-4f83-bf18-734021b4d559','Y',390,2)
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207649
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, XPosition=4,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202854
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=50,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3786
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=60,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3787
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=70,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3785
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=80,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3788
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=90,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202849
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=100,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3791
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=110,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202850
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=120,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7817
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=130,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7820
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=140,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7821
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=150,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7818
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=160,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7822
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=170,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7819
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=180,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3790
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=190,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202851
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=200,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5145
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207647
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207643
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207641
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207639
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207637
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET SeqNo=0,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207640
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207635
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207636
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207638
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207645
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207646
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207644
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207642
;
-- Jun 6, 2023, 12:47:34 PM CEST
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:47:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207648
;
-- Jun 6, 2023, 12:48:08 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207648
;
-- Jun 6, 2023, 12:48:08 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207647
;
-- Jun 6, 2023, 12:48:08 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207646
;
-- Jun 6, 2023, 12:48:08 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207645
;
-- Jun 6, 2023, 12:48:08 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207644
;
-- Jun 6, 2023, 12:48:08 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207643
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207642
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207641
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207639
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207638
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207637
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207636
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207635
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3789
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3782
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3783
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202628
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3784
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3786
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3787
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3785
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3788
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7817
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7820
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7821
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7818
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7822
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7819
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3790
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=130,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3791
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=140,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5145
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=150,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202849
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=160,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202850
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=170,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202851
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=180,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207649
;
-- Jun 6, 2023, 12:48:09 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=190,Updated=TO_TIMESTAMP('2023-06-06 12:48:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202854
;
-- Jun 6, 2023, 12:48:45 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59746
;
-- Jun 6, 2023, 12:48:45 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2023-06-06 12:48:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207633
;
-- Jun 6, 2023, 12:48:45 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2023-06-06 12:48:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207634
;
-- Jun 6, 2023, 12:49:05 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2023-06-06 12:49:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59746
;
-- Jun 6, 2023, 12:49:05 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2023-06-06 12:49:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207634
;
-- Jun 6, 2023, 12:49:05 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2023-06-06 12:49:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59742
;
-- Jun 6, 2023, 12:49:05 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2023-06-06 12:49:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59745
;
-- Jun 6, 2023, 12:49:05 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2023-06-06 12:49:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59741
;
-- Jun 6, 2023, 12:49:05 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2023-06-06 12:49:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59736
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59740
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59744
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59752
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59743
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206081
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59754
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=130,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62015
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=140,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62016
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=150,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202852
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=160,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59756
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=170,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59737
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=180,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59749
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=190,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59748
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=200,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59755
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=210,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59738
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=220,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62017
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=230,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=62018
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=240,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206801
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=250,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59757
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=260,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59758
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=270,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=59759
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=280,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202853
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=290,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203487
;
-- Jun 6, 2023, 12:49:06 PM CEST
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=300,Updated=TO_TIMESTAMP('2023-06-06 12:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203488
;
-- Jun 6, 2023, 12:51:47 PM CEST
INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,Name,Type,Code,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Val_Rule_UU) VALUES (200178,'C_DocType Bank Statement','S','C_DocType.DocBaseType=''CMB'' AND C_DocType.AD_Client_ID=@#AD_Client_ID@',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:51:47','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:51:47','YYYY-MM-DD HH24:MI:SS'),100,'D','afea2403-ccc2-40db-a60b-94ae80593b81')
;
-- Jun 6, 2023, 12:52:10 PM CEST
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (215847,0,'Document Type','Document type or rules','The Document Type determines document sequence and processing rules',392,200178,'C_DocType_ID',22,'N','N','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2023-06-06 12:52:09','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:52:09','YYYY-MM-DD HH24:MI:SS'),100,196,'N','N','D','N','N','N','Y','8918a65f-2382-40d4-8a96-d93a5302797f','Y',0,'N','N','N')
;
-- Jun 6, 2023, 12:52:22 PM CEST
UPDATE AD_Column SET FKConstraintName='CDocType_CBankStatement', FKConstraintType='N',Updated=TO_TIMESTAMP('2023-06-06 12:52:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=215847
;
-- Jun 6, 2023, 12:52:22 PM CEST
ALTER TABLE C_BankStatement ADD COLUMN C_DocType_ID NUMERIC(10) DEFAULT NULL
;
-- Jun 6, 2023, 12:52:22 PM CEST
ALTER TABLE C_BankStatement ADD CONSTRAINT CDocType_CBankStatement FOREIGN KEY (C_DocType_ID) REFERENCES c_doctype(c_doctype_id) DEFERRABLE INITIALLY DEFERRED
;
UPDATE C_BankStatement
SET C_DocType_ID=(SELECT C_DocType_ID FROM C_DocType dt WHERE dt.AD_Client_ID=C_BankStatement.AD_Client_ID AND DocBaseType='CMB' ORDER BY C_DocType_ID FETCH FIRST 1 ROWS ONLY)
WHERE C_DocType_ID IS NULL
;
-- Jun 6, 2023, 12:53:05 PM CEST
UPDATE AD_Column SET IsMandatory='Y', IsUpdateable='Y',Updated=TO_TIMESTAMP('2023-06-06 12:53:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=215847
;
-- Jun 6, 2023, 12:53:07 PM CEST
INSERT INTO t_alter_column values('c_bankstatement','C_DocType_ID','NUMERIC(10)',null,null)
;
-- Jun 6, 2023, 12:53:07 PM CEST
INSERT INTO t_alter_column values('c_bankstatement','C_DocType_ID',null,'NOT NULL',null)
;
-- Jun 6, 2023, 12:54:35 PM CEST
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (215848,1,'Document No','Document sequence number of the document','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).',392,'DocumentNo',60,'N','N','Y','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2023-06-06 12:54:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:54:34','YYYY-MM-DD HH24:MI:SS'),100,290,'N','Y','D','N','N','N','Y','56b08193-781a-4e18-b6cf-73aa89358238','Y',10,'N','N','N')
;
-- Jun 6, 2023, 12:55:26 PM CEST
UPDATE AD_Column SET IsMandatory='N',Updated=TO_TIMESTAMP('2023-06-06 12:55:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=215848
;
-- Jun 6, 2023, 12:55:28 PM CEST
ALTER TABLE C_BankStatement ADD COLUMN DocumentNo VARCHAR(60) DEFAULT NULL
;
UPDATE C_BankStatement
SET DocumentNo=Name WHERE DocumentNo IS NULL
;
-- Jun 6, 2023, 12:55:43 PM CEST
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2023-06-06 12:55:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=215848
;
-- Jun 6, 2023, 12:55:44 PM CEST
INSERT INTO t_alter_column values('c_bankstatement','DocumentNo','VARCHAR(60)',null,null)
;
-- Jun 6, 2023, 12:55:44 PM CEST
INSERT INTO t_alter_column values('c_bankstatement','DocumentNo',null,'NOT NULL',null)
;
-- Jun 6, 2023, 12:57:02 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207650,'Document Type','Document type or rules','The Document Type determines document sequence and processing rules',328,215847,'Y',22,230,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:57:01','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:57:01','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','9eb62046-814e-42ad-9b23-994f43d42504','Y',200,2)
;
-- Jun 6, 2023, 12:57:02 PM CEST
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207651,'Document No','Document sequence number of the document','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).',328,215848,'Y',60,240,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-06 12:57:02','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-06 12:57:02','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','b6fda95d-b4c1-4e30-ae6e-5d370caa6785','Y',210,5)
;
-- Jun 6, 2023, 12:57:30 PM CEST
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, XPosition=1,Updated=TO_TIMESTAMP('2023-06-06 12:57:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207650
;
-- Jun 6, 2023, 12:57:30 PM CEST
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50, XPosition=4, ColumnSpan=2,Updated=TO_TIMESTAMP('2023-06-06 12:57:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207651
;
-- Jun 6, 2023, 12:57:30 PM CEST
UPDATE AD_Field SET SeqNo=60,Updated=TO_TIMESTAMP('2023-06-06 12:57:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4120
;
-- Jun 6, 2023, 12:57:30 PM CEST
UPDATE AD_Field SET SeqNo=70,Updated=TO_TIMESTAMP('2023-06-06 12:57:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4002
;
-- Jun 6, 2023, 12:57:30 PM CEST
UPDATE AD_Field SET SeqNo=80,Updated=TO_TIMESTAMP('2023-06-06 12:57:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=61967
;
-- Jun 6, 2023, 12:57:30 PM CEST
UPDATE AD_Field SET SeqNo=90,Updated=TO_TIMESTAMP('2023-06-06 12:57:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3996
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=100,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3998
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=110,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4119
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=120,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3993
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=130,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4365
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=140,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201691
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=150,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4003
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=160,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8933
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=170,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200599
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=180,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3997
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=190,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8686
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=200,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8687
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=210,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10585
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=220,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10586
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=230,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10587
;
-- Jun 6, 2023, 12:57:31 PM CEST
UPDATE AD_Field SET SeqNo=240,Updated=TO_TIMESTAMP('2023-06-06 12:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3999
;

View File

@ -31,12 +31,10 @@ import java.util.Properties;
import java.util.logging.Level; import java.util.logging.Level;
import org.compiere.model.I_C_AllocationHdr; import org.compiere.model.I_C_AllocationHdr;
import org.compiere.model.I_C_BankStatement;
import org.compiere.model.I_C_Cash; import org.compiere.model.I_C_Cash;
import org.compiere.model.I_C_ProjectIssue; import org.compiere.model.I_C_ProjectIssue;
import org.compiere.model.I_M_MatchInv; import org.compiere.model.I_M_MatchInv;
import org.compiere.model.I_M_MatchPO; import org.compiere.model.I_M_MatchPO;
import org.compiere.model.I_M_Production;
import org.compiere.model.MAccount; import org.compiere.model.MAccount;
import org.compiere.model.MAcctSchema; import org.compiere.model.MAcctSchema;
import org.compiere.model.MConversionRate; import org.compiere.model.MConversionRate;
@ -1864,13 +1862,6 @@ public abstract class Doc
if (docTypeId > 0) if (docTypeId > 0)
return docTypeId; return docTypeId;
} }
else if (p_po.get_TableName().equals(I_C_BankStatement.Table_Name))
{
int docTypeId = DB.getSQLValue((String)null, DOC_TYPE_BY_DOC_BASE_TYPE_SQL,
p_po.getAD_Client_ID(), Doc.DOCTYPE_BankStatement);
if (docTypeId > 0)
return docTypeId;
}
else if (p_po.get_TableName().equals(I_C_Cash.Table_Name)) else if (p_po.get_TableName().equals(I_C_Cash.Table_Name))
{ {
int docTypeId = DB.getSQLValue((String)null, DOC_TYPE_BY_DOC_BASE_TYPE_SQL, int docTypeId = DB.getSQLValue((String)null, DOC_TYPE_BY_DOC_BASE_TYPE_SQL,
@ -1885,13 +1876,6 @@ public abstract class Doc
if (docTypeId > 0) if (docTypeId > 0)
return docTypeId; return docTypeId;
} }
else if (p_po.get_TableName().equals(I_M_Production.Table_Name))
{
int docTypeId = DB.getSQLValue((String)null, DOC_TYPE_BY_DOC_BASE_TYPE_SQL,
p_po.getAD_Client_ID(), Doc.DOCTYPE_MatProduction);
if (docTypeId > 0)
return docTypeId;
}
} }
return 0; return 0;
} // getC_DocType_ID } // getC_DocType_ID

View File

@ -54,7 +54,7 @@ public class Doc_BankStatement extends Doc
*/ */
public Doc_BankStatement (MAcctSchema as, ResultSet rs, String trxName) public Doc_BankStatement (MAcctSchema as, ResultSet rs, String trxName)
{ {
super (as, MBankStatement.class, rs, DOCTYPE_BankStatement, trxName); super (as, MBankStatement.class, rs, null, trxName);
} // Doc_Bank } // Doc_Bank
/** Bank Account */ /** Bank Account */

View File

@ -54,7 +54,7 @@ public class Doc_Production extends Doc
*/ */
public Doc_Production (MAcctSchema as, ResultSet rs, String trxName) public Doc_Production (MAcctSchema as, ResultSet rs, String trxName)
{ {
super (as, X_M_Production.class, rs, DOCTYPE_MatProduction, trxName); super (as, X_M_Production.class, rs, null, trxName);
} // Doc_Production } // Doc_Production
/** /**

View File

@ -274,16 +274,10 @@ public class CalloutEngine implements Callout
String docBase = null; String docBase = null;
if (doctypeID <= 0) { if (doctypeID <= 0) {
if (MBankStatement.Table_Name.equals(mTab.getTableName())) if (MInventory.Table_Name.equals(mTab.getTableName()))
docBase = Doc.DOCTYPE_BankStatement;
else if (MBankStatementLine.Table_Name.equals(mTab.getTableName()))
docBase = Doc.DOCTYPE_BankStatement;
else if (MInventory.Table_Name.equals(mTab.getTableName()))
docBase = Doc.DOCTYPE_MatInventory; docBase = Doc.DOCTYPE_MatInventory;
else if (MMovement.Table_Name.equals(mTab.getTableName())) else if (MMovement.Table_Name.equals(mTab.getTableName()))
docBase = Doc.DOCTYPE_MatMovement; docBase = Doc.DOCTYPE_MatMovement;
else if (MProduction.Table_Name.equals(mTab.getTableName()))
docBase = Doc.DOCTYPE_MatProduction;
else if (MRequisition.Table_Name.equals(mTab.getTableName())) else if (MRequisition.Table_Name.equals(mTab.getTableName()))
docBase = Doc.DOCTYPE_PurchaseRequisition; docBase = Doc.DOCTYPE_PurchaseRequisition;
} }

View File

@ -112,6 +112,21 @@ public interface I_C_BankStatement
/** Get C_BankStatement_UU */ /** Get C_BankStatement_UU */
public String getC_BankStatement_UU(); public String getC_BankStatement_UU();
/** Column name C_DocType_ID */
public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID";
/** Set Document Type.
* Document type or rules
*/
public void setC_DocType_ID (int C_DocType_ID);
/** Get Document Type.
* Document type or rules
*/
public int getC_DocType_ID();
public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException;
/** Column name CopyFrom */ /** Column name CopyFrom */
public static final String COLUMNNAME_CopyFrom = "CopyFrom"; public static final String COLUMNNAME_CopyFrom = "CopyFrom";
@ -215,6 +230,19 @@ public interface I_C_BankStatement
*/ */
public String getDocStatus(); public String getDocStatus();
/** Column name DocumentNo */
public static final String COLUMNNAME_DocumentNo = "DocumentNo";
/** Set Document No.
* Document sequence number of the document
*/
public void setDocumentNo (String DocumentNo);
/** Get Document No.
* Document sequence number of the document
*/
public String getDocumentNo();
/** Column name EftStatementDate */ /** Column name EftStatementDate */
public static final String COLUMNNAME_EftStatementDate = "EftStatementDate"; public static final String COLUMNNAME_EftStatementDate = "EftStatementDate";

View File

@ -120,6 +120,21 @@ public interface I_M_Production
public org.compiere.model.I_C_Campaign getC_Campaign() throws RuntimeException; public org.compiere.model.I_C_Campaign getC_Campaign() throws RuntimeException;
/** Column name C_DocType_ID */
public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID";
/** Set Document Type.
* Document type or rules
*/
public void setC_DocType_ID (int C_DocType_ID);
/** Get Document Type.
* Document type or rules
*/
public int getC_DocType_ID();
public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException;
/** Column name C_OrderLine_ID */ /** Column name C_OrderLine_ID */
public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID";

View File

@ -29,6 +29,7 @@ import org.compiere.process.DocumentEngine;
import org.compiere.util.DB; import org.compiere.util.DB;
import org.compiere.util.Env; import org.compiere.util.Env;
import org.compiere.util.Msg; import org.compiere.util.Msg;
import org.compiere.util.TimeUtil;
import org.compiere.util.Util; import org.compiere.util.Util;
/** /**
@ -50,12 +51,12 @@ import org.compiere.util.Util;
*/ */
public class MBankStatement extends X_C_BankStatement implements DocAction public class MBankStatement extends X_C_BankStatement implements DocAction
{ {
/** /**
* *
*/ */
private static final long serialVersionUID = -5635804381201264475L; private static final long serialVersionUID = 7420574960104461342L;
/** /**
* UUID based Constructor * UUID based Constructor
* @param ctx Context * @param ctx Context
* @param C_BankStatement_UU UUID key * @param C_BankStatement_UU UUID key
@ -256,6 +257,9 @@ public class MBankStatement extends X_C_BankStatement implements DocAction
*/ */
protected boolean beforeSave (boolean newRecord) protected boolean beforeSave (boolean newRecord)
{ {
if (getC_DocType_ID() <= 0) {
setC_DocType_ID(MDocType.getDocType(MDocType.DOCBASETYPE_BankStatement));
}
if (! isProcessed() && getBeginningBalance().compareTo(Env.ZERO) == 0) if (! isProcessed() && getBeginningBalance().compareTo(Env.ZERO) == 0)
{ {
MBankAccount ba = getBankAccount(); MBankAccount ba = getBankAccount();
@ -317,7 +321,7 @@ public class MBankStatement extends X_C_BankStatement implements DocAction
return DocAction.STATUS_Invalid; return DocAction.STATUS_Invalid;
// Std Period open? // Std Period open?
MPeriod.testPeriodOpen(getCtx(), getStatementDate(), MDocType.DOCBASETYPE_BankStatement, getAD_Org_ID()); MPeriod.testPeriodOpen(getCtx(), getStatementDate(), getC_DocType_ID(), getAD_Org_ID());
MBankStatementLine[] lines = getLines(true); MBankStatementLine[] lines = getLines(true);
if (lines.length == 0) if (lines.length == 0)
{ {
@ -390,6 +394,9 @@ public class MBankStatement extends X_C_BankStatement implements DocAction
return status; return status;
} }
// Set the definite document number after completed (if needed)
setDefiniteDocumentNo();
m_processMsg = ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_COMPLETE); m_processMsg = ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_COMPLETE);
if (m_processMsg != null) if (m_processMsg != null)
return DocAction.STATUS_Invalid; return DocAction.STATUS_Invalid;
@ -431,6 +438,26 @@ public class MBankStatement extends X_C_BankStatement implements DocAction
return DocAction.STATUS_Completed; return DocAction.STATUS_Completed;
} // completeIt } // completeIt
/**
* Set the definite document number after completed
*/
protected void setDefiniteDocumentNo() {
MDocType dt = MDocType.get(getCtx(), getC_DocType_ID());
if (dt.isOverwriteDateOnComplete()) {
if (this.getProcessedOn().signum() == 0) {
setStatementDate(TimeUtil.getDay(0));
MPeriod.testPeriodOpen(getCtx(), getStatementDate(), getC_DocType_ID(), getAD_Org_ID());
}
}
if (dt.isOverwriteSeqOnComplete()) {
if (this.getProcessedOn().signum() == 0) {
String value = DB.getDocumentNo(getC_DocType_ID(), get_TrxName(), true, this);
if (value != null)
setDocumentNo(value);
}
}
}
/** /**
* Void Document. * Void Document.
* @return false * @return false
@ -462,7 +489,7 @@ public class MBankStatement extends X_C_BankStatement implements DocAction
// Std Period open? // Std Period open?
else else
{ {
MPeriod.testPeriodOpen(getCtx(), getStatementDate(), MDocType.DOCBASETYPE_BankStatement, getAD_Org_ID()); MPeriod.testPeriodOpen(getCtx(), getStatementDate(), getC_DocType_ID(), getAD_Org_ID());
MFactAcct.deleteEx(Table_ID, getC_BankStatement_ID(), get_TrxName()); MFactAcct.deleteEx(Table_ID, getC_BankStatement_ID(), get_TrxName());
} }

View File

@ -372,12 +372,8 @@ public class MPeriod extends X_C_Period implements ImmutablePOSupport
if (idxdoctype < 0) { if (idxdoctype < 0) {
if (tableID == MInventory.Table_ID) { if (tableID == MInventory.Table_ID) {
docBaseType = MDocType.DOCBASETYPE_MaterialPhysicalInventory; docBaseType = MDocType.DOCBASETYPE_MaterialPhysicalInventory;
} else if (tableID == MProduction.Table_ID) {
docBaseType = MDocType.DOCBASETYPE_MaterialProduction;
} else if (tableID == MRequisition.Table_ID) { } else if (tableID == MRequisition.Table_ID) {
docBaseType = MDocType.DOCBASETYPE_PurchaseRequisition; docBaseType = MDocType.DOCBASETYPE_PurchaseRequisition;
} else if (tableID == MBankStatement.Table_ID) {
docBaseType = MDocType.DOCBASETYPE_BankStatement;
} else if (tableID == MAllocationHdr.Table_ID) { } else if (tableID == MAllocationHdr.Table_ID) {
docBaseType = MDocType.DOCBASETYPE_PaymentAllocation; docBaseType = MDocType.DOCBASETYPE_PaymentAllocation;
} else if (tableID == MMatchInv.Table_ID) { } else if (tableID == MMatchInv.Table_ID) {

View File

@ -13,24 +13,21 @@ import java.util.logging.Level;
import org.adempiere.exceptions.AdempiereException; import org.adempiere.exceptions.AdempiereException;
import org.adempiere.exceptions.PeriodClosedException; import org.adempiere.exceptions.PeriodClosedException;
import org.compiere.acct.Doc;
import org.compiere.process.DocAction; import org.compiere.process.DocAction;
import org.compiere.process.DocumentEngine; import org.compiere.process.DocumentEngine;
import org.compiere.util.AdempiereUserError; import org.compiere.util.AdempiereUserError;
import org.compiere.util.CLogger; import org.compiere.util.CLogger;
import org.compiere.util.DB; import org.compiere.util.DB;
import org.compiere.util.Env; import org.compiere.util.Env;
import org.compiere.util.TimeUtil;
import org.compiere.util.Util; import org.compiere.util.Util;
public class MProduction extends X_M_Production implements DocAction { public class MProduction extends X_M_Production implements DocAction {
/** /**
* *
*/ */
private static final long serialVersionUID = 6714776372370644208L; private static final long serialVersionUID = -1185737281702437745L;
/**
*
*/
/** Log */ /** Log */
protected static CLogger m_log = CLogger.getCLogger (MProduction.class); protected static CLogger m_log = CLogger.getCLogger (MProduction.class);
protected int lineno; protected int lineno;
@ -118,6 +115,9 @@ public class MProduction extends X_M_Production implements DocAction {
return status; return status;
} }
// Set the definite document number after completed (if needed)
setDefiniteDocumentNo();
m_processMsg = ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_COMPLETE); m_processMsg = ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_COMPLETE);
if (m_processMsg != null) if (m_processMsg != null)
return DocAction.STATUS_Invalid; return DocAction.STATUS_Invalid;
@ -176,6 +176,26 @@ public class MProduction extends X_M_Production implements DocAction {
return DocAction.STATUS_Completed; return DocAction.STATUS_Completed;
} }
/**
* Set the definite document number after completed
*/
protected void setDefiniteDocumentNo() {
MDocType dt = MDocType.get(getCtx(), getC_DocType_ID());
if (dt.isOverwriteDateOnComplete()) {
if (this.getProcessedOn().signum() == 0) {
setMovementDate(TimeUtil.getDay(0));
MPeriod.testPeriodOpen(getCtx(), getMovementDate(), getC_DocType_ID(), getAD_Org_ID());
}
}
if (dt.isOverwriteSeqOnComplete()) {
if (this.getProcessedOn().signum() == 0) {
String value = DB.getDocumentNo(getC_DocType_ID(), get_TrxName(), true, this);
if (value != null)
setDocumentNo(value);
}
}
}
private boolean isHaveEndProduct(MProductionLine[] lines) { private boolean isHaveEndProduct(MProductionLine[] lines) {
for(MProductionLine line : lines) { for(MProductionLine line : lines) {
@ -498,7 +518,7 @@ public class MProduction extends X_M_Production implements DocAction {
return DocAction.STATUS_Invalid; return DocAction.STATUS_Invalid;
// Std Period open? // Std Period open?
MPeriod.testPeriodOpen(getCtx(), getMovementDate(), MDocType.DOCBASETYPE_MaterialProduction, getAD_Org_ID()); MPeriod.testPeriodOpen(getCtx(), getMovementDate(), getC_DocType_ID(), getAD_Org_ID());
if ( getIsCreated().equals("N") ) if ( getIsCreated().equals("N") )
{ {
@ -664,7 +684,7 @@ public class MProduction extends X_M_Production implements DocAction {
boolean accrual = false; boolean accrual = false;
try try
{ {
MPeriod.testPeriodOpen(getCtx(), getMovementDate(), Doc.DOCTYPE_MatProduction, getAD_Org_ID()); MPeriod.testPeriodOpen(getCtx(), getMovementDate(), getC_DocType_ID(), getAD_Org_ID());
} }
catch (PeriodClosedException e) catch (PeriodClosedException e)
{ {
@ -740,7 +760,7 @@ public class MProduction extends X_M_Production implements DocAction {
if (getC_OrderLine_ID() > 0) if (getC_OrderLine_ID() > 0)
setC_OrderLine_ID(0); setC_OrderLine_ID(0);
MPeriod.testPeriodOpen(getCtx(), reversalDate, Doc.DOCTYPE_MatProduction, getAD_Org_ID()); MPeriod.testPeriodOpen(getCtx(), reversalDate, getC_DocType_ID(), getAD_Org_ID());
MProduction reversal = null; MProduction reversal = null;
reversal = copyFrom (reversalDate); reversal = copyFrom (reversalDate);
@ -935,6 +955,9 @@ public class MProduction extends X_M_Production implements DocAction {
@Override @Override
protected boolean beforeSave(boolean newRecord) { protected boolean beforeSave(boolean newRecord) {
if (getC_DocType_ID() <= 0) {
setC_DocType_ID(MDocType.getDocType(MDocType.DOCBASETYPE_MaterialProduction));
}
if (getM_Product_ID() > 0) { if (getM_Product_ID() > 0) {
if (isUseProductionPlan()) { if (isUseProductionPlan()) {
setIsUseProductionPlan(false); setIsUseProductionPlan(false);

View File

@ -34,7 +34,7 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis
/** /**
* *
*/ */
private static final long serialVersionUID = 20230409L; private static final long serialVersionUID = 20230606L;
/** Standard Constructor */ /** Standard Constructor */
public X_C_BankStatement (Properties ctx, int C_BankStatement_ID, String trxName) public X_C_BankStatement (Properties ctx, int C_BankStatement_ID, String trxName)
@ -44,11 +44,13 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis
{ {
setC_BankAccount_ID (0); setC_BankAccount_ID (0);
setC_BankStatement_ID (0); setC_BankStatement_ID (0);
setC_DocType_ID (0);
setDateAcct (new Timestamp( System.currentTimeMillis() )); setDateAcct (new Timestamp( System.currentTimeMillis() ));
setDocAction (null); setDocAction (null);
// CO // CO
setDocStatus (null); setDocStatus (null);
// DR // DR
setDocumentNo (null);
setEndingBalance (Env.ZERO); setEndingBalance (Env.ZERO);
setIsApproved (false); setIsApproved (false);
// N // N
@ -72,11 +74,13 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis
{ {
setC_BankAccount_ID (0); setC_BankAccount_ID (0);
setC_BankStatement_ID (0); setC_BankStatement_ID (0);
setC_DocType_ID (0);
setDateAcct (new Timestamp( System.currentTimeMillis() )); setDateAcct (new Timestamp( System.currentTimeMillis() ));
setDocAction (null); setDocAction (null);
// CO // CO
setDocStatus (null); setDocStatus (null);
// DR // DR
setDocumentNo (null);
setEndingBalance (Env.ZERO); setEndingBalance (Env.ZERO);
setIsApproved (false); setIsApproved (false);
// N // N
@ -100,11 +104,13 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis
{ {
setC_BankAccount_ID (0); setC_BankAccount_ID (0);
setC_BankStatement_ID (0); setC_BankStatement_ID (0);
setC_DocType_ID (0);
setDateAcct (new Timestamp( System.currentTimeMillis() )); setDateAcct (new Timestamp( System.currentTimeMillis() ));
setDocAction (null); setDocAction (null);
// CO // CO
setDocStatus (null); setDocStatus (null);
// DR // DR
setDocumentNo (null);
setEndingBalance (Env.ZERO); setEndingBalance (Env.ZERO);
setIsApproved (false); setIsApproved (false);
// N // N
@ -128,11 +134,13 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis
{ {
setC_BankAccount_ID (0); setC_BankAccount_ID (0);
setC_BankStatement_ID (0); setC_BankStatement_ID (0);
setC_DocType_ID (0);
setDateAcct (new Timestamp( System.currentTimeMillis() )); setDateAcct (new Timestamp( System.currentTimeMillis() ));
setDocAction (null); setDocAction (null);
// CO // CO
setDocStatus (null); setDocStatus (null);
// DR // DR
setDocumentNo (null);
setEndingBalance (Env.ZERO); setEndingBalance (Env.ZERO);
setIsApproved (false); setIsApproved (false);
// N // N
@ -260,6 +268,34 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis
return (String)get_Value(COLUMNNAME_C_BankStatement_UU); return (String)get_Value(COLUMNNAME_C_BankStatement_UU);
} }
public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException
{
return (org.compiere.model.I_C_DocType)MTable.get(getCtx(), org.compiere.model.I_C_DocType.Table_ID)
.getPO(getC_DocType_ID(), get_TrxName());
}
/** Set Document Type.
@param C_DocType_ID Document type or rules
*/
public void setC_DocType_ID (int C_DocType_ID)
{
if (C_DocType_ID < 0)
set_Value (COLUMNNAME_C_DocType_ID, null);
else
set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID));
}
/** Get Document Type.
@return Document type or rules
*/
public int getC_DocType_ID()
{
Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Copy From. /** Set Copy From.
@param CopyFrom Copy From Record @param CopyFrom Copy From Record
*/ */
@ -429,6 +465,22 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis
return (String)get_Value(COLUMNNAME_DocStatus); return (String)get_Value(COLUMNNAME_DocStatus);
} }
/** Set Document No.
@param DocumentNo Document sequence number of the document
*/
public void setDocumentNo (String DocumentNo)
{
set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo);
}
/** Get Document No.
@return Document sequence number of the document
*/
public String getDocumentNo()
{
return (String)get_Value(COLUMNNAME_DocumentNo);
}
/** Set EFT Statement Date. /** Set EFT Statement Date.
@param EftStatementDate Electronic Funds Transfer Statement Date @param EftStatementDate Electronic Funds Transfer Statement Date
*/ */

View File

@ -34,7 +34,7 @@ public class X_M_Production extends PO implements I_M_Production, I_Persistent
/** /**
* *
*/ */
private static final long serialVersionUID = 20230409L; private static final long serialVersionUID = 20230606L;
/** Standard Constructor */ /** Standard Constructor */
public X_M_Production (Properties ctx, int M_Production_ID, String trxName) public X_M_Production (Properties ctx, int M_Production_ID, String trxName)
@ -42,6 +42,7 @@ public class X_M_Production extends PO implements I_M_Production, I_Persistent
super (ctx, M_Production_ID, trxName); super (ctx, M_Production_ID, trxName);
/** if (M_Production_ID == 0) /** if (M_Production_ID == 0)
{ {
setC_DocType_ID (0);
setDocumentNo (null); setDocumentNo (null);
setIsCreated (null); setIsCreated (null);
// N // N
@ -63,6 +64,7 @@ public class X_M_Production extends PO implements I_M_Production, I_Persistent
super (ctx, M_Production_ID, trxName, virtualColumns); super (ctx, M_Production_ID, trxName, virtualColumns);
/** if (M_Production_ID == 0) /** if (M_Production_ID == 0)
{ {
setC_DocType_ID (0);
setDocumentNo (null); setDocumentNo (null);
setIsCreated (null); setIsCreated (null);
// N // N
@ -84,6 +86,7 @@ public class X_M_Production extends PO implements I_M_Production, I_Persistent
super (ctx, M_Production_UU, trxName); super (ctx, M_Production_UU, trxName);
/** if (M_Production_UU == null) /** if (M_Production_UU == null)
{ {
setC_DocType_ID (0);
setDocumentNo (null); setDocumentNo (null);
setIsCreated (null); setIsCreated (null);
// N // N
@ -105,6 +108,7 @@ public class X_M_Production extends PO implements I_M_Production, I_Persistent
super (ctx, M_Production_UU, trxName, virtualColumns); super (ctx, M_Production_UU, trxName, virtualColumns);
/** if (M_Production_UU == null) /** if (M_Production_UU == null)
{ {
setC_DocType_ID (0);
setDocumentNo (null); setDocumentNo (null);
setIsCreated (null); setIsCreated (null);
// N // N
@ -254,6 +258,34 @@ public class X_M_Production extends PO implements I_M_Production, I_Persistent
return ii.intValue(); return ii.intValue();
} }
public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException
{
return (org.compiere.model.I_C_DocType)MTable.get(getCtx(), org.compiere.model.I_C_DocType.Table_ID)
.getPO(getC_DocType_ID(), get_TrxName());
}
/** Set Document Type.
@param C_DocType_ID Document type or rules
*/
public void setC_DocType_ID (int C_DocType_ID)
{
if (C_DocType_ID < 0)
set_Value (COLUMNNAME_C_DocType_ID, null);
else
set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID));
}
/** Get Document Type.
@return Document type or rules
*/
public int getC_DocType_ID()
{
Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public org.compiere.model.I_C_OrderLine getC_OrderLine() throws RuntimeException public org.compiere.model.I_C_OrderLine getC_OrderLine() throws RuntimeException
{ {
return (org.compiere.model.I_C_OrderLine)MTable.get(getCtx(), org.compiere.model.I_C_OrderLine.Table_ID) return (org.compiere.model.I_C_OrderLine)MTable.get(getCtx(), org.compiere.model.I_C_OrderLine.Table_ID)

View File

@ -38,11 +38,9 @@ import org.adempiere.webui.util.ZKUpdateUtil;
import org.adempiere.webui.window.Dialog; import org.adempiere.webui.window.Dialog;
import org.compiere.model.GridTab; import org.compiere.model.GridTab;
import org.compiere.model.MAllocationHdr; import org.compiere.model.MAllocationHdr;
import org.compiere.model.MBankStatement;
import org.compiere.model.MClientInfo; import org.compiere.model.MClientInfo;
import org.compiere.model.MDocType; import org.compiere.model.MDocType;
import org.compiere.model.MPeriod; import org.compiere.model.MPeriod;
import org.compiere.model.MProduction;
import org.compiere.model.MTable; import org.compiere.model.MTable;
import org.compiere.model.PO; import org.compiere.model.PO;
import org.compiere.process.DocAction; import org.compiere.process.DocAction;
@ -187,12 +185,6 @@ public class WDocActionPanel extends Window implements EventListener<Event>, Dia
if (doctypeId == null && MAllocationHdr.Table_ID == m_AD_Table_ID) { if (doctypeId == null && MAllocationHdr.Table_ID == m_AD_Table_ID) {
doctypeId = MDocType.getDocType(MDocType.DOCBASETYPE_PaymentAllocation); doctypeId = MDocType.getDocType(MDocType.DOCBASETYPE_PaymentAllocation);
} }
if (doctypeId == null && MBankStatement.Table_ID == m_AD_Table_ID) {
doctypeId = MDocType.getDocType(MDocType.DOCBASETYPE_BankStatement);
}
if (doctypeId == null && MProduction.Table_ID == m_AD_Table_ID) {
doctypeId = MDocType.getDocType(MDocType.DOCBASETYPE_MaterialProduction);
}
if (logger.isLoggable(Level.FINE)) logger.fine("get doctype: " + doctypeId); if (logger.isLoggable(Level.FINE)) logger.fine("get doctype: " + doctypeId);
if (doctypeId != null) { if (doctypeId != null) {
index = DocumentEngine.checkActionAccess(Env.getAD_Client_ID(Env.getCtx()), index = DocumentEngine.checkActionAccess(Env.getAD_Client_ID(Env.getCtx()),