diff --git a/org.adempiere.base/src/org/adempiere/model/MPromotion.java b/org.adempiere.base/src/org/adempiere/model/MPromotion.java index 8786cb56e5..c8f8c5ad02 100644 --- a/org.adempiere.base/src/org/adempiere/model/MPromotion.java +++ b/org.adempiere.base/src/org/adempiere/model/MPromotion.java @@ -35,4 +35,8 @@ public class MPromotion extends X_M_Promotion { super(ctx, rs, trxName); } + public MPromotion(Properties ctx, int M_Promotion_ID, String trxName, String... virtualColumns) { + super(ctx, M_Promotion_ID, trxName, virtualColumns); + } + } diff --git a/org.adempiere.base/src/org/adempiere/model/MPromotionDistribution.java b/org.adempiere.base/src/org/adempiere/model/MPromotionDistribution.java index f01a1e2a32..5a052f36c3 100644 --- a/org.adempiere.base/src/org/adempiere/model/MPromotionDistribution.java +++ b/org.adempiere.base/src/org/adempiere/model/MPromotionDistribution.java @@ -36,4 +36,9 @@ public class MPromotionDistribution extends X_M_PromotionDistribution { super(ctx, rs, trxName); } + public MPromotionDistribution(Properties ctx, int M_PromotionDistribution_ID, String trxName, + String... virtualColumns) { + super(ctx, M_PromotionDistribution_ID, trxName, virtualColumns); + } + } diff --git a/org.adempiere.base/src/org/adempiere/model/MPromotionGroup.java b/org.adempiere.base/src/org/adempiere/model/MPromotionGroup.java index b1c26fe292..66e978cd7c 100644 --- a/org.adempiere.base/src/org/adempiere/model/MPromotionGroup.java +++ b/org.adempiere.base/src/org/adempiere/model/MPromotionGroup.java @@ -36,4 +36,8 @@ public class MPromotionGroup extends X_M_PromotionGroup { super(ctx, rs, trxName); } + public MPromotionGroup(Properties ctx, int M_PromotionGroup_ID, String trxName, String... virtualColumns) { + super(ctx, M_PromotionGroup_ID, trxName, virtualColumns); + } + } diff --git a/org.adempiere.base/src/org/adempiere/model/MPromotionGroupLine.java b/org.adempiere.base/src/org/adempiere/model/MPromotionGroupLine.java index 778c7f9159..748e9dc3ee 100644 --- a/org.adempiere.base/src/org/adempiere/model/MPromotionGroupLine.java +++ b/org.adempiere.base/src/org/adempiere/model/MPromotionGroupLine.java @@ -36,4 +36,8 @@ public class MPromotionGroupLine extends X_M_PromotionGroupLine { super(ctx, rs, trxName); } + public MPromotionGroupLine(Properties ctx, int M_PromotionGroupLine_ID, String trxName, String... virtualColumns) { + super(ctx, M_PromotionGroupLine_ID, trxName, virtualColumns); + } + } diff --git a/org.adempiere.base/src/org/adempiere/model/MPromotionLine.java b/org.adempiere.base/src/org/adempiere/model/MPromotionLine.java index ebf393e74f..999e11b7a5 100644 --- a/org.adempiere.base/src/org/adempiere/model/MPromotionLine.java +++ b/org.adempiere.base/src/org/adempiere/model/MPromotionLine.java @@ -30,4 +30,8 @@ public class MPromotionLine extends X_M_PromotionLine { super(ctx, rs, trxName); } + public MPromotionLine(Properties ctx, int M_PromotionLine_ID, String trxName, String... virtualColumns) { + super(ctx, M_PromotionLine_ID, trxName, virtualColumns); + } + } diff --git a/org.adempiere.base/src/org/adempiere/model/MPromotionPreCondition.java b/org.adempiere.base/src/org/adempiere/model/MPromotionPreCondition.java index 88e45aab8c..d560ffaa65 100644 --- a/org.adempiere.base/src/org/adempiere/model/MPromotionPreCondition.java +++ b/org.adempiere.base/src/org/adempiere/model/MPromotionPreCondition.java @@ -36,4 +36,9 @@ public class MPromotionPreCondition extends X_M_PromotionPreCondition { super(ctx, rs, trxName); } + public MPromotionPreCondition(Properties ctx, int M_PromotionPreCondition_ID, String trxName, + String... virtualColumns) { + super(ctx, M_PromotionPreCondition_ID, trxName, virtualColumns); + } + } diff --git a/org.adempiere.base/src/org/adempiere/model/MPromotionReward.java b/org.adempiere.base/src/org/adempiere/model/MPromotionReward.java index 3ffc9d6f79..3bd2c72c09 100644 --- a/org.adempiere.base/src/org/adempiere/model/MPromotionReward.java +++ b/org.adempiere.base/src/org/adempiere/model/MPromotionReward.java @@ -36,4 +36,8 @@ public class MPromotionReward extends X_M_PromotionReward { super(ctx, rs, trxName); } + public MPromotionReward(Properties ctx, int M_PromotionReward_ID, String trxName, String... virtualColumns) { + super(ctx, M_PromotionReward_ID, trxName, virtualColumns); + } + } diff --git a/org.adempiere.base/src/org/adempiere/model/MRelationType.java b/org.adempiere.base/src/org/adempiere/model/MRelationType.java index f5a2f66566..30171f0677 100644 --- a/org.adempiere.base/src/org/adempiere/model/MRelationType.java +++ b/org.adempiere.base/src/org/adempiere/model/MRelationType.java @@ -108,6 +108,10 @@ public class MRelationType extends X_AD_RelationType implements IZoomProvider { 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. * Explicit types are returned even if they don't actually contain the given diff --git a/org.adempiere.base/src/org/compiere/model/MActivity.java b/org.adempiere.base/src/org/compiere/model/MActivity.java index 9023ae69c0..3a56457cdf 100644 --- a/org.adempiere.base/src/org/compiere/model/MActivity.java +++ b/org.adempiere.base/src/org/compiere/model/MActivity.java @@ -133,7 +133,11 @@ public class MActivity extends X_C_Activity implements ImmutablePOSupport this(ctx, 0, trxName); copyPO(copy); } - + + public MActivity(Properties ctx, int C_Activity_ID, String trxName, String... virtualColumns) { + super(ctx, C_Activity_ID, trxName, virtualColumns); + } + /** * After Save. * Insert diff --git a/org.adempiere.base/src/org/compiere/model/MAsset.java b/org.adempiere.base/src/org/compiere/model/MAsset.java index 6f61e0d053..b437e59ea1 100644 --- a/org.adempiere.base/src/org/compiere/model/MAsset.java +++ b/org.adempiere.base/src/org/compiere/model/MAsset.java @@ -271,6 +271,10 @@ public class MAsset extends X_A_Asset { 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 * @param assetGroup diff --git a/org.adempiere.base/src/org/compiere/model/MAttribute.java b/org.adempiere.base/src/org/compiere/model/MAttribute.java index 3b5ad26498..f86128bc5a 100644 --- a/org.adempiere.base/src/org/compiere/model/MAttribute.java +++ b/org.adempiere.base/src/org/compiere/model/MAttribute.java @@ -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; } + public MAttribute(Properties ctx, int M_Attribute_ID, String trxName, String... virtualColumns) { + super(ctx, M_Attribute_ID, trxName, virtualColumns); + } + /** * Get Values if List * @return Values or null if not list diff --git a/org.adempiere.base/src/org/compiere/model/MAttributeInstance.java b/org.adempiere.base/src/org/compiere/model/MAttributeInstance.java index 2dfec28e2d..16b6ea4699 100644 --- a/org.adempiere.base/src/org/compiere/model/MAttributeInstance.java +++ b/org.adempiere.base/src/org/compiere/model/MAttributeInstance.java @@ -170,6 +170,10 @@ public class MAttributeInstance extends X_M_AttributeInstance setValueKeyNamePair(value); } // MAttributeInstance + public MAttributeInstance(Properties ctx, int M_AttributeInstance_ID, String trxName, String... virtualColumns) { + super(ctx, M_AttributeInstance_ID, trxName, virtualColumns); + } + /** * Set ValueNumber * @param ValueNumber number diff --git a/org.adempiere.base/src/org/compiere/model/MBPGroup.java b/org.adempiere.base/src/org/compiere/model/MBPGroup.java index 14fe248b5e..02e67d0e21 100644 --- a/org.adempiere.base/src/org/compiere/model/MBPGroup.java +++ b/org.adempiere.base/src/org/compiere/model/MBPGroup.java @@ -256,7 +256,11 @@ public class MBPGroup extends X_C_BP_Group implements ImmutablePOSupport this(ctx, 0, trxName); 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 * @return 90 or defined percent diff --git a/org.adempiere.base/src/org/compiere/model/MBPartner.java b/org.adempiere.base/src/org/compiere/model/MBPartner.java index 2322d2a965..dca783c33c 100644 --- a/org.adempiere.base/src/org/compiere/model/MBPartner.java +++ b/org.adempiere.base/src/org/compiere/model/MBPartner.java @@ -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; } + public MBPartner(Properties ctx, int C_BPartner_ID, String trxName, String... virtualColumns) { + super(ctx, C_BPartner_ID, trxName, virtualColumns); + } + + /** Users */ protected MUser[] m_contacts = null; /** Addressed */ diff --git a/org.adempiere.base/src/org/compiere/model/MBPartnerLocation.java b/org.adempiere.base/src/org/compiere/model/MBPartnerLocation.java index 2d4c008f6f..7bb33f0a4d 100644 --- a/org.adempiere.base/src/org/compiere/model/MBPartnerLocation.java +++ b/org.adempiere.base/src/org/compiere/model/MBPartnerLocation.java @@ -156,6 +156,10 @@ public class MBPartnerLocation extends X_C_BPartner_Location { 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 */ private MLocation m_location = null; /** Unique Name */ diff --git a/org.adempiere.base/src/org/compiere/model/MBPartnerProduct.java b/org.adempiere.base/src/org/compiere/model/MBPartnerProduct.java index f9fa7d795d..6feff7a46d 100644 --- a/org.adempiere.base/src/org/compiere/model/MBPartnerProduct.java +++ b/org.adempiere.base/src/org/compiere/model/MBPartnerProduct.java @@ -45,5 +45,8 @@ public class MBPartnerProduct extends X_C_BPartner_Product 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); + } + } diff --git a/org.adempiere.base/src/org/compiere/model/MBank.java b/org.adempiere.base/src/org/compiere/model/MBank.java index 817de502cd..bb76d29055 100644 --- a/org.adempiere.base/src/org/compiere/model/MBank.java +++ b/org.adempiere.base/src/org/compiere/model/MBank.java @@ -139,7 +139,11 @@ public class MBank extends X_C_Bank implements ImmutablePOSupport this(ctx, 0, trxName); copyPO(copy); } - + + public MBank(Properties ctx, int C_Bank_ID, String trxName, String... virtualColumns) { + super(ctx, C_Bank_ID, trxName, virtualColumns); + } + @Override public MBank markImmutable() { if (is_Immutable()) diff --git a/org.adempiere.base/src/org/compiere/model/MBankStatementLine.java b/org.adempiere.base/src/org/compiere/model/MBankStatementLine.java index 10ea776fec..928be41b53 100644 --- a/org.adempiere.base/src/org/compiere/model/MBankStatementLine.java +++ b/org.adempiere.base/src/org/compiere/model/MBankStatementLine.java @@ -99,6 +99,9 @@ import org.compiere.util.Msg; setLine(lineNo); } // 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) diff --git a/org.adempiere.base/src/org/compiere/model/MCash.java b/org.adempiere.base/src/org/compiere/model/MCash.java index 024869ba0d..1ac358236c 100644 --- a/org.adempiere.base/src/org/compiere/model/MCash.java +++ b/org.adempiere.base/src/org/compiere/model/MCash.java @@ -200,7 +200,11 @@ public class MCash extends X_C_Cash implements DocAction } m_book = cb; } // MCash - + + public MCash(Properties ctx, int C_Cash_ID, String trxName, String... virtualColumns) { + super(ctx, C_Cash_ID, trxName, virtualColumns); + } + /** Lines */ protected MCashLine[] m_lines = null; /** CashBook */ diff --git a/org.adempiere.base/src/org/compiere/model/MCashLine.java b/org.adempiere.base/src/org/compiere/model/MCashLine.java index 58b23b5cb9..c89036b2cb 100644 --- a/org.adempiere.base/src/org/compiere/model/MCashLine.java +++ b/org.adempiere.base/src/org/compiere/model/MCashLine.java @@ -86,6 +86,10 @@ public class MCashLine extends X_C_CashLine m_parent = cash; } // MCashLine + public MCashLine(Properties ctx, int C_CashLine_ID, String trxName, String... virtualColumns) { + super(ctx, C_CashLine_ID, trxName, virtualColumns); + } + /** Parent */ protected MCash m_parent = null; /** Bank Account */ diff --git a/org.adempiere.base/src/org/compiere/model/MCommission.java b/org.adempiere.base/src/org/compiere/model/MCommission.java index a86764b346..c4a2ea2f0b 100644 --- a/org.adempiere.base/src/org/compiere/model/MCommission.java +++ b/org.adempiere.base/src/org/compiere/model/MCommission.java @@ -68,6 +68,10 @@ public class MCommission extends X_C_Commission super(ctx, rs, trxName); } // MCommission + public MCommission(Properties ctx, int C_Commission_ID, String trxName, String... virtualColumns) { + super(ctx, C_Commission_ID, trxName, virtualColumns); + } + /** * Get Lines * @return array of lines diff --git a/org.adempiere.base/src/org/compiere/model/MCommissionAmt.java b/org.adempiere.base/src/org/compiere/model/MCommissionAmt.java index 7808619450..73eb8405e7 100644 --- a/org.adempiere.base/src/org/compiere/model/MCommissionAmt.java +++ b/org.adempiere.base/src/org/compiere/model/MCommissionAmt.java @@ -77,6 +77,10 @@ public class MCommissionAmt extends X_C_CommissionAmt super(ctx, rs, trxName); } // MCommissionAmt + public MCommissionAmt(Properties ctx, int C_CommissionAmt_ID, String trxName, String... virtualColumns) { + super(ctx, C_CommissionAmt_ID, trxName, virtualColumns); + } + /** * Get Details * @return array of details diff --git a/org.adempiere.base/src/org/compiere/model/MCommissionDetail.java b/org.adempiere.base/src/org/compiere/model/MCommissionDetail.java index 421470ffcb..53c2d2d22d 100644 --- a/org.adempiere.base/src/org/compiere/model/MCommissionDetail.java +++ b/org.adempiere.base/src/org/compiere/model/MCommissionDetail.java @@ -79,6 +79,10 @@ public class MCommissionDetail extends X_C_CommissionDetail super(ctx, rs, trxName); } // MCommissionDetail + public MCommissionDetail(Properties ctx, int C_CommissionDetail_ID, String trxName, String... virtualColumns) { + super(ctx, C_CommissionDetail_ID, trxName, virtualColumns); + } + /** * Set Line IDs * @param C_OrderLine_ID order diff --git a/org.adempiere.base/src/org/compiere/model/MCommissionLine.java b/org.adempiere.base/src/org/compiere/model/MCommissionLine.java index ae681c1959..734c9c3151 100644 --- a/org.adempiere.base/src/org/compiere/model/MCommissionLine.java +++ b/org.adempiere.base/src/org/compiere/model/MCommissionLine.java @@ -67,6 +67,8 @@ public class MCommissionLine extends X_C_CommissionLine super(ctx, rs, trxName); } // MCommissionLine - - + public MCommissionLine(Properties ctx, int C_CommissionLine_ID, String trxName, String... virtualColumns) { + super(ctx, C_CommissionLine_ID, trxName, virtualColumns); + } + } // MCommissionLine diff --git a/org.adempiere.base/src/org/compiere/model/MCommissionRun.java b/org.adempiere.base/src/org/compiere/model/MCommissionRun.java index 35ebc23dce..2f14cd2635 100644 --- a/org.adempiere.base/src/org/compiere/model/MCommissionRun.java +++ b/org.adempiere.base/src/org/compiere/model/MCommissionRun.java @@ -92,6 +92,10 @@ public class MCommissionRun extends X_C_CommissionRun return retValue; } // getAmts + public MCommissionRun(Properties ctx, int C_CommissionRun_ID, String trxName, String... virtualColumns) { + super(ctx, C_CommissionRun_ID, trxName, virtualColumns); + } + /** * Update From Amt */ diff --git a/org.adempiere.base/src/org/compiere/model/MConversionRate.java b/org.adempiere.base/src/org/compiere/model/MConversionRate.java index 2dfc67592b..fa6b372e5f 100644 --- a/org.adempiere.base/src/org/compiere/model/MConversionRate.java +++ b/org.adempiere.base/src/org/compiere/model/MConversionRate.java @@ -340,6 +340,10 @@ public class MConversionRate extends X_C_Conversion_Rate setValidFrom(ValidFrom); } // 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 * Sets also Divide Rate diff --git a/org.adempiere.base/src/org/compiere/model/MConversionType.java b/org.adempiere.base/src/org/compiere/model/MConversionType.java index bb0a010473..4e2cdcfbc3 100644 --- a/org.adempiere.base/src/org/compiere/model/MConversionType.java +++ b/org.adempiere.base/src/org/compiere/model/MConversionType.java @@ -126,4 +126,9 @@ public class MConversionType extends X_C_ConversionType this(ctx, 0, trxName); copyPO(copy); } + + public MConversionType(Properties ctx, int C_ConversionType_ID, String trxName, String... virtualColumns) { + super(ctx, C_ConversionType_ID, trxName, virtualColumns); + } + } // MConversionType diff --git a/org.adempiere.base/src/org/compiere/model/MDunning.java b/org.adempiere.base/src/org/compiere/model/MDunning.java index 848550765b..2a6942a9b0 100644 --- a/org.adempiere.base/src/org/compiere/model/MDunning.java +++ b/org.adempiere.base/src/org/compiere/model/MDunning.java @@ -55,6 +55,9 @@ public class MDunning extends X_C_Dunning super(ctx, rs, trxName); } // MDunning + public MDunning(Properties ctx, int C_Dunning_ID, String trxName, String... virtualColumns) { + super(ctx, C_Dunning_ID, trxName, virtualColumns); + } /** * String Representation diff --git a/org.adempiere.base/src/org/compiere/model/MForecastLine.java b/org.adempiere.base/src/org/compiere/model/MForecastLine.java index 11d1fc37c3..bf74585ca3 100644 --- a/org.adempiere.base/src/org/compiere/model/MForecastLine.java +++ b/org.adempiere.base/src/org/compiere/model/MForecastLine.java @@ -56,7 +56,11 @@ public class MForecastLine extends X_M_ForecastLine { super(ctx, rs, trxName); } // MForecastLine - + + public MForecastLine(Properties ctx, int M_ForecastLine_ID, String trxName, String... virtualColumns) { + super(ctx, M_ForecastLine_ID, trxName, virtualColumns); + } + /************************************************************************** * Before Save * @param newRecord diff --git a/org.adempiere.base/src/org/compiere/model/MInOut.java b/org.adempiere.base/src/org/compiere/model/MInOut.java index 2d11194e7d..4f695d303e 100644 --- a/org.adempiere.base/src/org/compiere/model/MInOut.java +++ b/org.adempiere.base/src/org/compiere/model/MInOut.java @@ -304,7 +304,11 @@ public class MInOut extends X_M_InOut implements DocAction, IDocsPostProcess */ 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) { setIsSOTrx (false); @@ -327,7 +331,7 @@ public class MInOut extends X_M_InOut implements DocAction, IDocsPostProcess setProcessing(false); setPosted(false); } - } // MInOut + } /** * Load Constructor diff --git a/org.adempiere.base/src/org/compiere/model/MInOutLine.java b/org.adempiere.base/src/org/compiere/model/MInOutLine.java index ac0a53472d..e1262d9d69 100644 --- a/org.adempiere.base/src/org/compiere/model/MInOutLine.java +++ b/org.adempiere.base/src/org/compiere/model/MInOutLine.java @@ -103,7 +103,11 @@ public class MInOutLine extends X_M_InOutLine */ 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) { setM_AttributeSetInstance_ID(0); @@ -114,7 +118,7 @@ public class MInOutLine extends X_M_InOutLine setIsInvoiced (false); setIsDescription (false); } - } // MInOutLine + } /** * Load Constructor diff --git a/org.adempiere.base/src/org/compiere/model/MInventoryLine.java b/org.adempiere.base/src/org/compiere/model/MInventoryLine.java index b060753a4a..222d997c6c 100644 --- a/org.adempiere.base/src/org/compiere/model/MInventoryLine.java +++ b/org.adempiere.base/src/org/compiere/model/MInventoryLine.java @@ -69,7 +69,11 @@ public class MInventoryLine extends X_M_InventoryLine */ 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) { setLine(0); @@ -79,7 +83,7 @@ public class MInventoryLine extends X_M_InventoryLine setQtyCount (Env.ZERO); setProcessed(false); } - } // MInventoryLine + } /** * Load Constructor diff --git a/org.adempiere.base/src/org/compiere/model/MInvoice.java b/org.adempiere.base/src/org/compiere/model/MInvoice.java index 97cedda7c8..601f9f63ef 100644 --- a/org.adempiere.base/src/org/compiere/model/MInvoice.java +++ b/org.adempiere.base/src/org/compiere/model/MInvoice.java @@ -275,7 +275,11 @@ public class MInvoice extends X_C_Invoice implements DocAction, IDocsPostProcess */ 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) { setDocStatus (DOCSTATUS_Drafted); // Draft @@ -305,7 +309,7 @@ public class MInvoice extends X_C_Invoice implements DocAction, IDocsPostProcess super.setProcessed (false); setProcessing(false); } - } // MInvoice + } /** * Load Constructor diff --git a/org.adempiere.base/src/org/compiere/model/MInvoiceLine.java b/org.adempiere.base/src/org/compiere/model/MInvoiceLine.java index cb2dd201ce..a4b5789be3 100644 --- a/org.adempiere.base/src/org/compiere/model/MInvoiceLine.java +++ b/org.adempiere.base/src/org/compiere/model/MInvoiceLine.java @@ -118,7 +118,11 @@ public class MInvoiceLine extends X_C_InvoiceLine */ 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) { setIsDescription(false); @@ -134,7 +138,7 @@ public class MInvoiceLine extends X_C_InvoiceLine setQtyEntered(Env.ZERO); setQtyInvoiced(Env.ZERO); } - } // MInvoiceLine + } /** * Parent Constructor diff --git a/org.adempiere.base/src/org/compiere/model/MOpportunity.java b/org.adempiere.base/src/org/compiere/model/MOpportunity.java index 584b1a71d6..9167b1d50f 100644 --- a/org.adempiere.base/src/org/compiere/model/MOpportunity.java +++ b/org.adempiere.base/src/org/compiere/model/MOpportunity.java @@ -34,7 +34,11 @@ public class MOpportunity extends X_C_Opportunity { public MOpportunity(Properties ctx, ResultSet rs, String 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 protected boolean beforeSave(boolean newRecord) { if ( getC_Order_ID() > 0 ) diff --git a/org.adempiere.base/src/org/compiere/model/MOrder.java b/org.adempiere.base/src/org/compiere/model/MOrder.java index 34858f1a23..f498bfedaa 100644 --- a/org.adempiere.base/src/org/compiere/model/MOrder.java +++ b/org.adempiere.base/src/org/compiere/model/MOrder.java @@ -167,7 +167,11 @@ public class MOrder extends X_C_Order implements DocAction */ 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 if (C_Order_ID == 0) { @@ -209,7 +213,7 @@ public class MOrder extends X_C_Order implements DocAction setTotalLines (Env.ZERO); setGrandTotal (Env.ZERO); } - } // MOrder + } /************************************************************************** * Project Constructor diff --git a/org.adempiere.base/src/org/compiere/model/MOrderLine.java b/org.adempiere.base/src/org/compiere/model/MOrderLine.java index d29f9ab5ee..cf51ea9e3c 100644 --- a/org.adempiere.base/src/org/compiere/model/MOrderLine.java +++ b/org.adempiere.base/src/org/compiere/model/MOrderLine.java @@ -124,7 +124,11 @@ public class MOrderLine extends X_C_OrderLine */ 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) { setFreightAmt (Env.ZERO); @@ -147,8 +151,8 @@ public class MOrderLine extends X_C_OrderLine setProcessed (false); setLine (0); } - } // MOrderLine - + } + /** * Parent Constructor. ol.setM_Product_ID(wbl.getM_Product_ID()); diff --git a/org.adempiere.base/src/org/compiere/model/MProduct.java b/org.adempiere.base/src/org/compiere/model/MProduct.java index 0cba0402d6..0be63ed139 100644 --- a/org.adempiere.base/src/org/compiere/model/MProduct.java +++ b/org.adempiere.base/src/org/compiere/model/MProduct.java @@ -223,7 +223,11 @@ public class MProduct extends X_M_Product implements ImmutablePOSupport */ 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) { setProductType (PRODUCTTYPE_Item); // I @@ -241,7 +245,7 @@ public class MProduct extends X_M_Product implements ImmutablePOSupport setProcessing (false); // N setLowLevel(0); } - } // MProduct + } /** * Load constructor diff --git a/org.adempiere.base/src/org/compiere/model/MProduction.java b/org.adempiere.base/src/org/compiere/model/MProduction.java index 55365d82b1..96dbc45ed2 100644 --- a/org.adempiere.base/src/org/compiere/model/MProduction.java +++ b/org.adempiere.base/src/org/compiere/model/MProduction.java @@ -37,7 +37,11 @@ public class MProduction extends X_M_Production implements DocAction { protected int count; 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) { setDocStatus(DOCSTATUS_Drafted); setDocAction (DOCACTION_Prepare); diff --git a/org.adempiere.base/src/org/compiere/model/MProductionLine.java b/org.adempiere.base/src/org/compiere/model/MProductionLine.java index 0dec237a4d..be9423b841 100644 --- a/org.adempiere.base/src/org/compiere/model/MProductionLine.java +++ b/org.adempiere.base/src/org/compiere/model/MProductionLine.java @@ -33,7 +33,11 @@ public class MProductionLine extends X_M_ProductionLine { */ 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) { setLine (0); @@ -43,9 +47,8 @@ public class MProductionLine extends X_M_ProductionLine { setMovementQty (Env.ZERO); setProcessed (false); } - - } // MProductionLine - + } + public MProductionLine (Properties ctx, ResultSet rs, String trxName) { super(ctx, rs, trxName); diff --git a/org.adempiere.base/src/org/compiere/model/MProjectLine.java b/org.adempiere.base/src/org/compiere/model/MProjectLine.java index 72749c3933..dd9a870216 100644 --- a/org.adempiere.base/src/org/compiere/model/MProjectLine.java +++ b/org.adempiere.base/src/org/compiere/model/MProjectLine.java @@ -47,7 +47,11 @@ public class MProjectLine extends X_C_ProjectLine */ 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) { setLine (0); @@ -61,7 +65,7 @@ public class MProjectLine extends X_C_ProjectLine setPlannedPrice (Env.ZERO); setPlannedQty (Env.ONE); } - } // MProjectLine + } /** * Load Constructor diff --git a/org.adempiere.base/src/org/compiere/model/MProjectTask.java b/org.adempiere.base/src/org/compiere/model/MProjectTask.java index 961ca4d562..66b1cd3ab7 100644 --- a/org.adempiere.base/src/org/compiere/model/MProjectTask.java +++ b/org.adempiere.base/src/org/compiere/model/MProjectTask.java @@ -43,13 +43,17 @@ public class MProjectTask extends X_C_ProjectTask */ 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) { setSeqNo (0); setQty (Env.ZERO); } - } // MProjectTask + } /** * Load Constructor diff --git a/org.adempiere.base/src/org/compiere/model/MRMALine.java b/org.adempiere.base/src/org/compiere/model/MRMALine.java index 94f4a583a7..dcae4be72b 100644 --- a/org.adempiere.base/src/org/compiere/model/MRMALine.java +++ b/org.adempiere.base/src/org/compiere/model/MRMALine.java @@ -51,15 +51,19 @@ public class MRMALine extends X_M_RMALine */ 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) { setQty(Env.ONE); this.setQtyDelivered(Env.ZERO); } - - init(); - } // MRMALine + + init(); + } /** * Load Constructor diff --git a/org.adempiere.base/src/org/compiere/model/MRequest.java b/org.adempiere.base/src/org/compiere/model/MRequest.java index 58c2d995c5..8c717f5231 100644 --- a/org.adempiere.base/src/org/compiere/model/MRequest.java +++ b/org.adempiere.base/src/org/compiere/model/MRequest.java @@ -87,7 +87,11 @@ public class MRequest extends X_R_Request */ 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) { setDueType (DUETYPE_Due); @@ -100,7 +104,7 @@ public class MRequest extends X_R_Request setIsSelfService (false); setIsInvoiced (false); } - } // MRequest + } /** * SelfService Constructor diff --git a/org.adempiere.base/src/org/compiere/model/MRequisitionLine.java b/org.adempiere.base/src/org/compiere/model/MRequisitionLine.java index 7453772695..21ba0e88ea 100644 --- a/org.adempiere.base/src/org/compiere/model/MRequisitionLine.java +++ b/org.adempiere.base/src/org/compiere/model/MRequisitionLine.java @@ -123,7 +123,11 @@ public class MRequisitionLine extends X_M_RequisitionLine */ 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) { 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); setQty (Env.ONE); // 1 } - - } // MRequisitionLine + } /** * Load Constructor diff --git a/org.adempiere.base/src/org/compiere/model/MShippingTransactionLine.java b/org.adempiere.base/src/org/compiere/model/MShippingTransactionLine.java index ee723459a7..11de258164 100644 --- a/org.adempiere.base/src/org/compiere/model/MShippingTransactionLine.java +++ b/org.adempiere.base/src/org/compiere/model/MShippingTransactionLine.java @@ -20,5 +20,10 @@ public class MShippingTransactionLine extends X_M_ShippingTransactionLine { super(ctx, rs, trxName); } - + + public MShippingTransactionLine(Properties ctx, int M_ShippingTransactionLine_ID, String trxName, + String... virtualColumns) { + super(ctx, M_ShippingTransactionLine_ID, trxName, virtualColumns); + } + } diff --git a/org.adempiere.base/src/org/compiere/model/MTransaction.java b/org.adempiere.base/src/org/compiere/model/MTransaction.java index 20f64a2db7..941d7a0b70 100644 --- a/org.adempiere.base/src/org/compiere/model/MTransaction.java +++ b/org.adempiere.base/src/org/compiere/model/MTransaction.java @@ -45,13 +45,17 @@ public class MTransaction extends X_M_Transaction */ 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) { setMovementDate (new Timestamp(System.currentTimeMillis())); setMovementQty (Env.ZERO); } - } // MTransaction + } /** * Load Constructor diff --git a/org.adempiere.base/src/org/eevolution/model/MDDOrder.java b/org.adempiere.base/src/org/eevolution/model/MDDOrder.java index 2d83c8d65b..df6474d574 100644 --- a/org.adempiere.base/src/org/eevolution/model/MDDOrder.java +++ b/org.adempiere.base/src/org/eevolution/model/MDDOrder.java @@ -209,6 +209,10 @@ public class MDDOrder extends X_DD_Order implements DocAction super(ctx, rs, trxName); } // MDDOrder + public MDDOrder(Properties ctx, int DD_Order_ID, String trxName, String... virtualColumns) { + super(ctx, DD_Order_ID, trxName, virtualColumns); + } + /** Order Lines */ private MDDOrderLine[] m_lines = null; diff --git a/org.adempiere.base/src/org/eevolution/model/MDDOrderLine.java b/org.adempiere.base/src/org/eevolution/model/MDDOrderLine.java index c4cf7a7c96..bd3b7e43ec 100644 --- a/org.adempiere.base/src/org/eevolution/model/MDDOrderLine.java +++ b/org.adempiere.base/src/org/eevolution/model/MDDOrderLine.java @@ -165,6 +165,10 @@ public class MDDOrderLine extends X_DD_OrderLine super(ctx, rs, trxName); } // 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 boolean m_IsSOTrx = true; diff --git a/org.adempiere.base/src/org/eevolution/model/MPPProductBOM.java b/org.adempiere.base/src/org/eevolution/model/MPPProductBOM.java index ed1af2103a..389dbe547d 100644 --- a/org.adempiere.base/src/org/eevolution/model/MPPProductBOM.java +++ b/org.adempiere.base/src/org/eevolution/model/MPPProductBOM.java @@ -275,7 +275,11 @@ public class MPPProductBOM extends X_PP_Product_BOM implements ImmutablePOSuppor 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; } - + + 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 * @param valid Date to Validate diff --git a/org.adempiere.base/src/org/eevolution/model/MPPProductBOMLine.java b/org.adempiere.base/src/org/eevolution/model/MPPProductBOMLine.java index 4f1cd99b92..2d9a9a1817 100644 --- a/org.adempiere.base/src/org/eevolution/model/MPPProductBOMLine.java +++ b/org.adempiere.base/src/org/eevolution/model/MPPProductBOMLine.java @@ -152,7 +152,11 @@ public class MPPProductBOMLine extends X_PP_Product_BOMLine implements Immutable copyPO(copy); 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 * @return int low level diff --git a/org.adempiere.base/src/org/eevolution/model/MPPProductPlanning.java b/org.adempiere.base/src/org/eevolution/model/MPPProductPlanning.java index 66a8127348..021b2225d8 100644 --- a/org.adempiere.base/src/org/eevolution/model/MPPProductPlanning.java +++ b/org.adempiere.base/src/org/eevolution/model/MPPProductPlanning.java @@ -72,6 +72,10 @@ public class MPPProductPlanning extends X_PP_Product_Planning 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 * @param ctx Context