diff --git a/andromeida.midsuit.project/bin/andromedia/midsuit/factory/MID_ValidatorFactory.java.rej b/andromeida.midsuit.project/bin/andromedia/midsuit/factory/MID_ValidatorFactory.java.rej new file mode 100644 index 0000000..6ccef45 --- /dev/null +++ b/andromeida.midsuit.project/bin/andromedia/midsuit/factory/MID_ValidatorFactory.java.rej @@ -0,0 +1,27 @@ +--- MID_ValidatorFactory.java ++++ MID_ValidatorFactory.java +@@ -26,15 +26,15 @@ + + // if (getPO(event).get_TableName().equals(MOrderLandedCostAllocation.Table_Name)) + // msg = SMT_LandedCostAllocationValidator.executeEvent(event, getPO(event)); +- if (getPO(event).get_TableName().equals(MOrder.Table_Name)) +- msg = MID_OrderValidator.executeEvent(event, getPO(event)); +- if (getPO(event).get_TableName().equals(MRMA.Table_Name)) +- msg = MID_RMAValidator.executeEvent(event, getPO(event)); +- if(getPO(event).get_TableName().equals(MPaymentAllocate.Table_Name)) +- msg = MID_PaymentAllocateValidator.executeEvent(event, getPO(event)); +- if(getPO(event).get_TableName().equals(MProductPrice.Table_Name)) +- msg = MID_ProductPriceValidator.executeEvent(event, getPO(event)); +- logEvent(event, getPO(event), msg); ++// if (getPO(event).get_TableName().equals(MOrder.Table_Name)) ++// msg = MID_OrderValidator.executeEvent(event, getPO(event)); ++// if (getPO(event).get_TableName().equals(MRMA.Table_Name)) ++// msg = MID_RMAValidator.executeEvent(event, getPO(event)); ++// if(getPO(event).get_TableName().equals(MPaymentAllocate.Table_Name)) ++// msg = MID_PaymentAllocateValidator.executeEvent(event, getPO(event)); ++// if(getPO(event).get_TableName().equals(MProductPrice.Table_Name)) ++// msg = MID_ProductPriceValidator.executeEvent(event, getPO(event)); ++// logEvent(event, getPO(event), msg); + } + + private void logEvent(Event event, PO po, String msg) { diff --git a/andromeida.midsuit.project/src/andromedia/midsuit/doc/MID_DocMRPPPO.java b/andromeida.midsuit.project/src/andromedia/midsuit/doc/MID_DocMRPPPO.java new file mode 100644 index 0000000..096794c --- /dev/null +++ b/andromeida.midsuit.project/src/andromedia/midsuit/doc/MID_DocMRPPPO.java @@ -0,0 +1,34 @@ +package andromedia.midsuit.doc; + +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.util.ArrayList; + +import org.compiere.acct.Doc; +import org.compiere.acct.Fact; +import org.compiere.model.MAcctSchema; +import andromedia.midsuit.model.MID_PPO;; + +public class MID_DocMRPPPO extends Doc{ + + public MID_DocMRPPPO (MAcctSchema as, ResultSet rs, String trxName) + { + super (as, MID_PPO.class, rs, null, trxName); + } + + @Override + protected String loadDocumentDetails() { + return null; + } + + @Override + public BigDecimal getBalance() { + return BigDecimal.ZERO; + } + + @Override + public ArrayList createFacts(MAcctSchema as) { + ArrayList facts = new ArrayList(); + return facts; + } +} \ No newline at end of file diff --git a/andromeida.midsuit.project/src/andromedia/midsuit/factory/MID_DocFactory.java b/andromeida.midsuit.project/src/andromedia/midsuit/factory/MID_DocFactory.java index a8ef665..613f730 100644 --- a/andromeida.midsuit.project/src/andromedia/midsuit/factory/MID_DocFactory.java +++ b/andromeida.midsuit.project/src/andromedia/midsuit/factory/MID_DocFactory.java @@ -13,8 +13,10 @@ import org.compiere.util.CLogger; import org.compiere.util.DB; import org.compiere.util.Env; +import andromedia.midsuit.doc.MID_DocMRPPPO; import andromedia.midsuit.doc.MID_DocMidRequsiition; import andromedia.midsuit.model.MID_MRequisitionTrx; +import andromedia.midsuit.model.MID_PPO; public class MID_DocFactory implements IDocFactory{ @@ -52,6 +54,8 @@ public class MID_DocFactory implements IDocFactory{ String tableName = MTable.getTableName(Env.getCtx(), AD_Table_ID); if(tableName.equals(MID_MRequisitionTrx.Table_Name)) return new MID_DocMidRequsiition(as,rs,trxName); + if(tableName.equals(MID_PPO.Table_Name)) + return new MID_DocMRPPPO(as, rs, trxName); return null; } diff --git a/andromeida.midsuit.project/src/andromedia/midsuit/model/I_ps_ppo.java b/andromeida.midsuit.project/src/andromedia/midsuit/model/I_ps_ppo.java new file mode 100644 index 0000000..b50116e --- /dev/null +++ b/andromeida.midsuit.project/src/andromedia/midsuit/model/I_ps_ppo.java @@ -0,0 +1,421 @@ +/****************************************************************************** + * Product: iDempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. * + * This program is free software, you can redistribute it and/or modify it * + * under the terms version 2 of the GNU General Public License as published * + * by the Free Software Foundation. This program is distributed in the hope * + * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied * + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * + * See the GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along * + * with this program, if not, write to the Free Software Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * + * For the text or an alternative of this public license, you may reach us * + * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * + * or via info@compiere.org or http://www.compiere.org/license.html * + *****************************************************************************/ +package andromedia.midsuit.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.model.*; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for ps_ppo + * @author iDempiere (generated) + * @version Release 4.1 + */ +@SuppressWarnings("all") +public interface I_ps_ppo +{ + + /** TableName=ps_ppo */ + public static final String Table_Name = "ps_ppo"; + + /** AD_Table_ID=1000003 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(3); + + /** Load Meta Data */ + + /** Column name AD_Client_ID */ + public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; + + /** Get Client. + * Client/Tenant for this installation. + */ + public int getAD_Client_ID(); + + /** Column name AD_Org_ID */ + public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; + + /** Set Organization. + * Organizational entity within client + */ + public void setAD_Org_ID (int AD_Org_ID); + + /** Get Organization. + * Organizational entity within client + */ + public int getAD_Org_ID(); + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException; + + /** Column name C_DocTypeTarget_ID */ + public static final String COLUMNNAME_C_DocTypeTarget_ID = "C_DocTypeTarget_ID"; + + /** Set Target Document Type. + * Target document type for conversing documents + */ + public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID); + + /** Get Target Document Type. + * Target document type for conversing documents + */ + public int getC_DocTypeTarget_ID(); + + public org.compiere.model.I_C_DocType getC_DocTypeTarget() throws RuntimeException; + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public org.compiere.model.I_C_UOM getC_UOM() throws RuntimeException; + + /** Column name Created */ + public static final String COLUMNNAME_Created = "Created"; + + /** Get Created. + * Date this record was created + */ + public Timestamp getCreated(); + + /** Column name CreatedBy */ + public static final String COLUMNNAME_CreatedBy = "CreatedBy"; + + /** Get Created By. + * User who created this records + */ + public int getCreatedBy(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateFinish */ + public static final String COLUMNNAME_DateFinish = "DateFinish"; + + /** Set Finish Date. + * Finish or (planned) completion date + */ + public void setDateFinish (Timestamp DateFinish); + + /** Get Finish Date. + * Finish or (planned) completion date + */ + public Timestamp getDateFinish(); + + /** Column name DateOrdered */ + public static final String COLUMNNAME_DateOrdered = "DateOrdered"; + + /** Set Date Ordered. + * Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered); + + /** Get Date Ordered. + * Date of Order + */ + public Timestamp getDateOrdered(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name IsActive */ + public static final String COLUMNNAME_IsActive = "IsActive"; + + /** Set Active. + * The record is active in the system + */ + public void setIsActive (boolean IsActive); + + /** Get Active. + * The record is active in the system + */ + public boolean isActive(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name IsPrinted */ + public static final String COLUMNNAME_IsPrinted = "IsPrinted"; + + /** Set Printed. + * Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted); + + /** Get Printed. + * Indicates if this document / line is printed + */ + public boolean isPrinted(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + public org.compiere.model.I_M_Product getM_Product() throws RuntimeException; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public org.compiere.model.I_M_Warehouse getM_Warehouse() throws RuntimeException; + + /** Column name Planner_ID */ + public static final String COLUMNNAME_Planner_ID = "Planner_ID"; + + /** Set Planner */ + public void setPlanner_ID (int Planner_ID); + + /** Get Planner */ + public int getPlanner_ID(); + + public org.compiere.model.I_AD_User getPlanner() throws RuntimeException; + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name PP_Product_BOM_ID */ + public static final String COLUMNNAME_PP_Product_BOM_ID = "PP_Product_BOM_ID"; + + /** Set BOM & Formula. + * BOM & Formula + */ + public void setPP_Product_BOM_ID (int PP_Product_BOM_ID); + + /** Get BOM & Formula. + * BOM & Formula + */ + public int getPP_Product_BOM_ID(); + + public org.eevolution.model.I_PP_Product_BOM getPP_Product_BOM() throws RuntimeException; + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name ProcessedOn */ + public static final String COLUMNNAME_ProcessedOn = "ProcessedOn"; + + /** Set Processed On. + * The date+time (expressed in decimal format) when the document has been processed + */ + public void setProcessedOn (BigDecimal ProcessedOn); + + /** Get Processed On. + * The date+time (expressed in decimal format) when the document has been processed + */ + public BigDecimal getProcessedOn(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ps_ppo_ID */ + public static final String COLUMNNAME_ps_ppo_ID = "ps_ppo_ID"; + + /** Set Petrosida PPO */ + public void setps_ppo_ID (int ps_ppo_ID); + + /** Get Petrosida PPO */ + public int getps_ppo_ID(); + + /** Column name ps_ppo_UU */ + public static final String COLUMNNAME_ps_ppo_UU = "ps_ppo_UU"; + + /** Set ps_ppo_UU */ + public void setps_ppo_UU (String ps_ppo_UU); + + /** Get ps_ppo_UU */ + public String getps_ppo_UU(); + + /** Column name QtyOrdered */ + public static final String COLUMNNAME_QtyOrdered = "QtyOrdered"; + + /** Set Ordered Quantity. + * Ordered Quantity + */ + public void setQtyOrdered (BigDecimal QtyOrdered); + + /** Get Ordered Quantity. + * Ordered Quantity + */ + public BigDecimal getQtyOrdered(); + + /** Column name Updated */ + public static final String COLUMNNAME_Updated = "Updated"; + + /** Get Updated. + * Date this record was updated + */ + public Timestamp getUpdated(); + + /** Column name UpdatedBy */ + public static final String COLUMNNAME_UpdatedBy = "UpdatedBy"; + + /** Get Updated By. + * User who updated this records + */ + public int getUpdatedBy(); +} diff --git a/andromeida.midsuit.project/src/andromedia/midsuit/model/MID_PPO.java b/andromeida.midsuit.project/src/andromedia/midsuit/model/MID_PPO.java new file mode 100644 index 0000000..5bed3be --- /dev/null +++ b/andromeida.midsuit.project/src/andromedia/midsuit/model/MID_PPO.java @@ -0,0 +1,128 @@ +package andromedia.midsuit.model; + +import java.io.File; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.util.Properties; + +import org.compiere.process.DocAction; +import org.compiere.process.DocumentEngine; + +public class MID_PPO extends X_ps_ppo implements DocAction{ + + public MID_PPO(Properties ctx, ResultSet rs, String trxName) { + super(ctx, rs, trxName); + // TODO Auto-generated constructor stub + } + + public MID_PPO(Properties ctx, int ps_ppo_ID, String trxName) { + super(ctx, ps_ppo_ID, trxName); + // TODO Auto-generated constructor stub + } + + /** + * + */ + private static final long serialVersionUID = -8492664206425966288L; + + + @Override + public boolean processIt(String action) throws Exception { + log.warning("Processing Action=" + action + " - DocStatus=" + getDocStatus() + " - DocAction=" + getDocAction()); + DocumentEngine engine = new DocumentEngine(this, getDocStatus()); + return engine.processIt(action, getDocAction()); + } + + @Override + public boolean unlockIt() { + return true; + } + + @Override + public boolean invalidateIt() { + return true; + } + + @Override + public String prepareIt() { + setC_DocType_ID(getC_DocTypeTarget_ID()); + return DocAction.STATUS_InProgress; + } + + @Override + public boolean approveIt() { + return true; + } + + @Override + public boolean rejectIt() { + return true; + } + + @Override + public String completeIt() { + setProcessed(true); + return DocAction.STATUS_Completed; + } + + @Override + public boolean voidIt() { + return true; + } + + @Override + public boolean closeIt() { + return true; + } + + @Override + public boolean reverseCorrectIt() { + return true; + } + + @Override + public boolean reverseAccrualIt() { + return true; + } + + @Override + public boolean reActivateIt() { + return true; + } + + @Override + public String getSummary() { + return null; + } + + @Override + public String getDocumentInfo() { + return null; + } + + @Override + public File createPDF() { + return null; + } + + @Override + public String getProcessMsg() { + return null; + } + + @Override + public int getDoc_User_ID() { + return 0; + } + + @Override + public BigDecimal getApprovalAmt() { + return BigDecimal.ONE; + } + @Override + public int getC_Currency_ID() { + // TODO Auto-generated method stub + return 0; + } + +} diff --git a/andromeida.midsuit.project/src/andromedia/midsuit/model/X_ps_ppo.java b/andromeida.midsuit.project/src/andromedia/midsuit/model/X_ps_ppo.java new file mode 100644 index 0000000..9a0caeb --- /dev/null +++ b/andromeida.midsuit.project/src/andromedia/midsuit/model/X_ps_ppo.java @@ -0,0 +1,674 @@ +/****************************************************************************** + * Product: iDempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. * + * This program is free software, you can redistribute it and/or modify it * + * under the terms version 2 of the GNU General Public License as published * + * by the Free Software Foundation. This program is distributed in the hope * + * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied * + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * + * See the GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along * + * with this program, if not, write to the Free Software Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * + * For the text or an alternative of this public license, you may reach us * + * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * + * or via info@compiere.org or http://www.compiere.org/license.html * + *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ +package andromedia.midsuit.model; + +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import org.compiere.model.*; +import org.compiere.util.Env; + +/** Generated Model for ps_ppo + * @author iDempiere (generated) + * @version Release 4.1 - $Id$ */ +public class X_ps_ppo extends PO implements I_ps_ppo, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 20170505L; + + /** Standard Constructor */ + public X_ps_ppo (Properties ctx, int ps_ppo_ID, String trxName) + { + super (ctx, ps_ppo_ID, trxName); + /** if (ps_ppo_ID == 0) + { + setC_DocTypeTarget_ID (0); +// 50002 + setC_UOM_ID (0); + setDateAcct (new Timestamp( System.currentTimeMillis() )); +// @Date@ + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setIsApproved (false); + setIsPrinted (false); + setLine (0); + setM_Product_ID (0); + setM_Warehouse_ID (0); + setPP_Product_BOM_ID (0); + setProcessed (false); + setps_ppo_ID (0); + setQtyOrdered (Env.ZERO); + } */ + } + + /** Load Constructor */ + public X_ps_ppo (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName()); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_ps_ppo[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException + { + return (org.compiere.model.I_C_DocType)MTable.get(getCtx(), org.compiere.model.I_C_DocType.Table_Name) + .getPO(getC_DocType_ID(), get_TrxName()); } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public org.compiere.model.I_C_DocType getC_DocTypeTarget() throws RuntimeException + { + return (org.compiere.model.I_C_DocType)MTable.get(getCtx(), org.compiere.model.I_C_DocType.Table_Name) + .getPO(getC_DocTypeTarget_ID(), get_TrxName()); } + + /** Set Target Document Type. + @param C_DocTypeTarget_ID + Target document type for conversing documents + */ + public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID) + { + if (C_DocTypeTarget_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_DocTypeTarget_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_DocTypeTarget_ID, Integer.valueOf(C_DocTypeTarget_ID)); + } + + /** Get Target Document Type. + @return Target document type for conversing documents + */ + public int getC_DocTypeTarget_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeTarget_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public org.compiere.model.I_C_UOM getC_UOM() throws RuntimeException + { + return (org.compiere.model.I_C_UOM)MTable.get(getCtx(), org.compiere.model.I_C_UOM.Table_Name) + .getPO(getC_UOM_ID(), get_TrxName()); } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID < 1) + set_Value (COLUMNNAME_C_UOM_ID, null); + else + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + set_ValueNoCheck (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Finish Date. + @param DateFinish + Finish or (planned) completion date + */ + public void setDateFinish (Timestamp DateFinish) + { + set_ValueNoCheck (COLUMNNAME_DateFinish, DateFinish); + } + + /** Get Finish Date. + @return Finish or (planned) completion date + */ + public Timestamp getDateFinish () + { + return (Timestamp)get_Value(COLUMNNAME_DateFinish); + } + + /** Set Date Ordered. + @param DateOrdered + Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered) + { + set_ValueNoCheck (COLUMNNAME_DateOrdered, DateOrdered); + } + + /** Get Date Ordered. + @return Date of Order + */ + public Timestamp getDateOrdered () + { + return (Timestamp)get_Value(COLUMNNAME_DateOrdered); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** DocAction AD_Reference_ID=135 */ + public static final int DOCACTION_AD_Reference_ID=135; + /** Complete = CO */ + public static final String DOCACTION_Complete = "CO"; + /** Approve = AP */ + public static final String DOCACTION_Approve = "AP"; + /** Reject = RJ */ + public static final String DOCACTION_Reject = "RJ"; + /** Post = PO */ + public static final String DOCACTION_Post = "PO"; + /** Void = VO */ + public static final String DOCACTION_Void = "VO"; + /** Close = CL */ + public static final String DOCACTION_Close = "CL"; + /** Reverse - Correct = RC */ + public static final String DOCACTION_Reverse_Correct = "RC"; + /** Reverse - Accrual = RA */ + public static final String DOCACTION_Reverse_Accrual = "RA"; + /** Invalidate = IN */ + public static final String DOCACTION_Invalidate = "IN"; + /** Re-activate = RE */ + public static final String DOCACTION_Re_Activate = "RE"; + /** = -- */ + public static final String DOCACTION_None = "--"; + /** Prepare = PR */ + public static final String DOCACTION_Prepare = "PR"; + /** Unlock = XL */ + public static final String DOCACTION_Unlock = "XL"; + /** Wait Complete = WC */ + public static final String DOCACTION_WaitComplete = "WC"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { + + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } + + /** DocStatus AD_Reference_ID=131 */ + public static final int DOCSTATUS_AD_Reference_ID=131; + /** Drafted = DR */ + public static final String DOCSTATUS_Drafted = "DR"; + /** Completed = CO */ + public static final String DOCSTATUS_Completed = "CO"; + /** Approved = AP */ + public static final String DOCSTATUS_Approved = "AP"; + /** Not Approved = NA */ + public static final String DOCSTATUS_NotApproved = "NA"; + /** Voided = VO */ + public static final String DOCSTATUS_Voided = "VO"; + /** Invalid = IN */ + public static final String DOCSTATUS_Invalid = "IN"; + /** Reversed = RE */ + public static final String DOCSTATUS_Reversed = "RE"; + /** Closed = CL */ + public static final String DOCSTATUS_Closed = "CL"; + /** Unknown = ?? */ + public static final String DOCSTATUS_Unknown = "??"; + /** In Progress = IP */ + public static final String DOCSTATUS_InProgress = "IP"; + /** Waiting Payment = WP */ + public static final String DOCSTATUS_WaitingPayment = "WP"; + /** Waiting Confirmation = WC */ + public static final String DOCSTATUS_WaitingConfirmation = "WC"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { + + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_ValueNoCheck (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Printed. + @param IsPrinted + Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted) + { + set_ValueNoCheck (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); + } + + /** Get Printed. + @return Indicates if this document / line is printed + */ + public boolean isPrinted () + { + Object oo = get_Value(COLUMNNAME_IsPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_ValueNoCheck (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + public org.compiere.model.I_M_Product getM_Product() throws RuntimeException + { + return (org.compiere.model.I_M_Product)MTable.get(getCtx(), org.compiere.model.I_M_Product.Table_Name) + .getPO(getM_Product_ID(), get_TrxName()); } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public org.compiere.model.I_M_Warehouse getM_Warehouse() throws RuntimeException + { + return (org.compiere.model.I_M_Warehouse)MTable.get(getCtx(), org.compiere.model.I_M_Warehouse.Table_Name) + .getPO(getM_Warehouse_ID(), get_TrxName()); } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public org.compiere.model.I_AD_User getPlanner() throws RuntimeException + { + return (org.compiere.model.I_AD_User)MTable.get(getCtx(), org.compiere.model.I_AD_User.Table_Name) + .getPO(getPlanner_ID(), get_TrxName()); } + + /** Set Planner. + @param Planner_ID Planner */ + public void setPlanner_ID (int Planner_ID) + { + if (Planner_ID < 1) + set_Value (COLUMNNAME_Planner_ID, null); + else + set_Value (COLUMNNAME_Planner_ID, Integer.valueOf(Planner_ID)); + } + + /** Get Planner. + @return Planner */ + public int getPlanner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Planner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_ValueNoCheck (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public org.eevolution.model.I_PP_Product_BOM getPP_Product_BOM() throws RuntimeException + { + return (org.eevolution.model.I_PP_Product_BOM)MTable.get(getCtx(), org.eevolution.model.I_PP_Product_BOM.Table_Name) + .getPO(getPP_Product_BOM_ID(), get_TrxName()); } + + /** Set BOM & Formula. + @param PP_Product_BOM_ID + BOM & Formula + */ + public void setPP_Product_BOM_ID (int PP_Product_BOM_ID) + { + if (PP_Product_BOM_ID < 1) + set_Value (COLUMNNAME_PP_Product_BOM_ID, null); + else + set_Value (COLUMNNAME_PP_Product_BOM_ID, Integer.valueOf(PP_Product_BOM_ID)); + } + + /** Get BOM & Formula. + @return BOM & Formula + */ + public int getPP_Product_BOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PP_Product_BOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed On. + @param ProcessedOn + The date+time (expressed in decimal format) when the document has been processed + */ + public void setProcessedOn (BigDecimal ProcessedOn) + { + set_Value (COLUMNNAME_ProcessedOn, ProcessedOn); + } + + /** Get Processed On. + @return The date+time (expressed in decimal format) when the document has been processed + */ + public BigDecimal getProcessedOn () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ProcessedOn); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. + @return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Petrosida PPO. + @param ps_ppo_ID Petrosida PPO */ + public void setps_ppo_ID (int ps_ppo_ID) + { + if (ps_ppo_ID < 1) + set_ValueNoCheck (COLUMNNAME_ps_ppo_ID, null); + else + set_ValueNoCheck (COLUMNNAME_ps_ppo_ID, Integer.valueOf(ps_ppo_ID)); + } + + /** Get Petrosida PPO. + @return Petrosida PPO */ + public int getps_ppo_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ps_ppo_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set ps_ppo_UU. + @param ps_ppo_UU ps_ppo_UU */ + public void setps_ppo_UU (String ps_ppo_UU) + { + set_ValueNoCheck (COLUMNNAME_ps_ppo_UU, ps_ppo_UU); + } + + /** Get ps_ppo_UU. + @return ps_ppo_UU */ + public String getps_ppo_UU () + { + return (String)get_Value(COLUMNNAME_ps_ppo_UU); + } + + /** Set Ordered Quantity. + @param QtyOrdered + Ordered Quantity + */ + public void setQtyOrdered (BigDecimal QtyOrdered) + { + set_ValueNoCheck (COLUMNNAME_QtyOrdered, QtyOrdered); + } + + /** Get Ordered Quantity. + @return Ordered Quantity + */ + public BigDecimal getQtyOrdered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyOrdered); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file