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:
Saulo José Gil 2022-01-19 10:04:09 -03:00 committed by GitHub
parent 16d06fb1b1
commit ad8b9a3f63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
52 changed files with 255 additions and 49 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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

View File

@ -134,6 +134,10 @@ public class MActivity extends X_C_Activity implements ImmutablePOSupport
copyPO(copy);
}
public MActivity(Properties ctx, int C_Activity_ID, String trxName, String... virtualColumns) {
super(ctx, C_Activity_ID, trxName, virtualColumns);
}
/**
* After Save.
* Insert

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -257,6 +257,10 @@ public class MBPGroup extends X_C_BP_Group implements ImmutablePOSupport
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

View File

@ -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 */

View File

@ -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 */

View File

@ -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);
}
}

View File

@ -140,6 +140,10 @@ public class MBank extends X_C_Bank implements ImmutablePOSupport
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())

View File

@ -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)

View File

@ -201,6 +201,10 @@ 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 */

View File

@ -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 */

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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
*/

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -57,6 +57,10 @@ 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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -35,6 +35,10 @@ public class MOpportunity extends X_C_Opportunity {
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 )

View File

@ -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

View File

@ -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,7 +151,7 @@ public class MOrderLine extends X_C_OrderLine
setProcessed (false);
setLine (0);
}
} // MOrderLine
}
/**
* Parent Constructor.

View File

@ -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

View File

@ -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);

View File

@ -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,8 +47,7 @@ public class MProductionLine extends X_M_ProductionLine {
setMovementQty (Env.ZERO);
setProcessed (false);
}
} // MProductionLine
}
public MProductionLine (Properties ctx, ResultSet rs, String trxName)
{

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -21,4 +21,9 @@ 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);
}
}

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -276,6 +276,10 @@ public class MPPProductBOM extends X_PP_Product_BOM implements ImmutablePOSuppor
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

View File

@ -153,6 +153,10 @@ public class MPPProductBOMLine extends X_PP_Product_BOMLine implements Immutable
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

View File

@ -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