Skip to content

Commit

Permalink
#6072 IsToBeFetched in Shipping Package
Browse files Browse the repository at this point in the history
  • Loading branch information
metas-rc committed Jan 31, 2020
1 parent 84659fe commit d91158f
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 50 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,3 @@
/*
* #%L
* de.metas.adempiere.adempiere.base
* %%
* Copyright (C) 2019 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-2.0.html>.
* #L%
*/

package de.metas.shipping.model;


Expand Down Expand Up @@ -208,6 +186,29 @@ public interface I_M_ShippingPackage
/** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive";

/**
* Set Abholung.
*
* <br>Type: YesNo
* <br>Mandatory: true
* <br>Virtual Column: false
*/
public void setIsToBeFetched (boolean IsToBeFetched);

/**
* Get Abholung.
*
* <br>Type: YesNo
* <br>Mandatory: true
* <br>Virtual Column: false
*/
public boolean isToBeFetched();

/** Column definition for IsToBeFetched */
public static final org.adempiere.model.ModelColumn<I_M_ShippingPackage, Object> COLUMN_IsToBeFetched = new org.adempiere.model.ModelColumn<I_M_ShippingPackage, Object>(I_M_ShippingPackage.class, "IsToBeFetched", null);
/** Column name IsToBeFetched */
public static final String COLUMNNAME_IsToBeFetched = "IsToBeFetched";

/**
* Set Lieferung/Wareneingang.
* Material Shipment Document
Expand Down Expand Up @@ -391,7 +392,7 @@ public interface I_M_ShippingPackage

/**
* Set Verarbeitet.
* Checkbox sagt aus, ob der Beleg verarbeitet wurde.
* Checkbox sagt aus, ob der Datensatz verarbeitet wurde.
*
* <br>Type: YesNo
* <br>Mandatory: true
Expand All @@ -401,7 +402,7 @@ public interface I_M_ShippingPackage

/**
* Get Verarbeitet.
* Checkbox sagt aus, ob der Beleg verarbeitet wurde.
* Checkbox sagt aus, ob der Datensatz verarbeitet wurde.
*
* <br>Type: YesNo
* <br>Mandatory: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,3 @@
/*
* #%L
* de.metas.adempiere.adempiere.base
* %%
* Copyright (C) 2019 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-2.0.html>.
* #L%
*/

/** Generated Model - DO NOT CHANGE */
package de.metas.shipping.model;

Expand All @@ -37,7 +15,7 @@ public class X_M_ShippingPackage extends org.compiere.model.PO implements I_M_Sh
/**
*
*/
private static final long serialVersionUID = -243393471L;
private static final long serialVersionUID = -1310228163L;

/** Standard Constructor */
public X_M_ShippingPackage (Properties ctx, int M_ShippingPackage_ID, String trxName)
Expand All @@ -46,6 +24,7 @@ public X_M_ShippingPackage (Properties ctx, int M_ShippingPackage_ID, String trx
/** if (M_ShippingPackage_ID == 0)
{
setC_BPartner_Location_ID (0);
setIsToBeFetched (false); // N
setM_Package_ID (0);
setM_ShipperTransportation_ID (0);
setM_ShippingPackage_ID (0);
Expand Down Expand Up @@ -156,6 +135,29 @@ public int getC_Order_ID ()
return ii.intValue();
}

/** Set Abholung.
@param IsToBeFetched Abholung */
@Override
public void setIsToBeFetched (boolean IsToBeFetched)
{
set_Value (COLUMNNAME_IsToBeFetched, Boolean.valueOf(IsToBeFetched));
}

/** Get Abholung.
@return Abholung */
@Override
public boolean isToBeFetched ()
{
Object oo = get_Value(COLUMNNAME_IsToBeFetched);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}

@Override
public org.compiere.model.I_M_InOut getM_InOut()
{
Expand Down Expand Up @@ -348,7 +350,7 @@ public java.math.BigDecimal getPackageWeight ()

/** Set Verarbeitet.
@param Processed
Checkbox sagt aus, ob der Beleg verarbeitet wurde.
Checkbox sagt aus, ob der Datensatz verarbeitet wurde.
*/
@Override
public void setProcessed (boolean Processed)
Expand All @@ -357,7 +359,7 @@ public void setProcessed (boolean Processed)
}

/** Get Verarbeitet.
@return Checkbox sagt aus, ob der Beleg verarbeitet wurde.
@return Checkbox sagt aus, ob der Datensatz verarbeitet wurde.
*/
@Override
public boolean isProcessed ()
Expand All @@ -371,4 +373,4 @@ public boolean isProcessed ()
}
return false;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
-- 2020-01-30T09:42:03.559Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsForceIncludeInGeneratedModel,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,569895,542456,0,20,540031,'IsToBeFetched',TO_TIMESTAMP('2020-01-30 11:42:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N','METAS_SHIPPING',1,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','N','N','N','N','N','N','Y','N','Abholung',0,0,TO_TIMESTAMP('2020-01-30 11:42:03','YYYY-MM-DD HH24:MI:SS'),100,0)
;

-- 2020-01-30T09:42:03.581Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=569895 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;

-- 2020-01-30T09:42:03.630Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_Column_Translation_From_AD_Element(542456)
;

-- 2020-01-30T09:42:04.930Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ SELECT public.db_alter_table('M_ShippingPackage','ALTER TABLE public.M_ShippingPackage ADD COLUMN IsToBeFetched CHAR(1) DEFAULT ''N'' CHECK (IsToBeFetched IN (''Y'',''N'')) NOT NULL')
;



-- 2020-01-30T09:55:22.305Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,ColumnDisplayLength,Created,CreatedBy,DisplayLength,EntityType,IncludedTabHeight,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SeqNoGrid,SortNo,SpanX,SpanY,Updated,UpdatedBy) VALUES (0,569895,596163,0,540097,0,TO_TIMESTAMP('2020-01-30 11:55:22','YYYY-MM-DD HH24:MI:SS'),100,0,'D',0,'Y','Y','Y','N','N','N','N','N','Abholung',120,120,0,1,1,TO_TIMESTAMP('2020-01-30 11:55:22','YYYY-MM-DD HH24:MI:SS'),100)
;

-- 2020-01-30T09:55:22.317Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Field_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_Field t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Field_ID=596163 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;

-- 2020-01-30T09:55:22.365Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_FieldTranslation_From_AD_Name_Element(542456)
;

-- 2020-01-30T09:55:22.381Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Element_Link WHERE AD_Field_ID=596163
;

-- 2020-01-30T09:55:22.388Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select AD_Element_Link_Create_Missing_Field(596163)
;

-- 2020-01-30T09:55:52.063Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Element_ID,AD_UI_ElementGroup_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,IsMultiLine,MultiLine_LinesCount,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,596163,0,540097,565326,540666,'F',TO_TIMESTAMP('2020-01-30 11:55:51','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','N',0,'Abholung',10,0,0,TO_TIMESTAMP('2020-01-30 11:55:51','YYYY-MM-DD HH24:MI:SS'),100)
;

-- 2020-01-30T09:56:01.975Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET EntityType='METAS_SHIPPING',Updated=TO_TIMESTAMP('2020-01-30 11:56:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=596163
;

-- 2020-01-30T09:57:50.798Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2020-01-30 11:57:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=565326
;

-- 2020-01-30T09:58:12.929Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2020-01-30 11:58:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545689
;

-- 2020-01-30T09:58:12.933Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2020-01-30 11:58:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545690
;

-- 2020-01-30T09:58:12.937Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2020-01-30 11:58:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=565326
;










0 comments on commit d91158f

Please sign in to comment.