Skip to content

Commit

Permalink
Add currency and currency conversion for Payroll process, this change
Browse files Browse the repository at this point in the history
allows create payroll transactions for other currency
  • Loading branch information
yamelsenih committed Feb 26, 2019
1 parent 8e60f6f commit e71044f
Show file tree
Hide file tree
Showing 5 changed files with 450 additions and 53 deletions.
74 changes: 52 additions & 22 deletions base/src/org/eevolution/model/I_HR_Process.java
Expand Up @@ -93,20 +93,35 @@ public interface I_HR_Process

public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException;

/** Column name C_DocTypeTarget_ID */
public static final String COLUMNNAME_C_DocTypeTarget_ID = "C_DocTypeTarget_ID";
/** Column name C_ConversionType_ID */
public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID";

/** Set Target Document Type.
* Target document type for conversing documents
/** Set Currency Type.
* Currency Conversion Rate Type
*/
public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID);
public void setC_ConversionType_ID (int C_ConversionType_ID);

/** Get Target Document Type.
* Target document type for conversing documents
/** Get Currency Type.
* Currency Conversion Rate Type
*/
public int getC_DocTypeTarget_ID();
public int getC_ConversionType_ID();

public org.compiere.model.I_C_DocType getC_DocTypeTarget() throws RuntimeException;
public org.compiere.model.I_C_ConversionType getC_ConversionType() throws RuntimeException;

/** Column name C_Currency_ID */
public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID";

/** Set Currency.
* The Currency for this record
*/
public void setC_Currency_ID (int C_Currency_ID);

/** Get Currency.
* The Currency for this record
*/
public int getC_Currency_ID();

public org.compiere.model.I_C_Currency getC_Currency() throws RuntimeException;

/** Column name C_DocType_ID */
public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID";
Expand All @@ -123,6 +138,21 @@ public interface I_HR_Process

public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException;

/** Column name C_DocTypeTarget_ID */
public static final String COLUMNNAME_C_DocTypeTarget_ID = "C_DocTypeTarget_ID";

/** Set Target Document Type.
* Target document type for conversing documents
*/
public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID);

/** Get Target Document Type.
* Target document type for conversing documents
*/
public int getC_DocTypeTarget_ID();

public org.compiere.model.I_C_DocType getC_DocTypeTarget() throws RuntimeException;

/** Column name Created */
public static final String COLUMNNAME_Created = "Created";

Expand Down Expand Up @@ -344,19 +374,6 @@ public interface I_HR_Process

public org.eevolution.model.I_HR_Process getReversal() throws RuntimeException;

/** Column name UUID */
public static final String COLUMNNAME_UUID = "UUID";

/** Set Immutable Universally Unique Identifier.
* Immutable Universally Unique Identifier
*/
public void setUUID (String UUID);

/** Get Immutable Universally Unique Identifier.
* Immutable Universally Unique Identifier
*/
public String getUUID();

/** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated";

Expand All @@ -372,4 +389,17 @@ public interface I_HR_Process
* User who updated this records
*/
public int getUpdatedBy();

/** Column name UUID */
public static final String COLUMNNAME_UUID = "UUID";

/** Set Immutable Universally Unique Identifier.
* Immutable Universally Unique Identifier
*/
public void setUUID (String UUID);

/** Get Immutable Universally Unique Identifier.
* Immutable Universally Unique Identifier
*/
public String getUUID();
}
86 changes: 71 additions & 15 deletions base/src/org/eevolution/model/X_HR_Process.java
Expand Up @@ -33,7 +33,7 @@ public class X_HR_Process extends PO implements I_HR_Process, I_Persistent
/**
*
*/
private static final long serialVersionUID = 20181220L;
private static final long serialVersionUID = 20190225L;

/** Standard Constructor */
public X_HR_Process (Properties ctx, int HR_Process_ID, String trxName)
Expand Down Expand Up @@ -139,29 +139,57 @@ public int getC_BPartner_ID ()
return ii.intValue();
}

public org.compiere.model.I_C_DocType getC_DocTypeTarget() throws RuntimeException
public org.compiere.model.I_C_ConversionType getC_ConversionType() throws RuntimeException
{
return (org.compiere.model.I_C_DocType)MTable.get(getCtx(), org.compiere.model.I_C_DocType.Table_Name)
.getPO(getC_DocTypeTarget_ID(), get_TrxName()); }
return (org.compiere.model.I_C_ConversionType)MTable.get(getCtx(), org.compiere.model.I_C_ConversionType.Table_Name)
.getPO(getC_ConversionType_ID(), get_TrxName()); }

/** Set Target Document Type.
@param C_DocTypeTarget_ID
Target document type for conversing documents
/** Set Currency Type.
@param C_ConversionType_ID
Currency Conversion Rate Type
*/
public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID)
public void setC_ConversionType_ID (int C_ConversionType_ID)
{
if (C_DocTypeTarget_ID < 1)
set_Value (COLUMNNAME_C_DocTypeTarget_ID, null);
if (C_ConversionType_ID < 1)
set_Value (COLUMNNAME_C_ConversionType_ID, null);
else
set_Value (COLUMNNAME_C_DocTypeTarget_ID, Integer.valueOf(C_DocTypeTarget_ID));
set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID));
}

/** Get Target Document Type.
@return Target document type for conversing documents
/** Get Currency Type.
@return Currency Conversion Rate Type
*/
public int getC_DocTypeTarget_ID ()
public int getC_ConversionType_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeTarget_ID);
Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID);
if (ii == null)
return 0;
return ii.intValue();
}

public org.compiere.model.I_C_Currency getC_Currency() throws RuntimeException
{
return (org.compiere.model.I_C_Currency)MTable.get(getCtx(), org.compiere.model.I_C_Currency.Table_Name)
.getPO(getC_Currency_ID(), get_TrxName()); }

/** Set Currency.
@param C_Currency_ID
The Currency for this record
*/
public void setC_Currency_ID (int C_Currency_ID)
{
if (C_Currency_ID < 1)
set_Value (COLUMNNAME_C_Currency_ID, null);
else
set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID));
}

/** Get Currency.
@return The Currency for this record
*/
public int getC_Currency_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID);
if (ii == null)
return 0;
return ii.intValue();
Expand Down Expand Up @@ -195,6 +223,34 @@ public int getC_DocType_ID ()
return ii.intValue();
}

public org.compiere.model.I_C_DocType getC_DocTypeTarget() throws RuntimeException
{
return (org.compiere.model.I_C_DocType)MTable.get(getCtx(), org.compiere.model.I_C_DocType.Table_Name)
.getPO(getC_DocTypeTarget_ID(), get_TrxName()); }

/** Set Target Document Type.
@param C_DocTypeTarget_ID
Target document type for conversing documents
*/
public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID)
{
if (C_DocTypeTarget_ID < 1)
set_Value (COLUMNNAME_C_DocTypeTarget_ID, null);
else
set_Value (COLUMNNAME_C_DocTypeTarget_ID, Integer.valueOf(C_DocTypeTarget_ID));
}

/** Get Target Document Type.
@return Target document type for conversing documents
*/
public int getC_DocTypeTarget_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeTarget_ID);
if (ii == null)
return 0;
return ii.intValue();
}

/** Set Account Date.
@param DateAcct
Accounting Date
Expand Down

0 comments on commit e71044f

Please sign in to comment.