IDEMPIERE-5126 Virtual column lazy loading - Propagate new constructor (#1136)
Added new constructor PO(Properties, int, String, String...) to most model classes.
This commit is contained in:
parent
16d06fb1b1
commit
ad8b9a3f63
|
@ -35,4 +35,8 @@ public class MPromotion extends X_M_Promotion {
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MPromotion(Properties ctx, int M_Promotion_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, M_Promotion_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,4 +36,9 @@ public class MPromotionDistribution extends X_M_PromotionDistribution {
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MPromotionDistribution(Properties ctx, int M_PromotionDistribution_ID, String trxName,
|
||||||
|
String... virtualColumns) {
|
||||||
|
super(ctx, M_PromotionDistribution_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,4 +36,8 @@ public class MPromotionGroup extends X_M_PromotionGroup {
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MPromotionGroup(Properties ctx, int M_PromotionGroup_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, M_PromotionGroup_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,4 +36,8 @@ public class MPromotionGroupLine extends X_M_PromotionGroupLine {
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MPromotionGroupLine(Properties ctx, int M_PromotionGroupLine_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, M_PromotionGroupLine_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,4 +30,8 @@ public class MPromotionLine extends X_M_PromotionLine {
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MPromotionLine(Properties ctx, int M_PromotionLine_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, M_PromotionLine_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,4 +36,9 @@ public class MPromotionPreCondition extends X_M_PromotionPreCondition {
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MPromotionPreCondition(Properties ctx, int M_PromotionPreCondition_ID, String trxName,
|
||||||
|
String... virtualColumns) {
|
||||||
|
super(ctx, M_PromotionPreCondition_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,4 +36,8 @@ public class MPromotionReward extends X_M_PromotionReward {
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MPromotionReward(Properties ctx, int M_PromotionReward_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, M_PromotionReward_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,6 +108,10 @@ public class MRelationType extends X_AD_RelationType implements IZoomProvider {
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MRelationType(Properties ctx, int AD_RelationType_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, AD_RelationType_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the types that define a relation which contains the given PO.
|
* Returns the types that define a relation which contains the given PO.
|
||||||
* Explicit types are returned even if they don't actually contain the given
|
* Explicit types are returned even if they don't actually contain the given
|
||||||
|
|
|
@ -133,7 +133,11 @@ public class MActivity extends X_C_Activity implements ImmutablePOSupport
|
||||||
this(ctx, 0, trxName);
|
this(ctx, 0, trxName);
|
||||||
copyPO(copy);
|
copyPO(copy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MActivity(Properties ctx, int C_Activity_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_Activity_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* After Save.
|
* After Save.
|
||||||
* Insert
|
* Insert
|
||||||
|
|
|
@ -271,6 +271,10 @@ public class MAsset extends X_A_Asset {
|
||||||
this.m_DateAcct = copy.m_DateAcct;
|
this.m_DateAcct = copy.m_DateAcct;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MAsset(Properties ctx, int A_Asset_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, A_Asset_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set Asset Group; also it sets other default fields
|
* Set Asset Group; also it sets other default fields
|
||||||
* @param assetGroup
|
* @param assetGroup
|
||||||
|
|
|
@ -152,6 +152,10 @@ public class MAttribute extends X_M_Attribute implements ImmutablePOSupport
|
||||||
this.m_values = copy.m_values != null ? Arrays.stream(copy.m_values).map(e -> {return new MAttributeValue(ctx, e, trxName);}).toArray(MAttributeValue[]::new) : null;
|
this.m_values = copy.m_values != null ? Arrays.stream(copy.m_values).map(e -> {return new MAttributeValue(ctx, e, trxName);}).toArray(MAttributeValue[]::new) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MAttribute(Properties ctx, int M_Attribute_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, M_Attribute_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get Values if List
|
* Get Values if List
|
||||||
* @return Values or null if not list
|
* @return Values or null if not list
|
||||||
|
|
|
@ -170,6 +170,10 @@ public class MAttributeInstance extends X_M_AttributeInstance
|
||||||
setValueKeyNamePair(value);
|
setValueKeyNamePair(value);
|
||||||
} // MAttributeInstance
|
} // MAttributeInstance
|
||||||
|
|
||||||
|
public MAttributeInstance(Properties ctx, int M_AttributeInstance_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, M_AttributeInstance_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set ValueNumber
|
* Set ValueNumber
|
||||||
* @param ValueNumber number
|
* @param ValueNumber number
|
||||||
|
|
|
@ -256,7 +256,11 @@ public class MBPGroup extends X_C_BP_Group implements ImmutablePOSupport
|
||||||
this(ctx, 0, trxName);
|
this(ctx, 0, trxName);
|
||||||
copyPO(copy);
|
copyPO(copy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MBPGroup(Properties ctx, int C_BP_Group_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_BP_Group_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get Credit Watch Percent
|
* Get Credit Watch Percent
|
||||||
* @return 90 or defined percent
|
* @return 90 or defined percent
|
||||||
|
|
|
@ -357,6 +357,11 @@ public class MBPartner extends X_C_BPartner implements ImmutablePOSupport
|
||||||
this.m_group = copy.m_group != null ? new MBPGroup(ctx, copy.m_group, trxName) : null;
|
this.m_group = copy.m_group != null ? new MBPGroup(ctx, copy.m_group, trxName) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MBPartner(Properties ctx, int C_BPartner_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_BPartner_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/** Users */
|
/** Users */
|
||||||
protected MUser[] m_contacts = null;
|
protected MUser[] m_contacts = null;
|
||||||
/** Addressed */
|
/** Addressed */
|
||||||
|
|
|
@ -156,6 +156,10 @@ public class MBPartnerLocation extends X_C_BPartner_Location {
|
||||||
this.m_unique = copy.m_unique;
|
this.m_unique = copy.m_unique;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MBPartnerLocation(Properties ctx, int C_BPartner_Location_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_BPartner_Location_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/** Cached Location */
|
/** Cached Location */
|
||||||
private MLocation m_location = null;
|
private MLocation m_location = null;
|
||||||
/** Unique Name */
|
/** Unique Name */
|
||||||
|
|
|
@ -45,5 +45,8 @@ public class MBPartnerProduct extends X_C_BPartner_Product
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MBPartnerProduct(Properties ctx, int C_BPartner_Product_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_BPartner_Product_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -139,7 +139,11 @@ public class MBank extends X_C_Bank implements ImmutablePOSupport
|
||||||
this(ctx, 0, trxName);
|
this(ctx, 0, trxName);
|
||||||
copyPO(copy);
|
copyPO(copy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MBank(Properties ctx, int C_Bank_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_Bank_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MBank markImmutable() {
|
public MBank markImmutable() {
|
||||||
if (is_Immutable())
|
if (is_Immutable())
|
||||||
|
|
|
@ -99,6 +99,9 @@ import org.compiere.util.Msg;
|
||||||
setLine(lineNo);
|
setLine(lineNo);
|
||||||
} // MBankStatementLine
|
} // MBankStatementLine
|
||||||
|
|
||||||
|
public MBankStatementLine(Properties ctx, int C_BankStatementLine_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_BankStatementLine_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set Statement Line Date and all other dates (Valuta, Acct)
|
* Set Statement Line Date and all other dates (Valuta, Acct)
|
||||||
|
|
|
@ -200,7 +200,11 @@ public class MCash extends X_C_Cash implements DocAction
|
||||||
}
|
}
|
||||||
m_book = cb;
|
m_book = cb;
|
||||||
} // MCash
|
} // MCash
|
||||||
|
|
||||||
|
public MCash(Properties ctx, int C_Cash_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_Cash_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/** Lines */
|
/** Lines */
|
||||||
protected MCashLine[] m_lines = null;
|
protected MCashLine[] m_lines = null;
|
||||||
/** CashBook */
|
/** CashBook */
|
||||||
|
|
|
@ -86,6 +86,10 @@ public class MCashLine extends X_C_CashLine
|
||||||
m_parent = cash;
|
m_parent = cash;
|
||||||
} // MCashLine
|
} // MCashLine
|
||||||
|
|
||||||
|
public MCashLine(Properties ctx, int C_CashLine_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_CashLine_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/** Parent */
|
/** Parent */
|
||||||
protected MCash m_parent = null;
|
protected MCash m_parent = null;
|
||||||
/** Bank Account */
|
/** Bank Account */
|
||||||
|
|
|
@ -68,6 +68,10 @@ public class MCommission extends X_C_Commission
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
} // MCommission
|
} // MCommission
|
||||||
|
|
||||||
|
public MCommission(Properties ctx, int C_Commission_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_Commission_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get Lines
|
* Get Lines
|
||||||
* @return array of lines
|
* @return array of lines
|
||||||
|
|
|
@ -77,6 +77,10 @@ public class MCommissionAmt extends X_C_CommissionAmt
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
} // MCommissionAmt
|
} // MCommissionAmt
|
||||||
|
|
||||||
|
public MCommissionAmt(Properties ctx, int C_CommissionAmt_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_CommissionAmt_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get Details
|
* Get Details
|
||||||
* @return array of details
|
* @return array of details
|
||||||
|
|
|
@ -79,6 +79,10 @@ public class MCommissionDetail extends X_C_CommissionDetail
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
} // MCommissionDetail
|
} // MCommissionDetail
|
||||||
|
|
||||||
|
public MCommissionDetail(Properties ctx, int C_CommissionDetail_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_CommissionDetail_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set Line IDs
|
* Set Line IDs
|
||||||
* @param C_OrderLine_ID order
|
* @param C_OrderLine_ID order
|
||||||
|
|
|
@ -67,6 +67,8 @@ public class MCommissionLine extends X_C_CommissionLine
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
} // MCommissionLine
|
} // MCommissionLine
|
||||||
|
|
||||||
|
public MCommissionLine(Properties ctx, int C_CommissionLine_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_CommissionLine_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
} // MCommissionLine
|
} // MCommissionLine
|
||||||
|
|
|
@ -92,6 +92,10 @@ public class MCommissionRun extends X_C_CommissionRun
|
||||||
return retValue;
|
return retValue;
|
||||||
} // getAmts
|
} // getAmts
|
||||||
|
|
||||||
|
public MCommissionRun(Properties ctx, int C_CommissionRun_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_CommissionRun_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update From Amt
|
* Update From Amt
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -340,6 +340,10 @@ public class MConversionRate extends X_C_Conversion_Rate
|
||||||
setValidFrom(ValidFrom);
|
setValidFrom(ValidFrom);
|
||||||
} // MConversionRate
|
} // MConversionRate
|
||||||
|
|
||||||
|
public MConversionRate(Properties ctx, int C_Conversion_Rate_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_Conversion_Rate_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set Multiply Rate
|
* Set Multiply Rate
|
||||||
* Sets also Divide Rate
|
* Sets also Divide Rate
|
||||||
|
|
|
@ -126,4 +126,9 @@ public class MConversionType extends X_C_ConversionType
|
||||||
this(ctx, 0, trxName);
|
this(ctx, 0, trxName);
|
||||||
copyPO(copy);
|
copyPO(copy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MConversionType(Properties ctx, int C_ConversionType_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_ConversionType_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
} // MConversionType
|
} // MConversionType
|
||||||
|
|
|
@ -55,6 +55,9 @@ public class MDunning extends X_C_Dunning
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
} // MDunning
|
} // MDunning
|
||||||
|
|
||||||
|
public MDunning(Properties ctx, int C_Dunning_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_Dunning_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* String Representation
|
* String Representation
|
||||||
|
|
|
@ -56,7 +56,11 @@ public class MForecastLine extends X_M_ForecastLine
|
||||||
{
|
{
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
} // MForecastLine
|
} // MForecastLine
|
||||||
|
|
||||||
|
public MForecastLine(Properties ctx, int M_ForecastLine_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, M_ForecastLine_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* Before Save
|
* Before Save
|
||||||
* @param newRecord
|
* @param newRecord
|
||||||
|
|
|
@ -304,7 +304,11 @@ public class MInOut extends X_M_InOut implements DocAction, IDocsPostProcess
|
||||||
*/
|
*/
|
||||||
public MInOut (Properties ctx, int M_InOut_ID, String trxName)
|
public MInOut (Properties ctx, int M_InOut_ID, String trxName)
|
||||||
{
|
{
|
||||||
super (ctx, M_InOut_ID, trxName);
|
this (ctx, M_InOut_ID, trxName, (String[]) null);
|
||||||
|
} // MInOut
|
||||||
|
|
||||||
|
public MInOut(Properties ctx, int M_InOut_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, M_InOut_ID, trxName, virtualColumns);
|
||||||
if (M_InOut_ID == 0)
|
if (M_InOut_ID == 0)
|
||||||
{
|
{
|
||||||
setIsSOTrx (false);
|
setIsSOTrx (false);
|
||||||
|
@ -327,7 +331,7 @@ public class MInOut extends X_M_InOut implements DocAction, IDocsPostProcess
|
||||||
setProcessing(false);
|
setProcessing(false);
|
||||||
setPosted(false);
|
setPosted(false);
|
||||||
}
|
}
|
||||||
} // MInOut
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load Constructor
|
* Load Constructor
|
||||||
|
|
|
@ -103,7 +103,11 @@ public class MInOutLine extends X_M_InOutLine
|
||||||
*/
|
*/
|
||||||
public MInOutLine (Properties ctx, int M_InOutLine_ID, String trxName)
|
public MInOutLine (Properties ctx, int M_InOutLine_ID, String trxName)
|
||||||
{
|
{
|
||||||
super (ctx, M_InOutLine_ID, trxName);
|
this (ctx, M_InOutLine_ID, trxName, (String[]) null);
|
||||||
|
} // MInOutLine
|
||||||
|
|
||||||
|
public MInOutLine(Properties ctx, int M_InOutLine_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, M_InOutLine_ID, trxName, virtualColumns);
|
||||||
if (M_InOutLine_ID == 0)
|
if (M_InOutLine_ID == 0)
|
||||||
{
|
{
|
||||||
setM_AttributeSetInstance_ID(0);
|
setM_AttributeSetInstance_ID(0);
|
||||||
|
@ -114,7 +118,7 @@ public class MInOutLine extends X_M_InOutLine
|
||||||
setIsInvoiced (false);
|
setIsInvoiced (false);
|
||||||
setIsDescription (false);
|
setIsDescription (false);
|
||||||
}
|
}
|
||||||
} // MInOutLine
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load Constructor
|
* Load Constructor
|
||||||
|
|
|
@ -69,7 +69,11 @@ public class MInventoryLine extends X_M_InventoryLine
|
||||||
*/
|
*/
|
||||||
public MInventoryLine (Properties ctx, int M_InventoryLine_ID, String trxName)
|
public MInventoryLine (Properties ctx, int M_InventoryLine_ID, String trxName)
|
||||||
{
|
{
|
||||||
super (ctx, M_InventoryLine_ID, trxName);
|
this (ctx, M_InventoryLine_ID, trxName, (String[]) null);
|
||||||
|
} // MInventoryLine
|
||||||
|
|
||||||
|
public MInventoryLine(Properties ctx, int M_InventoryLine_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, M_InventoryLine_ID, trxName, virtualColumns);
|
||||||
if (M_InventoryLine_ID == 0)
|
if (M_InventoryLine_ID == 0)
|
||||||
{
|
{
|
||||||
setLine(0);
|
setLine(0);
|
||||||
|
@ -79,7 +83,7 @@ public class MInventoryLine extends X_M_InventoryLine
|
||||||
setQtyCount (Env.ZERO);
|
setQtyCount (Env.ZERO);
|
||||||
setProcessed(false);
|
setProcessed(false);
|
||||||
}
|
}
|
||||||
} // MInventoryLine
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load Constructor
|
* Load Constructor
|
||||||
|
|
|
@ -275,7 +275,11 @@ public class MInvoice extends X_C_Invoice implements DocAction, IDocsPostProcess
|
||||||
*/
|
*/
|
||||||
public MInvoice (Properties ctx, int C_Invoice_ID, String trxName)
|
public MInvoice (Properties ctx, int C_Invoice_ID, String trxName)
|
||||||
{
|
{
|
||||||
super (ctx, C_Invoice_ID, trxName);
|
this (ctx, C_Invoice_ID, trxName, (String[]) null);
|
||||||
|
} // MInvoice
|
||||||
|
|
||||||
|
public MInvoice(Properties ctx, int C_Invoice_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_Invoice_ID, trxName, virtualColumns);
|
||||||
if (C_Invoice_ID == 0)
|
if (C_Invoice_ID == 0)
|
||||||
{
|
{
|
||||||
setDocStatus (DOCSTATUS_Drafted); // Draft
|
setDocStatus (DOCSTATUS_Drafted); // Draft
|
||||||
|
@ -305,7 +309,7 @@ public class MInvoice extends X_C_Invoice implements DocAction, IDocsPostProcess
|
||||||
super.setProcessed (false);
|
super.setProcessed (false);
|
||||||
setProcessing(false);
|
setProcessing(false);
|
||||||
}
|
}
|
||||||
} // MInvoice
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load Constructor
|
* Load Constructor
|
||||||
|
|
|
@ -118,7 +118,11 @@ public class MInvoiceLine extends X_C_InvoiceLine
|
||||||
*/
|
*/
|
||||||
public MInvoiceLine (Properties ctx, int C_InvoiceLine_ID, String trxName)
|
public MInvoiceLine (Properties ctx, int C_InvoiceLine_ID, String trxName)
|
||||||
{
|
{
|
||||||
super (ctx, C_InvoiceLine_ID, trxName);
|
this (ctx, C_InvoiceLine_ID, trxName, (String[]) null);
|
||||||
|
} // MInvoiceLine
|
||||||
|
|
||||||
|
public MInvoiceLine(Properties ctx, int C_InvoiceLine_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_InvoiceLine_ID, trxName, virtualColumns);
|
||||||
if (C_InvoiceLine_ID == 0)
|
if (C_InvoiceLine_ID == 0)
|
||||||
{
|
{
|
||||||
setIsDescription(false);
|
setIsDescription(false);
|
||||||
|
@ -134,7 +138,7 @@ public class MInvoiceLine extends X_C_InvoiceLine
|
||||||
setQtyEntered(Env.ZERO);
|
setQtyEntered(Env.ZERO);
|
||||||
setQtyInvoiced(Env.ZERO);
|
setQtyInvoiced(Env.ZERO);
|
||||||
}
|
}
|
||||||
} // MInvoiceLine
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parent Constructor
|
* Parent Constructor
|
||||||
|
|
|
@ -34,7 +34,11 @@ public class MOpportunity extends X_C_Opportunity {
|
||||||
public MOpportunity(Properties ctx, ResultSet rs, String trxName) {
|
public MOpportunity(Properties ctx, ResultSet rs, String trxName) {
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MOpportunity(Properties ctx, int C_Opportunity_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_Opportunity_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean beforeSave(boolean newRecord) {
|
protected boolean beforeSave(boolean newRecord) {
|
||||||
if ( getC_Order_ID() > 0 )
|
if ( getC_Order_ID() > 0 )
|
||||||
|
|
|
@ -167,7 +167,11 @@ public class MOrder extends X_C_Order implements DocAction
|
||||||
*/
|
*/
|
||||||
public MOrder(Properties ctx, int C_Order_ID, String trxName)
|
public MOrder(Properties ctx, int C_Order_ID, String trxName)
|
||||||
{
|
{
|
||||||
super (ctx, C_Order_ID, trxName);
|
this (ctx, C_Order_ID, trxName, (String[]) null);
|
||||||
|
} // MOrder
|
||||||
|
|
||||||
|
public MOrder(Properties ctx, int C_Order_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_Order_ID, trxName, virtualColumns);
|
||||||
// New
|
// New
|
||||||
if (C_Order_ID == 0)
|
if (C_Order_ID == 0)
|
||||||
{
|
{
|
||||||
|
@ -209,7 +213,7 @@ public class MOrder extends X_C_Order implements DocAction
|
||||||
setTotalLines (Env.ZERO);
|
setTotalLines (Env.ZERO);
|
||||||
setGrandTotal (Env.ZERO);
|
setGrandTotal (Env.ZERO);
|
||||||
}
|
}
|
||||||
} // MOrder
|
}
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* Project Constructor
|
* Project Constructor
|
||||||
|
|
|
@ -124,7 +124,11 @@ public class MOrderLine extends X_C_OrderLine
|
||||||
*/
|
*/
|
||||||
public MOrderLine (Properties ctx, int C_OrderLine_ID, String trxName)
|
public MOrderLine (Properties ctx, int C_OrderLine_ID, String trxName)
|
||||||
{
|
{
|
||||||
super (ctx, C_OrderLine_ID, trxName);
|
this (ctx, C_OrderLine_ID, trxName, (String[]) null);
|
||||||
|
} // MOrderLine
|
||||||
|
|
||||||
|
public MOrderLine(Properties ctx, int C_OrderLine_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_OrderLine_ID, trxName, virtualColumns);
|
||||||
if (C_OrderLine_ID == 0)
|
if (C_OrderLine_ID == 0)
|
||||||
{
|
{
|
||||||
setFreightAmt (Env.ZERO);
|
setFreightAmt (Env.ZERO);
|
||||||
|
@ -147,8 +151,8 @@ public class MOrderLine extends X_C_OrderLine
|
||||||
setProcessed (false);
|
setProcessed (false);
|
||||||
setLine (0);
|
setLine (0);
|
||||||
}
|
}
|
||||||
} // MOrderLine
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parent Constructor.
|
* Parent Constructor.
|
||||||
ol.setM_Product_ID(wbl.getM_Product_ID());
|
ol.setM_Product_ID(wbl.getM_Product_ID());
|
||||||
|
|
|
@ -223,7 +223,11 @@ public class MProduct extends X_M_Product implements ImmutablePOSupport
|
||||||
*/
|
*/
|
||||||
public MProduct (Properties ctx, int M_Product_ID, String trxName)
|
public MProduct (Properties ctx, int M_Product_ID, String trxName)
|
||||||
{
|
{
|
||||||
super (ctx, M_Product_ID, trxName);
|
this (ctx, M_Product_ID, trxName, (String[]) null);
|
||||||
|
} // MProduct
|
||||||
|
|
||||||
|
public MProduct(Properties ctx, int M_Product_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, M_Product_ID, trxName, virtualColumns);
|
||||||
if (M_Product_ID == 0)
|
if (M_Product_ID == 0)
|
||||||
{
|
{
|
||||||
setProductType (PRODUCTTYPE_Item); // I
|
setProductType (PRODUCTTYPE_Item); // I
|
||||||
|
@ -241,7 +245,7 @@ public class MProduct extends X_M_Product implements ImmutablePOSupport
|
||||||
setProcessing (false); // N
|
setProcessing (false); // N
|
||||||
setLowLevel(0);
|
setLowLevel(0);
|
||||||
}
|
}
|
||||||
} // MProduct
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load constructor
|
* Load constructor
|
||||||
|
|
|
@ -37,7 +37,11 @@ public class MProduction extends X_M_Production implements DocAction {
|
||||||
protected int count;
|
protected int count;
|
||||||
|
|
||||||
public MProduction(Properties ctx, int M_Production_ID, String trxName) {
|
public MProduction(Properties ctx, int M_Production_ID, String trxName) {
|
||||||
super(ctx, M_Production_ID, trxName);
|
this (ctx, M_Production_ID, trxName, (String[]) null);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MProduction(Properties ctx, int M_Production_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, M_Production_ID, trxName, virtualColumns);
|
||||||
if (M_Production_ID == 0) {
|
if (M_Production_ID == 0) {
|
||||||
setDocStatus(DOCSTATUS_Drafted);
|
setDocStatus(DOCSTATUS_Drafted);
|
||||||
setDocAction (DOCACTION_Prepare);
|
setDocAction (DOCACTION_Prepare);
|
||||||
|
|
|
@ -33,7 +33,11 @@ public class MProductionLine extends X_M_ProductionLine {
|
||||||
*/
|
*/
|
||||||
public MProductionLine (Properties ctx, int M_ProductionLine_ID, String trxName)
|
public MProductionLine (Properties ctx, int M_ProductionLine_ID, String trxName)
|
||||||
{
|
{
|
||||||
super (ctx, M_ProductionLine_ID, trxName);
|
this (ctx, M_ProductionLine_ID, trxName, (String[]) null);
|
||||||
|
} // MProductionLine
|
||||||
|
|
||||||
|
public MProductionLine(Properties ctx, int M_ProductionLine_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, M_ProductionLine_ID, trxName, virtualColumns);
|
||||||
if (M_ProductionLine_ID == 0)
|
if (M_ProductionLine_ID == 0)
|
||||||
{
|
{
|
||||||
setLine (0);
|
setLine (0);
|
||||||
|
@ -43,9 +47,8 @@ public class MProductionLine extends X_M_ProductionLine {
|
||||||
setMovementQty (Env.ZERO);
|
setMovementQty (Env.ZERO);
|
||||||
setProcessed (false);
|
setProcessed (false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} // MProductionLine
|
|
||||||
|
|
||||||
public MProductionLine (Properties ctx, ResultSet rs, String trxName)
|
public MProductionLine (Properties ctx, ResultSet rs, String trxName)
|
||||||
{
|
{
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
|
|
|
@ -47,7 +47,11 @@ public class MProjectLine extends X_C_ProjectLine
|
||||||
*/
|
*/
|
||||||
public MProjectLine (Properties ctx, int C_ProjectLine_ID, String trxName)
|
public MProjectLine (Properties ctx, int C_ProjectLine_ID, String trxName)
|
||||||
{
|
{
|
||||||
super (ctx, C_ProjectLine_ID, trxName);
|
this (ctx, C_ProjectLine_ID, trxName, (String[]) null);
|
||||||
|
} // MProjectLine
|
||||||
|
|
||||||
|
public MProjectLine(Properties ctx, int C_ProjectLine_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_ProjectLine_ID, trxName, virtualColumns);
|
||||||
if (C_ProjectLine_ID == 0)
|
if (C_ProjectLine_ID == 0)
|
||||||
{
|
{
|
||||||
setLine (0);
|
setLine (0);
|
||||||
|
@ -61,7 +65,7 @@ public class MProjectLine extends X_C_ProjectLine
|
||||||
setPlannedPrice (Env.ZERO);
|
setPlannedPrice (Env.ZERO);
|
||||||
setPlannedQty (Env.ONE);
|
setPlannedQty (Env.ONE);
|
||||||
}
|
}
|
||||||
} // MProjectLine
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load Constructor
|
* Load Constructor
|
||||||
|
|
|
@ -43,13 +43,17 @@ public class MProjectTask extends X_C_ProjectTask
|
||||||
*/
|
*/
|
||||||
public MProjectTask (Properties ctx, int C_ProjectTask_ID, String trxName)
|
public MProjectTask (Properties ctx, int C_ProjectTask_ID, String trxName)
|
||||||
{
|
{
|
||||||
super (ctx, C_ProjectTask_ID, trxName);
|
this (ctx, C_ProjectTask_ID, trxName, (String[]) null);
|
||||||
|
} // MProjectTask
|
||||||
|
|
||||||
|
public MProjectTask(Properties ctx, int C_ProjectTask_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, C_ProjectTask_ID, trxName, virtualColumns);
|
||||||
if (C_ProjectTask_ID == 0)
|
if (C_ProjectTask_ID == 0)
|
||||||
{
|
{
|
||||||
setSeqNo (0);
|
setSeqNo (0);
|
||||||
setQty (Env.ZERO);
|
setQty (Env.ZERO);
|
||||||
}
|
}
|
||||||
} // MProjectTask
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load Constructor
|
* Load Constructor
|
||||||
|
|
|
@ -51,15 +51,19 @@ public class MRMALine extends X_M_RMALine
|
||||||
*/
|
*/
|
||||||
public MRMALine (Properties ctx, int M_RMALine_ID, String trxName)
|
public MRMALine (Properties ctx, int M_RMALine_ID, String trxName)
|
||||||
{
|
{
|
||||||
super (ctx, M_RMALine_ID, trxName);
|
this (ctx, M_RMALine_ID, trxName, (String[]) null);
|
||||||
|
} // MRMALine
|
||||||
|
|
||||||
|
public MRMALine(Properties ctx, int M_RMALine_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, M_RMALine_ID, trxName, virtualColumns);
|
||||||
if (M_RMALine_ID == 0)
|
if (M_RMALine_ID == 0)
|
||||||
{
|
{
|
||||||
setQty(Env.ONE);
|
setQty(Env.ONE);
|
||||||
this.setQtyDelivered(Env.ZERO);
|
this.setQtyDelivered(Env.ZERO);
|
||||||
}
|
}
|
||||||
|
|
||||||
init();
|
init();
|
||||||
} // MRMALine
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load Constructor
|
* Load Constructor
|
||||||
|
|
|
@ -87,7 +87,11 @@ public class MRequest extends X_R_Request
|
||||||
*/
|
*/
|
||||||
public MRequest(Properties ctx, int R_Request_ID, String trxName)
|
public MRequest(Properties ctx, int R_Request_ID, String trxName)
|
||||||
{
|
{
|
||||||
super (ctx, R_Request_ID, trxName);
|
this (ctx, R_Request_ID, trxName, (String[]) null);
|
||||||
|
} // MRequest
|
||||||
|
|
||||||
|
public MRequest(Properties ctx, int R_Request_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, R_Request_ID, trxName, virtualColumns);
|
||||||
if (R_Request_ID == 0)
|
if (R_Request_ID == 0)
|
||||||
{
|
{
|
||||||
setDueType (DUETYPE_Due);
|
setDueType (DUETYPE_Due);
|
||||||
|
@ -100,7 +104,7 @@ public class MRequest extends X_R_Request
|
||||||
setIsSelfService (false);
|
setIsSelfService (false);
|
||||||
setIsInvoiced (false);
|
setIsInvoiced (false);
|
||||||
}
|
}
|
||||||
} // MRequest
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SelfService Constructor
|
* SelfService Constructor
|
||||||
|
|
|
@ -123,7 +123,11 @@ public class MRequisitionLine extends X_M_RequisitionLine
|
||||||
*/
|
*/
|
||||||
public MRequisitionLine (Properties ctx, int M_RequisitionLine_ID, String trxName)
|
public MRequisitionLine (Properties ctx, int M_RequisitionLine_ID, String trxName)
|
||||||
{
|
{
|
||||||
super (ctx, M_RequisitionLine_ID, trxName);
|
this (ctx, M_RequisitionLine_ID, trxName, (String[]) null);
|
||||||
|
} // MRequisitionLine
|
||||||
|
|
||||||
|
public MRequisitionLine(Properties ctx, int M_RequisitionLine_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, M_RequisitionLine_ID, trxName, virtualColumns);
|
||||||
if (M_RequisitionLine_ID == 0)
|
if (M_RequisitionLine_ID == 0)
|
||||||
{
|
{
|
||||||
setLine (0); // @SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM M_RequisitionLine WHERE M_Requisition_ID=@M_Requisition_ID@
|
setLine (0); // @SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM M_RequisitionLine WHERE M_Requisition_ID=@M_Requisition_ID@
|
||||||
|
@ -131,8 +135,7 @@ public class MRequisitionLine extends X_M_RequisitionLine
|
||||||
setPriceActual (Env.ZERO);
|
setPriceActual (Env.ZERO);
|
||||||
setQty (Env.ONE); // 1
|
setQty (Env.ONE); // 1
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} // MRequisitionLine
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load Constructor
|
* Load Constructor
|
||||||
|
|
|
@ -20,5 +20,10 @@ public class MShippingTransactionLine extends X_M_ShippingTransactionLine
|
||||||
{
|
{
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MShippingTransactionLine(Properties ctx, int M_ShippingTransactionLine_ID, String trxName,
|
||||||
|
String... virtualColumns) {
|
||||||
|
super(ctx, M_ShippingTransactionLine_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,13 +45,17 @@ public class MTransaction extends X_M_Transaction
|
||||||
*/
|
*/
|
||||||
public MTransaction (Properties ctx, int M_Transaction_ID, String trxName)
|
public MTransaction (Properties ctx, int M_Transaction_ID, String trxName)
|
||||||
{
|
{
|
||||||
super (ctx, M_Transaction_ID, trxName);
|
this (ctx, M_Transaction_ID, trxName, (String[]) null);
|
||||||
|
} // MTransaction
|
||||||
|
|
||||||
|
public MTransaction(Properties ctx, int M_Transaction_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, M_Transaction_ID, trxName, virtualColumns);
|
||||||
if (M_Transaction_ID == 0)
|
if (M_Transaction_ID == 0)
|
||||||
{
|
{
|
||||||
setMovementDate (new Timestamp(System.currentTimeMillis()));
|
setMovementDate (new Timestamp(System.currentTimeMillis()));
|
||||||
setMovementQty (Env.ZERO);
|
setMovementQty (Env.ZERO);
|
||||||
}
|
}
|
||||||
} // MTransaction
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load Constructor
|
* Load Constructor
|
||||||
|
|
|
@ -209,6 +209,10 @@ public class MDDOrder extends X_DD_Order implements DocAction
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
} // MDDOrder
|
} // MDDOrder
|
||||||
|
|
||||||
|
public MDDOrder(Properties ctx, int DD_Order_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, DD_Order_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/** Order Lines */
|
/** Order Lines */
|
||||||
private MDDOrderLine[] m_lines = null;
|
private MDDOrderLine[] m_lines = null;
|
||||||
|
|
||||||
|
|
|
@ -165,6 +165,10 @@ public class MDDOrderLine extends X_DD_OrderLine
|
||||||
super(ctx, rs, trxName);
|
super(ctx, rs, trxName);
|
||||||
} // MDDOrderLine
|
} // MDDOrderLine
|
||||||
|
|
||||||
|
public MDDOrderLine(Properties ctx, int DD_OrderLine_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, DD_OrderLine_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
private int m_M_PriceList_ID = 0;
|
private int m_M_PriceList_ID = 0;
|
||||||
//
|
//
|
||||||
private boolean m_IsSOTrx = true;
|
private boolean m_IsSOTrx = true;
|
||||||
|
|
|
@ -275,7 +275,11 @@ public class MPPProductBOM extends X_PP_Product_BOM implements ImmutablePOSuppor
|
||||||
copyPO(copy);
|
copyPO(copy);
|
||||||
this.m_lines = copy.m_lines != null ? copy.m_lines.stream().map(e -> {return new MPPProductBOMLine(ctx, e, trxName);}).collect(Collectors.toCollection(ArrayList::new)) : null;
|
this.m_lines = copy.m_lines != null ? copy.m_lines.stream().map(e -> {return new MPPProductBOMLine(ctx, e, trxName);}).collect(Collectors.toCollection(ArrayList::new)) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MPPProductBOM(Properties ctx, int PP_Product_BOM_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, PP_Product_BOM_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get BOM Lines valid date for Product BOM
|
* Get BOM Lines valid date for Product BOM
|
||||||
* @param valid Date to Validate
|
* @param valid Date to Validate
|
||||||
|
|
|
@ -152,7 +152,11 @@ public class MPPProductBOMLine extends X_PP_Product_BOMLine implements Immutable
|
||||||
copyPO(copy);
|
copyPO(copy);
|
||||||
this.m_bom = copy.m_bom != null ? new MPPProductBOM(ctx, copy.m_bom, trxName) : null;
|
this.m_bom = copy.m_bom != null ? new MPPProductBOM(ctx, copy.m_bom, trxName) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MPPProductBOMLine(Properties ctx, int PP_Product_BOMLine_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, PP_Product_BOMLine_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get Low Level of a Product
|
* Get Low Level of a Product
|
||||||
* @return int low level
|
* @return int low level
|
||||||
|
|
|
@ -72,6 +72,10 @@ public class MPPProductPlanning extends X_PP_Product_Planning
|
||||||
super(ctx, rs,trxname);
|
super(ctx, rs,trxname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MPPProductPlanning(Properties ctx, int PP_Product_Planning_ID, String trxName, String... virtualColumns) {
|
||||||
|
super(ctx, PP_Product_Planning_ID, trxName, virtualColumns);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get Data Product Planning to Organization
|
* Get Data Product Planning to Organization
|
||||||
* @param ctx Context
|
* @param ctx Context
|
||||||
|
|
Loading…
Reference in New Issue