Skip to content

Commit

Permalink
Picking Terminal V2: Add process for picking and packing in 1 step (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBestPessimist committed Jul 7, 2020
1 parent 40f7c5b commit c03f7d2
Show file tree
Hide file tree
Showing 14 changed files with 812 additions and 313 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
-- 2020-07-07T04:17:05.628Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Index_Table SET WhereClause='IsDefaultForPicking = ''Y'' AND IsActive = ''Y''',Updated=TO_TIMESTAMP('2020-07-07 07:17:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Index_Table_ID=540545
;

-- 2020-07-07T04:17:08.239Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DROP INDEX IF EXISTS m_hu_pi_isdefaultforpicking_uq
;

-- 2020-07-07T04:17:08.248Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
CREATE UNIQUE INDEX M_HU_PI_IsDefaultForPicking_UQ ON M_HU_PI (IsDefaultForPicking) WHERE IsDefaultForPicking = 'Y' AND IsActive = 'Y'
;

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


/** Generated Interface for M_HU_PI
* @author Adempiere (generated)
* @author metasfresh (generated)
*/
@SuppressWarnings("javadoc")
public interface I_M_HU_PI
Expand All @@ -14,17 +14,10 @@ public interface I_M_HU_PI
/** AD_Table_ID=540511 */
// public static final int Table_ID = org.compiere.model.MTable.getTable_ID(Table_Name);

// org.compiere.util.KeyNamePair Model = new org.compiere.util.KeyNamePair(Table_ID, Table_Name);

/** AccessLevel = 7 - System - Client - Org
*/
// java.math.BigDecimal accessLevel = java.math.BigDecimal.valueOf(7);

/** Load Meta Data */

/**
* Get Mandant.
* Mandant für diese Installation.
* Get Client.
* Client/Tenant for this installation.
*
* <br>Type: TableDir
* <br>Mandatory: true
Expand All @@ -36,8 +29,8 @@ public interface I_M_HU_PI
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";

/**
* Set Sektion.
* Organisatorische Einheit des Mandanten
* Set Organisation.
* Organisational entity within client
*
* <br>Type: Search
* <br>Mandatory: true
Expand All @@ -46,8 +39,8 @@ public interface I_M_HU_PI
public void setAD_Org_ID (int AD_Org_ID);

/**
* Get Sektion.
* Organisatorische Einheit des Mandanten
* Get Organisation.
* Organisational entity within client
*
* <br>Type: Search
* <br>Mandatory: true
Expand All @@ -59,8 +52,8 @@ public interface I_M_HU_PI
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";

/**
* Get Erstellt.
* Datum, an dem dieser Eintrag erstellt wurde
* Get Created.
* Date this record was created
*
* <br>Type: DateTime
* <br>Mandatory: true
Expand All @@ -74,8 +67,8 @@ public interface I_M_HU_PI
public static final String COLUMNNAME_Created = "Created";

/**
* Get Erstellt durch.
* Nutzer, der diesen Eintrag erstellt hat
* Get Created By.
* User who created this records
*
* <br>Type: Table
* <br>Mandatory: true
Expand All @@ -87,7 +80,7 @@ public interface I_M_HU_PI
public static final String COLUMNNAME_CreatedBy = "CreatedBy";

/**
* Set Beschreibung.
* Set Description.
*
* <br>Type: String
* <br>Mandatory: false
Expand All @@ -96,7 +89,7 @@ public interface I_M_HU_PI
public void setDescription (java.lang.String Description);

/**
* Get Beschreibung.
* Get Description.
*
* <br>Type: String
* <br>Mandatory: false
Expand All @@ -110,8 +103,8 @@ public interface I_M_HU_PI
public static final String COLUMNNAME_Description = "Description";

/**
* Set Aktiv.
* Der Eintrag ist im System aktiv
* Set Active.
* The record is active in the system
*
* <br>Type: YesNo
* <br>Mandatory: true
Expand All @@ -120,8 +113,8 @@ public interface I_M_HU_PI
public void setIsActive (boolean IsActive);

/**
* Get Aktiv.
* Der Eintrag ist im System aktiv
* Get Active.
* The record is active in the system
*
* <br>Type: YesNo
* <br>Mandatory: true
Expand All @@ -134,6 +127,29 @@ public interface I_M_HU_PI
/** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive";

/**
* Set Default For Picking.
*
* <br>Type: YesNo
* <br>Mandatory: false
* <br>Virtual Column: false
*/
public void setIsDefaultForPicking (boolean IsDefaultForPicking);

/**
* Get Default For Picking.
*
* <br>Type: YesNo
* <br>Mandatory: false
* <br>Virtual Column: false
*/
public boolean isDefaultForPicking();

/** Column definition for IsDefaultForPicking */
public static final org.adempiere.model.ModelColumn<I_M_HU_PI, Object> COLUMN_IsDefaultForPicking = new org.adempiere.model.ModelColumn<I_M_HU_PI, Object>(I_M_HU_PI.class, "IsDefaultForPicking", null);
/** Column name IsDefaultForPicking */
public static final String COLUMNNAME_IsDefaultForPicking = "IsDefaultForPicking";

/**
* Set Standard-LU.
*
Expand Down Expand Up @@ -204,8 +220,8 @@ public interface I_M_HU_PI
public static final String COLUMNNAME_Name = "Name";

/**
* Get Aktualisiert.
* Datum, an dem dieser Eintrag aktualisiert wurde
* Get Updated.
* Date this record was updated
*
* <br>Type: DateTime
* <br>Mandatory: true
Expand All @@ -219,8 +235,8 @@ public interface I_M_HU_PI
public static final String COLUMNNAME_Updated = "Updated";

/**
* Get Aktualisiert durch.
* Nutzer, der diesen Eintrag aktualisiert hat
* Get Updated By.
* User who updated this records
*
* <br>Type: Table
* <br>Mandatory: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,18 @@
import java.util.Properties;

/** Generated Model for M_HU_PI
* @author Adempiere (generated)
* @author metasfresh (generated)
*/
@SuppressWarnings("javadoc")
public class X_M_HU_PI extends org.compiere.model.PO implements I_M_HU_PI, org.compiere.model.I_Persistent
{

/**
*
*/
private static final long serialVersionUID = 1146893183L;
private static final long serialVersionUID = -601360170L;

/** Standard Constructor */
public X_M_HU_PI (Properties ctx, int M_HU_PI_ID, String trxName)
{
super (ctx, M_HU_PI_ID, trxName);
/** if (M_HU_PI_ID == 0)
{
setIsDefaultLU (false); // N
setM_HU_PI_ID (0);
setName (null);
} */
}

/** Load Constructor */
Expand All @@ -35,55 +26,49 @@ public X_M_HU_PI (Properties ctx, ResultSet rs, String trxName)
}


/** Load Meta Data */
@Override
protected org.compiere.model.POInfo initPO (Properties ctx)
{
org.compiere.model.POInfo poi = org.compiere.model.POInfo.getPOInfo (ctx, Table_Name, get_TrxName());
return poi;
}
/** Load Meta Data */
@Override
protected org.compiere.model.POInfo initPO(Properties ctx)
{
return org.compiere.model.POInfo.getPOInfo(Table_Name);
}

/** Set Beschreibung.
@param Description Beschreibung */
@Override
public void setDescription (java.lang.String Description)
{
set_Value (COLUMNNAME_Description, Description);
}

/** Get Beschreibung.
@return Beschreibung */
@Override
public java.lang.String getDescription ()
public java.lang.String getDescription()
{
return (java.lang.String)get_Value(COLUMNNAME_Description);
}

/** Set Standard-LU.
@param IsDefaultLU Standard-LU */
@Override
public void setIsDefaultForPicking (boolean IsDefaultForPicking)
{
set_Value (COLUMNNAME_IsDefaultForPicking, Boolean.valueOf(IsDefaultForPicking));
}

@Override
public boolean isDefaultForPicking()
{
return get_ValueAsBoolean(COLUMNNAME_IsDefaultForPicking);
}

@Override
public void setIsDefaultLU (boolean IsDefaultLU)
{
set_Value (COLUMNNAME_IsDefaultLU, Boolean.valueOf(IsDefaultLU));
}

/** Get Standard-LU.
@return Standard-LU */
@Override
public boolean isDefaultLU ()
public boolean isDefaultLU()
{
Object oo = get_Value(COLUMNNAME_IsDefaultLU);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
return get_ValueAsBoolean(COLUMNNAME_IsDefaultLU);
}

/** Set Packvorschrift.
@param M_HU_PI_ID Packvorschrift */
@Override
public void setM_HU_PI_ID (int M_HU_PI_ID)
{
Expand All @@ -93,29 +78,20 @@ public void setM_HU_PI_ID (int M_HU_PI_ID)
set_ValueNoCheck (COLUMNNAME_M_HU_PI_ID, Integer.valueOf(M_HU_PI_ID));
}

/** Get Packvorschrift.
@return Packvorschrift */
@Override
public int getM_HU_PI_ID ()
public int getM_HU_PI_ID()
{
Integer ii = (Integer)get_Value(COLUMNNAME_M_HU_PI_ID);
if (ii == null)
return 0;
return ii.intValue();
return get_ValueAsInt(COLUMNNAME_M_HU_PI_ID);
}

/** Set Name.
@param Name Name */
@Override
public void setName (java.lang.String Name)
{
set_Value (COLUMNNAME_Name, Name);
}

/** Get Name.
@return Name */
@Override
public java.lang.String getName ()
public java.lang.String getName()
{
return (java.lang.String)get_Value(COLUMNNAME_Name);
}
Expand Down
Loading

0 comments on commit c03f7d2

Please sign in to comment.