Skip to content

Commit

Permalink
Merge tenacious_d_uat to master (#10504)
Browse files Browse the repository at this point in the history
* Increase the no of items fetched from the BE (#10451)

Co-authored-by: Petrica Nanca <petrica.nanca@metasfresh.com>

* #10325 Implement missing report

* Gh10412 (#10413)

* #10412
 - Added HaddexCheck, DateHaddexCheck and HaddexControlNr columns to m_product table
 - Added fields to product window
 - added sys config MAX_HADDEX_DATE
 - added error msg
 - when trying to add a product to a sales orderline, if current date - product.haddexcheckdate (in months) > the added sys config, throw error msg.

* #10412
  - Added sales order check.

* #10412
 - Update Sys Config Name

* Changed fields two fields: SYS_CONFIG_MAX_HADDEX_AGE_IN_MONTHS  and MSG_HADDEX_CHECK_ERROR;   and two methods: checkHaddexDate and getMaxHaddexAgeInMonths

* Changing the differenceBetweenHaddexCheckDateAndPromisedDateInMonths

* Adding messagens, translations, and sysconfig

* Updating key for error message

* Updating sysconfig

* Solving duplicated sysconfig and message

* Updating MessageKey as teo suggested

* Updating MessageKey

* Updating AD_Messages and  AD_Message_Trl. de_DE must be the default!

* Updating sysconfig message and using order instead orderline to access DatePromised.

* Update backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5575110_sys_gh10412_AddSysconfig.sql

* Update backend/de.metas.business/src/main/java/de/metas/order/model/interceptor/C_OrderLine.java

* Update backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5575110_sys_gh10412_AddSysconfig.sql

* Update backend/de.metas.business/src/main/java/de/metas/order/model/interceptor/C_OrderLine.java

Co-authored-by: arthurlmf <arthurlucio@gmail.com>
Co-authored-by: Tobias Schöneberg <metas-ts@users.noreply.github.com>

* #10325 Fix script

* #10325 Fix path

* Updating AD_Message (#10465)
  • Loading branch information
siemiatj committed Jan 8, 2021
1 parent 4199b8f commit f66647d
Show file tree
Hide file tree
Showing 10 changed files with 1,196 additions and 724 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
-- 2020-12-16T13:17:59.005Z
-- URL zum Konzept
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,545019,0,TO_TIMESTAMP('2020-12-16 10:17:56','YYYY-MM-DD HH24:MI:SS'),100,'U','Y','The product''s haddex check has to be renewed','E',TO_TIMESTAMP('2020-12-16 10:17:56','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.order.producthadexerror')
;
-- 2020-12-16T13:17:59.234Z
-- URL zum Konzept
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Message_ID=545019 AND NOT EXISTS (SELECT 1 FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
;

-- 2020-12-16T13:21:30.016Z
-- URL zum Konzept
UPDATE AD_Message_Trl SET MsgText='Die Haddex-Prüfung für das Produkt muss erneuert werden.',Updated=TO_TIMESTAMP('2020-12-16 10:21:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Message_ID=545019
;

-- 2020-12-16T13:21:51.881Z
-- URL zum Konzept
UPDATE AD_Message_Trl SET MsgText='Die Haddex-Prüfung für das Produkt muss erneuert werden.',Updated=TO_TIMESTAMP('2020-12-16 10:21:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Message_ID=545019
;

-- 2020-12-17T18:56:43.930Z
-- URL zum Konzept
UPDATE AD_Message_Trl SET MsgText='The product''s haddex check has to be renewed',Updated=TO_TIMESTAMP('2020-12-17 15:56:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Message_ID=545019
;

-- 2020-12-16T13:22:30.034Z
-- URL zum Konzept
UPDATE AD_Message SET MsgText='The product''s haddex check has to be renewed',Updated=TO_TIMESTAMP('2020-12-16 10:22:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=545019
;

-- 2020-12-16T13:27:36.733Z
-- URL zum Konzept
UPDATE AD_Message SET Value='de.metas.order.producthadexerror',Updated=TO_TIMESTAMP('2020-12-16 10:27:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=545019
;

-- 2020-12-17T18:56:13.691Z
-- URL zum Konzept
UPDATE AD_Message SET MsgText='Der Haddex-Check für das Produkt muss erneuert werden',Updated=TO_TIMESTAMP('2020-12-17 15:56:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=545019
;

-- 2020-12-17T18:56:37.882Z
-- URL zum Konzept
UPDATE AD_Message_Trl SET IsTranslated='N',Updated=TO_TIMESTAMP('2020-12-17 15:56:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Message_ID=545019
;

-- 2020-12-17T18:56:43.930Z
-- URL zum Konzept
UPDATE AD_Message_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2020-12-17 15:56:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Message_ID=545019
;


Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- 2020-12-16T13:50:13.970Z
-- URL zum Konzept
INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,ConfigurationLevel,Created,CreatedBy,Description,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,541351,'O',TO_TIMESTAMP('2020-12-16 10:50:11','YYYY-MM-DD HH24:MI:SS'),100,'If a sales order''s promised date is more than the given number of months after after a product''s last haddex-check, then the product can''t be added to the order. A value less than 1 disables the check.','D','Y','de.metas.order.MAX_HADDEX_AGE_IN_MONTHS',TO_TIMESTAMP('2020-12-16 10:50:11','YYYY-MM-DD HH24:MI:SS'),100,'24')
;
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@

import de.metas.bpartner.BPartnerId;
import de.metas.bpartner_product.IBPartnerProductBL;
import de.metas.i18n.AdMessageKey;
import de.metas.interfaces.I_C_OrderLine;
import de.metas.logging.LogManager;
import de.metas.order.IOrderBL;
import de.metas.order.IOrderDAO;
import de.metas.order.IOrderLineBL;
import de.metas.order.IOrderLinePricingConditions;
import de.metas.order.OrderId;
import de.metas.order.OrderLinePriceUpdateRequest;
import de.metas.order.OrderLinePriceUpdateRequest.ResultUOM;
import de.metas.order.compensationGroup.OrderGroupCompensationChangesHandler;
import de.metas.product.IProductDAO;
import de.metas.product.ProductId;
import de.metas.quantity.Quantity;
import de.metas.util.Check;
Expand All @@ -24,13 +28,17 @@
import org.adempiere.ad.modelvalidator.annotations.ModelChange;
import org.adempiere.ad.service.IDeveloperModeBL;
import org.adempiere.exceptions.AdempiereException;
import org.adempiere.service.ISysConfigBL;
import org.compiere.model.CalloutOrder;
import org.compiere.model.I_C_Order;
import org.compiere.model.I_M_Product;
import org.compiere.model.ModelValidator;
import org.compiere.util.TimeUtil;
import org.slf4j.Logger;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.time.temporal.ChronoUnit;

import static org.adempiere.model.InterfaceWrapperHelper.isCopy;

Expand Down Expand Up @@ -66,6 +74,13 @@ public class C_OrderLine
private final OrderGroupCompensationChangesHandler groupChangesHandler;

public static final String ERR_NEGATIVE_QTY_RESERVED = "MSG_NegativeQtyReserved";
private static final String SYS_CONFIG_MAX_HADDEX_AGE_IN_MONTHS = "de.metas.order.MAX_HADDEX_AGE_IN_MONTHS";
private static final AdMessageKey MSG_HADDEX_CHECK_ERROR = AdMessageKey.of("de.metas.order.producthadexerror");


private final ISysConfigBL sysConfigBL = Services.get(ISysConfigBL.class);
private final IProductDAO productDAO = Services.get(IProductDAO.class);
private final IOrderDAO orderDAO = Services.get(IOrderDAO.class);

public C_OrderLine(@NonNull final OrderGroupCompensationChangesHandler groupChangesHandler)
{
Expand Down Expand Up @@ -126,6 +141,48 @@ public void setQtyEnteredInPriceUOM(final I_C_OrderLine orderLine)
orderLine.setQtyEnteredInPriceUOM(qtyEnteredInPriceUOM);
}

@ModelChange(timings = { ModelValidator.TYPE_BEFORE_NEW,
ModelValidator.TYPE_BEFORE_CHANGE
}, ifColumnsChanged = {
I_C_OrderLine.COLUMNNAME_M_Product_ID
})
public void checkHaddexDate(final I_C_OrderLine orderLine)
{
final I_C_Order order = orderDAO.getById(OrderId.ofRepoId(orderLine.getC_Order_ID()));
if (!order.isSOTrx())
{
return;
}

final I_M_Product product = productDAO.getById(orderLine.getM_Product_ID());

if (product.isHaddexCheck() && product.getDateHaddexCheck() != null)
{
final long differenceBetweenHaddexCheckDateAndPromisedDateInMonths = Math.abs(
ChronoUnit.MONTHS.between(
TimeUtil.asZonedDateTime(product.getDateHaddexCheck()),
TimeUtil.asZonedDateTime(order.getDatePromised())
));


if (differenceBetweenHaddexCheckDateAndPromisedDateInMonths > getMaxHaddexAgeInMonths(orderLine.getAD_Client_ID(), orderLine.getAD_Org_ID()))
{
throw new AdempiereException(MSG_HADDEX_CHECK_ERROR).markAsUserValidationError();
}
}

}

private int getMaxHaddexAgeInMonths(int clientID, int orgID)
{
final int months = sysConfigBL.getIntValue(SYS_CONFIG_MAX_HADDEX_AGE_IN_MONTHS, 24, clientID, orgID);
if (months > 0)
{
return months;
}
return Integer.MAX_VALUE;
}

@ModelChange(timings = { ModelValidator.TYPE_BEFORE_NEW })
public void setProjectToOrderline(final I_C_OrderLine orderLine)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
-- 2020-12-15T15:34:00.976Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process SET JasperReport='@PREFIX@de/metas/docs/manufacturingorder/label_3_segment.jasper',Updated=TO_TIMESTAMP('2020-12-15 17:34:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584768
;

-- 2020-12-15T15:35:03.287Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,Description,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsNotifyUserAfterExecution,IsOneInstanceOnly,IsReport,IsServerProcess,IsTranslateExcelHeaders,IsUseBPartnerLanguage,JasperReport,LockWaitTimeout,Name,PostgrestResponseFormat,RefreshAllAfterExecution,ShowHelp,Type,Updated,UpdatedBy,Value) VALUES ('3',0,0,584773,'N','de.metas.report.jasper.client.process.JasperReportStarter','N',TO_TIMESTAMP('2020-12-15 17:35:03','YYYY-MM-DD HH24:MI:SS'),100,'Manufacturing order label (jasper)','U','Y','N','Y','Y','N','N','Y','N','Y','Y','@PREFIX@de/metas/docs/manufacturingorder/report_label.jasper',0,'Manufacturing order label ','json','N','N','JasperReportsSQL',TO_TIMESTAMP('2020-12-15 17:35:03','YYYY-MM-DD HH24:MI:SS'),100,'Manufacturing order simple label')
;

-- 2020-12-15T15:35:03.290Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Process_ID=584773 AND NOT EXISTS (SELECT 1 FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID)
;

-- 2020-12-15T15:38:42.924Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,578616,0,TO_TIMESTAMP('2020-12-15 17:38:42','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Print label','Print label',TO_TIMESTAMP('2020-12-15 17:38:42','YYYY-MM-DD HH24:MI:SS'),100)
;

-- 2020-12-15T15:38:42.926Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, CommitWarning,Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Element_ID, t.CommitWarning,t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' OR l.IsBaseLanguage='Y') AND t.AD_Element_ID=578616 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;

-- 2020-12-15T15:39:23.808Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Etikett drucken', PrintName='Etikett drucken',Updated=TO_TIMESTAMP('2020-12-15 17:39:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578616 AND AD_Language='de_CH'
;

-- 2020-12-15T15:39:23.874Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578616,'de_CH')
;

-- 2020-12-15T15:39:28.368Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Etikett drucken', PrintName='Etikett drucken',Updated=TO_TIMESTAMP('2020-12-15 17:39:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578616 AND AD_Language='de_DE'
;

-- 2020-12-15T15:39:28.369Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578616,'de_DE')
;

-- 2020-12-15T15:39:28.390Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_ad_element_on_ad_element_trl_update(578616,'de_DE')
;

-- 2020-12-15T15:39:28.393Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName=NULL, Name='Etikett drucken', Description=NULL, Help=NULL WHERE AD_Element_ID=578616
;

-- 2020-12-15T15:39:28.394Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName=NULL, Name='Etikett drucken', Description=NULL, Help=NULL WHERE AD_Element_ID=578616 AND IsCentrallyMaintained='Y'
;

-- 2020-12-15T15:39:28.395Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Etikett drucken', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578616) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578616)
;

-- 2020-12-15T15:39:28.411Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Etikett drucken', Name='Etikett drucken' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578616)
;

-- 2020-12-15T15:39:28.412Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET Name='Etikett drucken', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578616
;

-- 2020-12-15T15:39:28.414Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_WINDOW SET Name='Etikett drucken', Description=NULL, Help=NULL WHERE AD_Element_ID = 578616
;

-- 2020-12-15T15:39:28.415Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu SET Name = 'Etikett drucken', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578616
;

-- 2020-12-15T15:39:30.194Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2020-12-15 17:39:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578616 AND AD_Language='en_US'
;

-- 2020-12-15T15:39:30.195Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578616,'en_US')
;

-- 2020-12-15T15:40:03.372Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,541238,TO_TIMESTAMP('2020-12-15 17:40:03','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','Print Label list',TO_TIMESTAMP('2020-12-15 17:40:03','YYYY-MM-DD HH24:MI:SS'),100,'L')
;

-- 2020-12-15T15:40:03.373Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Reference_ID=541238 AND NOT EXISTS (SELECT 1 FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
;

-- 2020-12-15T15:40:35.431Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value,ValueName) VALUES (0,0,542229,541238,TO_TIMESTAMP('2020-12-15 17:40:35','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Einfach',TO_TIMESTAMP('2020-12-15 17:40:35','YYYY-MM-DD HH24:MI:SS'),100,'S','Simple')
;

-- 2020-12-15T15:40:35.434Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Ref_List_ID=542229 AND NOT EXISTS (SELECT 1 FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID)
;

-- 2020-12-15T15:40:40.184Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2020-12-15 17:40:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Ref_List_ID=542229
;

-- 2020-12-15T15:40:46.332Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET IsTranslated='Y', Name='Simple',Updated=TO_TIMESTAMP('2020-12-15 17:40:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Ref_List_ID=542229
;

-- 2020-12-15T15:40:49.102Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2020-12-15 17:40:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Ref_List_ID=542229
;

-- 2020-12-15T15:41:27.759Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value,ValueName) VALUES (0,0,542230,541238,TO_TIMESTAMP('2020-12-15 17:41:27','YYYY-MM-DD HH24:MI:SS'),100,'U','Y','3-teilig',TO_TIMESTAMP('2020-12-15 17:41:27','YYYY-MM-DD HH24:MI:SS'),100,'M','3_segments')
;

-- 2020-12-15T15:41:27.761Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Ref_List_ID=542230 AND NOT EXISTS (SELECT 1 FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID)
;

-- 2020-12-15T15:41:31.994Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2020-12-15 17:41:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Ref_List_ID=542230
;

-- 2020-12-15T15:41:39.460Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET IsTranslated='Y', Name='3 segments',Updated=TO_TIMESTAMP('2020-12-15 17:41:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Ref_List_ID=542230
;

-- 2020-12-15T15:41:42.777Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2020-12-15 17:41:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Ref_List_ID=542230
;

-- 2020-12-15T15:41:51.946Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,AD_Reference_Value_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,578616,0,584767,541885,17,541238,'PrintLabel',TO_TIMESTAMP('2020-12-15 17:41:51','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat',0,'Y','N','Y','N','N','N','Paket-Etiketten',10,TO_TIMESTAMP('2020-12-15 17:41:51','YYYY-MM-DD HH24:MI:SS'),100)
;

-- 2020-12-15T15:41:51.948Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Process_Para_ID=541885 AND NOT EXISTS (SELECT 1 FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;

0 comments on commit f66647d

Please sign in to comment.