diff --git a/posterita/.classpath b/posterita/.classpath
index 7f70b29313..d098e20231 100644
--- a/posterita/.classpath
+++ b/posterita/.classpath
@@ -30,5 +30,5 @@
-
+
diff --git a/posterita/posterita/src/main/org/compiere/model/I_AD_OrgInfo.java b/posterita/posterita/src/main/org/compiere/model/I_AD_OrgInfo.java
deleted file mode 100644
index 633eccd9cd..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/I_AD_OrgInfo.java
+++ /dev/null
@@ -1,203 +0,0 @@
-/**********************************************************************
- * This file is part of Adempiere ERP Bazaar *
- * http://www.adempiere.org *
- * *
- * Copyright (C) Trifon Trifonov. *
- * Copyright (C) Contributors *
- * *
- * This program is free software;
- you can redistribute it and/or *
- * modify it under the terms of the GNU General Public License *
- * as published by the Free Software Foundation;
- either version 2 *
- * of the License, or (at your option) any later version. *
- * *
- * 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., 51 Franklin Street, Fifth Floor, Boston, *
- * MA 02110-1301, USA. *
- * *
- * Contributors: *
- * - Trifon Trifonov (trifonnt@users.sourceforge.net) *
- * *
- * Sponsors: *
- * - Company (http://www.site.com) *
- **********************************************************************/
-package org.compiere.model;
-
-import java.math.BigDecimal;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Interface for AD_OrgInfo
- * @author Trifon Trifonov (generated)
- * @version Release 3.4.0s
- */
-public interface I_AD_OrgInfo
-{
-
- /** TableName=AD_OrgInfo */
- public static final String Table_Name = "AD_OrgInfo";
-
- /** AD_Table_ID=228 */
- public static final int Table_ID = MTable.getTable_ID(Table_Name);
-
- KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
-
- /** AccessLevel = 7 - System - Client - Org
- */
- BigDecimal accessLevel = BigDecimal.valueOf(7);
-
- /** Load Meta Data */
-
- /** Column name AD_OrgType_ID */
- public static final String COLUMNNAME_AD_OrgType_ID = "AD_OrgType_ID";
-
- /** Set Organization Type.
- * Organization Type allows you to categorize your organizations
- */
- public void setAD_OrgType_ID (int AD_OrgType_ID);
-
- /** Get Organization Type.
- * Organization Type allows you to categorize your organizations
- */
- public int getAD_OrgType_ID();
-
- public I_AD_OrgType getAD_OrgType() throws Exception;
-
- /** Column name C_Location_ID */
- public static final String COLUMNNAME_C_Location_ID = "C_Location_ID";
-
- /** Set Address.
- * Location or Address
- */
- public void setC_Location_ID (int C_Location_ID);
-
- /** Get Address.
- * Location or Address
- */
- public int getC_Location_ID();
-
- /** Column name DUNS */
- public static final String COLUMNNAME_DUNS = "DUNS";
-
- /** Set D-U-N-S.
- * Dun & Bradstreet Number
- */
- public void setDUNS (String DUNS);
-
- /** Get D-U-N-S.
- * Dun & Bradstreet Number
- */
- public String getDUNS();
-
- /** 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 I_M_Warehouse getM_Warehouse() throws Exception;
-
- /** Column name PA_Goal_ID */
- public static final String COLUMNNAME_PA_Goal_ID = "PA_Goal_ID";
-
- /** Set Goal.
- * Performance Goal
- */
- public void setPA_Goal_ID (int PA_Goal_ID);
-
- /** Get Goal.
- * Performance Goal
- */
- public int getPA_Goal_ID();
-
- public I_PA_Goal getPA_Goal() throws Exception;
-
- /** Column name Parent_Org_ID */
- public static final String COLUMNNAME_Parent_Org_ID = "Parent_Org_ID";
-
- /** Set Parent Organization.
- * Parent (superior) Organization
- */
- public void setParent_Org_ID (int Parent_Org_ID);
-
- /** Get Parent Organization.
- * Parent (superior) Organization
- */
- public int getParent_Org_ID();
-
- /** Column name ReceiptFooterMsg */
- public static final String COLUMNNAME_ReceiptFooterMsg = "ReceiptFooterMsg";
-
- /** Set Receipt Footer Msg.
- * This message will be displayed at the bottom of a receipt when doing a sales or purchase
- */
- public void setReceiptFooterMsg (String ReceiptFooterMsg);
-
- /** Get Receipt Footer Msg.
- * This message will be displayed at the bottom of a receipt when doing a sales or purchase
- */
- public String getReceiptFooterMsg();
-
- /** Column name Supervisor_ID */
- public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID";
-
- /** Set Supervisor.
- * Supervisor for this user/organization - used for escalation and approval
- */
- public void setSupervisor_ID (int Supervisor_ID);
-
- /** Get Supervisor.
- * Supervisor for this user/organization - used for escalation and approval
- */
- public int getSupervisor_ID();
-
- /** Column name TaxID */
- public static final String COLUMNNAME_TaxID = "TaxID";
-
- /** Set Tax ID.
- * Tax Identification
- */
- public void setTaxID (String TaxID);
-
- /** Get Tax ID.
- * Tax Identification
- */
- public String getTaxID();
-
- /** Column name TransferBank_ID */
- public static final String COLUMNNAME_TransferBank_ID = "TransferBank_ID";
-
- /** Set Bank for transfers.
- * Bank account depending on currency will be used from this bank for doing transfers
- */
- public void setTransferBank_ID (int TransferBank_ID);
-
- /** Get Bank for transfers.
- * Bank account depending on currency will be used from this bank for doing transfers
- */
- public int getTransferBank_ID();
-
- /** Column name TransferCashBook_ID */
- public static final String COLUMNNAME_TransferCashBook_ID = "TransferCashBook_ID";
-
- /** Set CashBook for transfers */
- public void setTransferCashBook_ID (int TransferCashBook_ID);
-
- /** Get CashBook for transfers */
- public int getTransferCashBook_ID();
-}
diff --git a/posterita/posterita/src/main/org/compiere/model/I_AD_Role.java b/posterita/posterita/src/main/org/compiere/model/I_AD_Role.java
deleted file mode 100644
index 841342136f..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/I_AD_Role.java
+++ /dev/null
@@ -1,498 +0,0 @@
-/**********************************************************************
- * This file is part of Adempiere ERP Bazaar *
- * http://www.adempiere.org *
- * *
- * Copyright (C) Trifon Trifonov. *
- * Copyright (C) Contributors *
- * *
- * This program is free software;
- you can redistribute it and/or *
- * modify it under the terms of the GNU General Public License *
- * as published by the Free Software Foundation;
- either version 2 *
- * of the License, or (at your option) any later version. *
- * *
- * 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., 51 Franklin Street, Fifth Floor, Boston, *
- * MA 02110-1301, USA. *
- * *
- * Contributors: *
- * - Trifon Trifonov (trifonnt@users.sourceforge.net) *
- * *
- * Sponsors: *
- * - Company (http://www.site.com) *
- **********************************************************************/
-package org.compiere.model;
-
-import java.math.BigDecimal;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Interface for AD_Role
- * @author Trifon Trifonov (generated)
- * @version Release 3.4.0s
- */
-public interface I_AD_Role
-{
-
- /** TableName=AD_Role */
- public static final String Table_Name = "AD_Role";
-
- /** AD_Table_ID=156 */
- public static final int Table_ID = MTable.getTable_ID(Table_Name);
-
- KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
-
- /** AccessLevel = 6 - System - Client
- */
- BigDecimal accessLevel = BigDecimal.valueOf(6);
-
- /** Load Meta Data */
-
- /** Column name AD_Role_ID */
- public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID";
-
- /** Set Role.
- * Responsibility Role
- */
- public void setAD_Role_ID (int AD_Role_ID);
-
- /** Get Role.
- * Responsibility Role
- */
- public int getAD_Role_ID();
-
- /** Column name AD_Tree_Menu_ID */
- public static final String COLUMNNAME_AD_Tree_Menu_ID = "AD_Tree_Menu_ID";
-
- /** Set Menu Tree.
- * Tree of the menu
- */
- public void setAD_Tree_Menu_ID (int AD_Tree_Menu_ID);
-
- /** Get Menu Tree.
- * Tree of the menu
- */
- public int getAD_Tree_Menu_ID();
-
- /** Column name AD_Tree_Org_ID */
- public static final String COLUMNNAME_AD_Tree_Org_ID = "AD_Tree_Org_ID";
-
- /** Set Organization Tree.
- * Tree to determine organizational hierarchy
- */
- public void setAD_Tree_Org_ID (int AD_Tree_Org_ID);
-
- /** Get Organization Tree.
- * Tree to determine organizational hierarchy
- */
- public int getAD_Tree_Org_ID();
-
- /** Column name Allow_Info_Account */
- public static final String COLUMNNAME_Allow_Info_Account = "Allow_Info_Account";
-
- /** Set Allow Info Account */
- public void setAllow_Info_Account (boolean Allow_Info_Account);
-
- /** Get Allow Info Account */
- public boolean isAllow_Info_Account();
-
- /** Column name Allow_Info_Asset */
- public static final String COLUMNNAME_Allow_Info_Asset = "Allow_Info_Asset";
-
- /** Set Allow Info Asset */
- public void setAllow_Info_Asset (boolean Allow_Info_Asset);
-
- /** Get Allow Info Asset */
- public boolean isAllow_Info_Asset();
-
- /** Column name Allow_Info_BPartner */
- public static final String COLUMNNAME_Allow_Info_BPartner = "Allow_Info_BPartner";
-
- /** Set Allow Info BPartner */
- public void setAllow_Info_BPartner (boolean Allow_Info_BPartner);
-
- /** Get Allow Info BPartner */
- public boolean isAllow_Info_BPartner();
-
- /** Column name Allow_Info_CashJournal */
- public static final String COLUMNNAME_Allow_Info_CashJournal = "Allow_Info_CashJournal";
-
- /** Set Allow Info CashJournal */
- public void setAllow_Info_CashJournal (boolean Allow_Info_CashJournal);
-
- /** Get Allow Info CashJournal */
- public boolean isAllow_Info_CashJournal();
-
- /** Column name Allow_Info_InOut */
- public static final String COLUMNNAME_Allow_Info_InOut = "Allow_Info_InOut";
-
- /** Set Allow Info InOut */
- public void setAllow_Info_InOut (boolean Allow_Info_InOut);
-
- /** Get Allow Info InOut */
- public boolean isAllow_Info_InOut();
-
- /** Column name Allow_Info_Invoice */
- public static final String COLUMNNAME_Allow_Info_Invoice = "Allow_Info_Invoice";
-
- /** Set Allow Info Invoice */
- public void setAllow_Info_Invoice (boolean Allow_Info_Invoice);
-
- /** Get Allow Info Invoice */
- public boolean isAllow_Info_Invoice();
-
- /** Column name Allow_Info_Order */
- public static final String COLUMNNAME_Allow_Info_Order = "Allow_Info_Order";
-
- /** Set Allow Info Order */
- public void setAllow_Info_Order (boolean Allow_Info_Order);
-
- /** Get Allow Info Order */
- public boolean isAllow_Info_Order();
-
- /** Column name Allow_Info_Payment */
- public static final String COLUMNNAME_Allow_Info_Payment = "Allow_Info_Payment";
-
- /** Set Allow Info Payment */
- public void setAllow_Info_Payment (boolean Allow_Info_Payment);
-
- /** Get Allow Info Payment */
- public boolean isAllow_Info_Payment();
-
- /** Column name Allow_Info_Product */
- public static final String COLUMNNAME_Allow_Info_Product = "Allow_Info_Product";
-
- /** Set Allow Info Product */
- public void setAllow_Info_Product (boolean Allow_Info_Product);
-
- /** Get Allow Info Product */
- public boolean isAllow_Info_Product();
-
- /** Column name Allow_Info_Resource */
- public static final String COLUMNNAME_Allow_Info_Resource = "Allow_Info_Resource";
-
- /** Set Allow Info Resource */
- public void setAllow_Info_Resource (boolean Allow_Info_Resource);
-
- /** Get Allow Info Resource */
- public boolean isAllow_Info_Resource();
-
- /** Column name Allow_Info_Schedule */
- public static final String COLUMNNAME_Allow_Info_Schedule = "Allow_Info_Schedule";
-
- /** Set Allow Info Schedule */
- public void setAllow_Info_Schedule (boolean Allow_Info_Schedule);
-
- /** Get Allow Info Schedule */
- public boolean isAllow_Info_Schedule();
-
- /** Column name AmtApproval */
- public static final String COLUMNNAME_AmtApproval = "AmtApproval";
-
- /** Set Approval Amount.
- * The approval amount limit for this role
- */
- public void setAmtApproval (BigDecimal AmtApproval);
-
- /** Get Approval Amount.
- * The approval amount limit for this role
- */
- public BigDecimal getAmtApproval();
-
- /** Column name C_Currency_ID */
- public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID";
-
- /** Set Currency.
- * The Currency for this record
- */
- public void setC_Currency_ID (int C_Currency_ID);
-
- /** Get Currency.
- * The Currency for this record
- */
- public int getC_Currency_ID();
-
- public I_C_Currency getC_Currency() throws Exception;
-
- /** Column name ConfirmQueryRecords */
- public static final String COLUMNNAME_ConfirmQueryRecords = "ConfirmQueryRecords";
-
- /** Set Confirm Query Records.
- * Require Confirmation if more records will be returned by the query (If not defined 500)
- */
- public void setConfirmQueryRecords (int ConfirmQueryRecords);
-
- /** Get Confirm Query Records.
- * Require Confirmation if more records will be returned by the query (If not defined 500)
- */
- public int getConfirmQueryRecords();
-
- /** Column name ConnectionProfile */
- public static final String COLUMNNAME_ConnectionProfile = "ConnectionProfile";
-
- /** Set Connection Profile.
- * How a Java Client connects to the server(s)
- */
- public void setConnectionProfile (String ConnectionProfile);
-
- /** Get Connection Profile.
- * How a Java Client connects to the server(s)
- */
- public String getConnectionProfile();
-
- /** 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 IsAccessAllOrgs */
- public static final String COLUMNNAME_IsAccessAllOrgs = "IsAccessAllOrgs";
-
- /** Set Access all Orgs.
- * Access all Organizations (no org access control) of the client
- */
- public void setIsAccessAllOrgs (boolean IsAccessAllOrgs);
-
- /** Get Access all Orgs.
- * Access all Organizations (no org access control) of the client
- */
- public boolean isAccessAllOrgs();
-
- /** Column name IsCanApproveOwnDoc */
- public static final String COLUMNNAME_IsCanApproveOwnDoc = "IsCanApproveOwnDoc";
-
- /** Set Approve own Documents.
- * Users with this role can approve their own documents
- */
- public void setIsCanApproveOwnDoc (boolean IsCanApproveOwnDoc);
-
- /** Get Approve own Documents.
- * Users with this role can approve their own documents
- */
- public boolean isCanApproveOwnDoc();
-
- /** Column name IsCanExport */
- public static final String COLUMNNAME_IsCanExport = "IsCanExport";
-
- /** Set Can Export.
- * Users with this role can export data
- */
- public void setIsCanExport (boolean IsCanExport);
-
- /** Get Can Export.
- * Users with this role can export data
- */
- public boolean isCanExport();
-
- /** Column name IsCanReport */
- public static final String COLUMNNAME_IsCanReport = "IsCanReport";
-
- /** Set Can Report.
- * Users with this role can create reports
- */
- public void setIsCanReport (boolean IsCanReport);
-
- /** Get Can Report.
- * Users with this role can create reports
- */
- public boolean isCanReport();
-
- /** Column name IsChangeLog */
- public static final String COLUMNNAME_IsChangeLog = "IsChangeLog";
-
- /** Set Maintain Change Log.
- * Maintain a log of changes
- */
- public void setIsChangeLog (boolean IsChangeLog);
-
- /** Get Maintain Change Log.
- * Maintain a log of changes
- */
- public boolean isChangeLog();
-
- /** Column name IsDiscountAllowedOnTotal */
- public static final String COLUMNNAME_IsDiscountAllowedOnTotal = "IsDiscountAllowedOnTotal";
-
- /** Set IsDiscountAllowedOnTotal */
- public void setIsDiscountAllowedOnTotal (boolean IsDiscountAllowedOnTotal);
-
- /** Get IsDiscountAllowedOnTotal */
- public boolean isDiscountAllowedOnTotal();
-
- /** Column name IsDiscountUptoLimitPrice */
- public static final String COLUMNNAME_IsDiscountUptoLimitPrice = "IsDiscountUptoLimitPrice";
-
- /** Set IsDiscountUptoLimitPrice */
- public void setIsDiscountUptoLimitPrice (boolean IsDiscountUptoLimitPrice);
-
- /** Get IsDiscountUptoLimitPrice */
- public boolean isDiscountUptoLimitPrice();
-
- /** Column name IsManual */
- public static final String COLUMNNAME_IsManual = "IsManual";
-
- /** Set Manual.
- * This is a manual process
- */
- public void setIsManual (boolean IsManual);
-
- /** Get Manual.
- * This is a manual process
- */
- public boolean isManual();
-
- /** Column name IsPersonalAccess */
- public static final String COLUMNNAME_IsPersonalAccess = "IsPersonalAccess";
-
- /** Set Personal Access.
- * Allow access to all personal records
- */
- public void setIsPersonalAccess (boolean IsPersonalAccess);
-
- /** Get Personal Access.
- * Allow access to all personal records
- */
- public boolean isPersonalAccess();
-
- /** Column name IsPersonalLock */
- public static final String COLUMNNAME_IsPersonalLock = "IsPersonalLock";
-
- /** Set Personal Lock.
- * Allow users with role to lock access to personal records
- */
- public void setIsPersonalLock (boolean IsPersonalLock);
-
- /** Get Personal Lock.
- * Allow users with role to lock access to personal records
- */
- public boolean isPersonalLock();
-
- /** Column name IsShowAcct */
- public static final String COLUMNNAME_IsShowAcct = "IsShowAcct";
-
- /** Set Show Accounting.
- * Users with this role can see accounting information
- */
- public void setIsShowAcct (boolean IsShowAcct);
-
- /** Get Show Accounting.
- * Users with this role can see accounting information
- */
- public boolean isShowAcct();
-
- /** Column name IsUseUserOrgAccess */
- public static final String COLUMNNAME_IsUseUserOrgAccess = "IsUseUserOrgAccess";
-
- /** Set Use User Org Access.
- * Use Org Access defined by user instead of Role Org Access
- */
- public void setIsUseUserOrgAccess (boolean IsUseUserOrgAccess);
-
- /** Get Use User Org Access.
- * Use Org Access defined by user instead of Role Org Access
- */
- public boolean isUseUserOrgAccess();
-
- /** Column name MaxQueryRecords */
- public static final String COLUMNNAME_MaxQueryRecords = "MaxQueryRecords";
-
- /** Set Max Query Records.
- * If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records
- */
- public void setMaxQueryRecords (int MaxQueryRecords);
-
- /** Get Max Query Records.
- * If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records
- */
- public int getMaxQueryRecords();
-
- /** Column name Name */
- public static final String COLUMNNAME_Name = "Name";
-
- /** Set Name.
- * Alphanumeric identifier of the entity
- */
- public void setName (String Name);
-
- /** Get Name.
- * Alphanumeric identifier of the entity
- */
- public String getName();
-
- /** Column name OverwritePriceLimit */
- public static final String COLUMNNAME_OverwritePriceLimit = "OverwritePriceLimit";
-
- /** Set Overwrite Price Limit.
- * Overwrite Price Limit if the Price List enforces the Price Limit
- */
- public void setOverwritePriceLimit (boolean OverwritePriceLimit);
-
- /** Get Overwrite Price Limit.
- * Overwrite Price Limit if the Price List enforces the Price Limit
- */
- public boolean isOverwritePriceLimit();
-
- /** Column name PreferenceType */
- public static final String COLUMNNAME_PreferenceType = "PreferenceType";
-
- /** Set Preference Level.
- * Determines what preferences the user can set
- */
- public void setPreferenceType (String PreferenceType);
-
- /** Get Preference Level.
- * Determines what preferences the user can set
- */
- public String getPreferenceType();
-
- /** Column name Supervisor_ID */
- public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID";
-
- /** Set Supervisor.
- * Supervisor for this user/organization - used for escalation and approval
- */
- public void setSupervisor_ID (int Supervisor_ID);
-
- /** Get Supervisor.
- * Supervisor for this user/organization - used for escalation and approval
- */
- public int getSupervisor_ID();
-
- /** Column name UserDiscount */
- public static final String COLUMNNAME_UserDiscount = "UserDiscount";
-
- /** Set UserDiscount */
- public void setUserDiscount (BigDecimal UserDiscount);
-
- /** Get UserDiscount */
- public BigDecimal getUserDiscount();
-
- /** Column name UserLevel */
- public static final String COLUMNNAME_UserLevel = "UserLevel";
-
- /** Set User Level.
- * System Client Organization
- */
- public void setUserLevel (String UserLevel);
-
- /** Get User Level.
- * System Client Organization
- */
- public String getUserLevel();
-}
diff --git a/posterita/posterita/src/main/org/compiere/model/I_C_CashLine.java b/posterita/posterita/src/main/org/compiere/model/I_C_CashLine.java
deleted file mode 100644
index 0a92c2e874..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/I_C_CashLine.java
+++ /dev/null
@@ -1,265 +0,0 @@
-/**********************************************************************
- * This file is part of Adempiere ERP Bazaar *
- * http://www.adempiere.org *
- * *
- * Copyright (C) Trifon Trifonov. *
- * Copyright (C) Contributors *
- * *
- * This program is free software;
- you can redistribute it and/or *
- * modify it under the terms of the GNU General Public License *
- * as published by the Free Software Foundation;
- either version 2 *
- * of the License, or (at your option) any later version. *
- * *
- * 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., 51 Franklin Street, Fifth Floor, Boston, *
- * MA 02110-1301, USA. *
- * *
- * Contributors: *
- * - Trifon Trifonov (trifonnt@users.sourceforge.net) *
- * *
- * Sponsors: *
- * - Company (http://www.site.com) *
- **********************************************************************/
-package org.compiere.model;
-
-import java.math.BigDecimal;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Interface for C_CashLine
- * @author Trifon Trifonov (generated)
- * @version Release 3.4.0s
- */
-public interface I_C_CashLine
-{
-
- /** TableName=C_CashLine */
- public static final String Table_Name = "C_CashLine";
-
- /** AD_Table_ID=410 */
- 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 Amount */
- public static final String COLUMNNAME_Amount = "Amount";
-
- /** Set Amount.
- * Amount in a defined currency
- */
- public void setAmount (BigDecimal Amount);
-
- /** Get Amount.
- * Amount in a defined currency
- */
- public BigDecimal getAmount();
-
- /** Column name CashType */
- public static final String COLUMNNAME_CashType = "CashType";
-
- /** Set Cash Type.
- * Source of Cash
- */
- public void setCashType (String CashType);
-
- /** Get Cash Type.
- * Source of Cash
- */
- public String getCashType();
-
- /** Column name C_BankAccount_ID */
- public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID";
-
- /** Set Bank Account.
- * Account at the Bank
- */
- public void setC_BankAccount_ID (int C_BankAccount_ID);
-
- /** Get Bank Account.
- * Account at the Bank
- */
- public int getC_BankAccount_ID();
-
- public I_C_BankAccount getC_BankAccount() throws Exception;
-
- /** Column name C_Cash_ID */
- public static final String COLUMNNAME_C_Cash_ID = "C_Cash_ID";
-
- /** Set Cash Journal.
- * Cash Journal
- */
- public void setC_Cash_ID (int C_Cash_ID);
-
- /** Get Cash Journal.
- * Cash Journal
- */
- public int getC_Cash_ID();
-
- public I_C_Cash getC_Cash() throws Exception;
-
- /** Column name C_CashLine_ID */
- public static final String COLUMNNAME_C_CashLine_ID = "C_CashLine_ID";
-
- /** Set Cash Journal Line.
- * Cash Journal Line
- */
- public void setC_CashLine_ID (int C_CashLine_ID);
-
- /** Get Cash Journal Line.
- * Cash Journal Line
- */
- public int getC_CashLine_ID();
-
- /** Column name C_Charge_ID */
- public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID";
-
- /** Set Charge.
- * Additional document charges
- */
- public void setC_Charge_ID (int C_Charge_ID);
-
- /** Get Charge.
- * Additional document charges
- */
- public int getC_Charge_ID();
-
- public I_C_Charge getC_Charge() throws Exception;
-
- /** Column name C_Currency_ID */
- public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID";
-
- /** Set Currency.
- * The Currency for this record
- */
- public void setC_Currency_ID (int C_Currency_ID);
-
- /** Get Currency.
- * The Currency for this record
- */
- public int getC_Currency_ID();
-
- public I_C_Currency getC_Currency() throws Exception;
-
- /** Column name C_Invoice_ID */
- public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID";
-
- /** Set Invoice.
- * Invoice Identifier
- */
- public void setC_Invoice_ID (int C_Invoice_ID);
-
- /** Get Invoice.
- * Invoice Identifier
- */
- public int getC_Invoice_ID();
-
- public I_C_Invoice getC_Invoice() throws Exception;
-
- /** Column name C_Payment_ID */
- public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID";
-
- /** Set Payment.
- * Payment identifier
- */
- public void setC_Payment_ID (int C_Payment_ID);
-
- /** Get Payment.
- * Payment identifier
- */
- public int getC_Payment_ID();
-
- public I_C_Payment getC_Payment() throws Exception;
-
- /** 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 DiscountAmt */
- public static final String COLUMNNAME_DiscountAmt = "DiscountAmt";
-
- /** Set Discount Amount.
- * Calculated amount of discount
- */
- public void setDiscountAmt (BigDecimal DiscountAmt);
-
- /** Get Discount Amount.
- * Calculated amount of discount
- */
- public BigDecimal getDiscountAmt();
-
- /** Column name IsGenerated */
- public static final String COLUMNNAME_IsGenerated = "IsGenerated";
-
- /** Set Generated.
- * This Line is generated
- */
- public void setIsGenerated (boolean IsGenerated);
-
- /** Get Generated.
- * This Line is generated
- */
- public boolean isGenerated();
-
- /** 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 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 WriteOffAmt */
- public static final String COLUMNNAME_WriteOffAmt = "WriteOffAmt";
-
- /** Set Write-off Amount.
- * Amount to write-off
- */
- public void setWriteOffAmt (BigDecimal WriteOffAmt);
-
- /** Get Write-off Amount.
- * Amount to write-off
- */
- public BigDecimal getWriteOffAmt();
-}
diff --git a/posterita/posterita/src/main/org/compiere/model/I_C_Currency.java b/posterita/posterita/src/main/org/compiere/model/I_C_Currency.java
deleted file mode 100644
index aa605355cf..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/I_C_Currency.java
+++ /dev/null
@@ -1,202 +0,0 @@
-/**********************************************************************
- * This file is part of Adempiere ERP Bazaar *
- * http://www.adempiere.org *
- * *
- * Copyright (C) Trifon Trifonov. *
- * Copyright (C) Contributors *
- * *
- * This program is free software;
- you can redistribute it and/or *
- * modify it under the terms of the GNU General Public License *
- * as published by the Free Software Foundation;
- either version 2 *
- * of the License, or (at your option) any later version. *
- * *
- * 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., 51 Franklin Street, Fifth Floor, Boston, *
- * MA 02110-1301, USA. *
- * *
- * Contributors: *
- * - Trifon Trifonov (trifonnt@users.sourceforge.net) *
- * *
- * Sponsors: *
- * - Company (http://www.site.com) *
- **********************************************************************/
-package org.compiere.model;
-
-import java.math.BigDecimal;
-import java.sql.Timestamp;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Interface for C_Currency
- * @author Trifon Trifonov (generated)
- * @version Release 3.4.0s
- */
-public interface I_C_Currency
-{
-
- /** TableName=C_Currency */
- public static final String Table_Name = "C_Currency";
-
- /** AD_Table_ID=141 */
- public static final int Table_ID = MTable.getTable_ID(Table_Name);
-
- KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
-
- /** AccessLevel = 6 - System - Client
- */
- BigDecimal accessLevel = BigDecimal.valueOf(6);
-
- /** Load Meta Data */
-
- /** Column name C_Currency_ID */
- public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID";
-
- /** Set Currency.
- * The Currency for this record
- */
- public void setC_Currency_ID (int C_Currency_ID);
-
- /** Get Currency.
- * The Currency for this record
- */
- public int getC_Currency_ID();
-
- /** Column name CostingPrecision */
- public static final String COLUMNNAME_CostingPrecision = "CostingPrecision";
-
- /** Set Costing Precision.
- * Rounding used costing calculations
- */
- public void setCostingPrecision (int CostingPrecision);
-
- /** Get Costing Precision.
- * Rounding used costing calculations
- */
- public int getCostingPrecision();
-
- /** Column name CurSymbol */
- public static final String COLUMNNAME_CurSymbol = "CurSymbol";
-
- /** Set Symbol.
- * Symbol of the currency (opt used for printing only)
- */
- public void setCurSymbol (String CurSymbol);
-
- /** Get Symbol.
- * Symbol of the currency (opt used for printing only)
- */
- public String getCurSymbol();
-
- /** 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 EMUEntryDate */
- public static final String COLUMNNAME_EMUEntryDate = "EMUEntryDate";
-
- /** Set EMU Entry Date.
- * Date when the currency joined / will join the EMU
- */
- public void setEMUEntryDate (Timestamp EMUEntryDate);
-
- /** Get EMU Entry Date.
- * Date when the currency joined / will join the EMU
- */
- public Timestamp getEMUEntryDate();
-
- /** Column name EMURate */
- public static final String COLUMNNAME_EMURate = "EMURate";
-
- /** Set EMU Rate.
- * Official rate to the Euro
- */
- public void setEMURate (BigDecimal EMURate);
-
- /** Get EMU Rate.
- * Official rate to the Euro
- */
- public BigDecimal getEMURate();
-
- /** Column name IsEMUMember */
- public static final String COLUMNNAME_IsEMUMember = "IsEMUMember";
-
- /** Set EMU Member.
- * This currency is member if the European Monetary Union
- */
- public void setIsEMUMember (boolean IsEMUMember);
-
- /** Get EMU Member.
- * This currency is member if the European Monetary Union
- */
- public boolean isEMUMember();
-
- /** Column name IsEuro */
- public static final String COLUMNNAME_IsEuro = "IsEuro";
-
- /** Set The Euro Currency.
- * This currency is the Euro
- */
- public void setIsEuro (boolean IsEuro);
-
- /** Get The Euro Currency.
- * This currency is the Euro
- */
- public boolean isEuro();
-
- /** Column name ISO_Code */
- public static final String COLUMNNAME_ISO_Code = "ISO_Code";
-
- /** Set ISO Currency Code.
- * Three letter ISO 4217 Code of the Currency
- */
- public void setISO_Code (String ISO_Code);
-
- /** Get ISO Currency Code.
- * Three letter ISO 4217 Code of the Currency
- */
- public String getISO_Code();
-
- /** Column name RoundOffFactor */
- public static final String COLUMNNAME_RoundOffFactor = "RoundOffFactor";
-
- /** Set RoundOffFactor.
- * Used to Round Off Payment Amount
- */
- public void setRoundOffFactor (BigDecimal RoundOffFactor);
-
- /** Get RoundOffFactor.
- * Used to Round Off Payment Amount
- */
- public BigDecimal getRoundOffFactor();
-
- /** Column name StdPrecision */
- public static final String COLUMNNAME_StdPrecision = "StdPrecision";
-
- /** Set Standard Precision.
- * Rule for rounding calculated amounts
- */
- public void setStdPrecision (int StdPrecision);
-
- /** Get Standard Precision.
- * Rule for rounding calculated amounts
- */
- public int getStdPrecision();
-}
diff --git a/posterita/posterita/src/main/org/compiere/model/I_C_Invoice.java b/posterita/posterita/src/main/org/compiere/model/I_C_Invoice.java
deleted file mode 100644
index 4f5859dd59..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/I_C_Invoice.java
+++ /dev/null
@@ -1,803 +0,0 @@
-/**********************************************************************
- * This file is part of Adempiere ERP Bazaar *
- * http://www.adempiere.org *
- * *
- * Copyright (C) Trifon Trifonov. *
- * Copyright (C) Contributors *
- * *
- * This program is free software;
- you can redistribute it and/or *
- * modify it under the terms of the GNU General Public License *
- * as published by the Free Software Foundation;
- either version 2 *
- * of the License, or (at your option) any later version. *
- * *
- * 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., 51 Franklin Street, Fifth Floor, Boston, *
- * MA 02110-1301, USA. *
- * *
- * Contributors: *
- * - Trifon Trifonov (trifonnt@users.sourceforge.net) *
- * *
- * Sponsors: *
- * - Company (http://www.site.com) *
- **********************************************************************/
-package org.compiere.model;
-
-import java.math.BigDecimal;
-import java.sql.Timestamp;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Interface for C_Invoice
- * @author Trifon Trifonov (generated)
- * @version Release 3.4.0s
- */
-public interface I_C_Invoice
-{
-
- /** TableName=C_Invoice */
- public static final String Table_Name = "C_Invoice";
-
- /** AD_Table_ID=318 */
- public static final int Table_ID = MTable.getTable_ID(Table_Name);
-
- KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
-
- /** AccessLevel = 1 - Org
- */
- BigDecimal accessLevel = BigDecimal.valueOf(1);
-
- /** Load Meta Data */
-
- /** Column name AD_OrgTrx_ID */
- public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID";
-
- /** Set Trx Organization.
- * Performing or initiating organization
- */
- public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);
-
- /** Get Trx Organization.
- * Performing or initiating organization
- */
- public int getAD_OrgTrx_ID();
-
- /** Column name AD_User_ID */
- public static final String COLUMNNAME_AD_User_ID = "AD_User_ID";
-
- /** Set User/Contact.
- * User within the system - Internal or Business Partner Contact
- */
- public void setAD_User_ID (int AD_User_ID);
-
- /** Get User/Contact.
- * User within the system - Internal or Business Partner Contact
- */
- public int getAD_User_ID();
-
- public I_AD_User getAD_User() throws Exception;
-
- /** Column name C_Activity_ID */
- public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID";
-
- /** Set Activity.
- * Business Activity
- */
- public void setC_Activity_ID (int C_Activity_ID);
-
- /** Get Activity.
- * Business Activity
- */
- public int getC_Activity_ID();
-
- public I_C_Activity getC_Activity() throws Exception;
-
- /** Column name C_BPartner_ID */
- public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID";
-
- /** Set Business Partner .
- * Identifies a Business Partner
- */
- public void setC_BPartner_ID (int C_BPartner_ID);
-
- /** Get Business Partner .
- * Identifies a Business Partner
- */
- public int getC_BPartner_ID();
-
- public I_C_BPartner getC_BPartner() throws Exception;
-
- /** Column name C_BPartner_Location_ID */
- public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID";
-
- /** Set Partner Location.
- * Identifies the (ship to) address for this Business Partner
- */
- public void setC_BPartner_Location_ID (int C_BPartner_Location_ID);
-
- /** Get Partner Location.
- * Identifies the (ship to) address for this Business Partner
- */
- public int getC_BPartner_Location_ID();
-
- public I_C_BPartner_Location getC_BPartner_Location() throws Exception;
-
- /** Column name C_Campaign_ID */
- public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID";
-
- /** Set Campaign.
- * Marketing Campaign
- */
- public void setC_Campaign_ID (int C_Campaign_ID);
-
- /** Get Campaign.
- * Marketing Campaign
- */
- public int getC_Campaign_ID();
-
- public I_C_Campaign getC_Campaign() throws Exception;
-
- /** Column name C_CashLine_ID */
- public static final String COLUMNNAME_C_CashLine_ID = "C_CashLine_ID";
-
- /** Set Cash Journal Line.
- * Cash Journal Line
- */
- public void setC_CashLine_ID (int C_CashLine_ID);
-
- /** Get Cash Journal Line.
- * Cash Journal Line
- */
- public int getC_CashLine_ID();
-
- public I_C_CashLine getC_CashLine() throws Exception;
-
- /** Column name C_Charge_ID */
- public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID";
-
- /** Set Charge.
- * Additional document charges
- */
- public void setC_Charge_ID (int C_Charge_ID);
-
- /** Get Charge.
- * Additional document charges
- */
- public int getC_Charge_ID();
-
- /** Column name C_ConversionType_ID */
- public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID";
-
- /** Set Currency Type.
- * Currency Conversion Rate Type
- */
- public void setC_ConversionType_ID (int C_ConversionType_ID);
-
- /** Get Currency Type.
- * Currency Conversion Rate Type
- */
- public int getC_ConversionType_ID();
-
- public I_C_ConversionType getC_ConversionType() throws Exception;
-
- /** Column name C_Currency_ID */
- public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID";
-
- /** Set Currency.
- * The Currency for this record
- */
- public void setC_Currency_ID (int C_Currency_ID);
-
- /** Get Currency.
- * The Currency for this record
- */
- public int getC_Currency_ID();
-
- public I_C_Currency getC_Currency() throws Exception;
-
- /** 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 I_C_DocType getC_DocType() throws Exception;
-
- /** 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();
-
- /** Column name C_DunningLevel_ID */
- public static final String COLUMNNAME_C_DunningLevel_ID = "C_DunningLevel_ID";
-
- /** Set Dunning Level */
- public void setC_DunningLevel_ID (int C_DunningLevel_ID);
-
- /** Get Dunning Level */
- public int getC_DunningLevel_ID();
-
- public I_C_DunningLevel getC_DunningLevel() throws Exception;
-
- /** Column name ChargeAmt */
- public static final String COLUMNNAME_ChargeAmt = "ChargeAmt";
-
- /** Set Charge amount.
- * Charge Amount
- */
- public void setChargeAmt (BigDecimal ChargeAmt);
-
- /** Get Charge amount.
- * Charge Amount
- */
- public BigDecimal getChargeAmt();
-
- /** Column name C_Invoice_ID */
- public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID";
-
- /** Set Invoice.
- * Invoice Identifier
- */
- public void setC_Invoice_ID (int C_Invoice_ID);
-
- /** Get Invoice.
- * Invoice Identifier
- */
- public int getC_Invoice_ID();
-
- /** Column name CopyFrom */
- public static final String COLUMNNAME_CopyFrom = "CopyFrom";
-
- /** Set Copy From.
- * Copy From Record
- */
- public void setCopyFrom (String CopyFrom);
-
- /** Get Copy From.
- * Copy From Record
- */
- public String getCopyFrom();
-
- /** Column name C_Order_ID */
- public static final String COLUMNNAME_C_Order_ID = "C_Order_ID";
-
- /** Set Order.
- * Order
- */
- public void setC_Order_ID (int C_Order_ID);
-
- /** Get Order.
- * Order
- */
- public int getC_Order_ID();
-
- public I_C_Order getC_Order() throws Exception;
-
- /** Column name C_Payment_ID */
- public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID";
-
- /** Set Payment.
- * Payment identifier
- */
- public void setC_Payment_ID (int C_Payment_ID);
-
- /** Get Payment.
- * Payment identifier
- */
- public int getC_Payment_ID();
-
- public I_C_Payment getC_Payment() throws Exception;
-
- /** Column name C_PaymentTerm_ID */
- public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID";
-
- /** Set Payment Term.
- * The terms of Payment (timing, discount)
- */
- public void setC_PaymentTerm_ID (int C_PaymentTerm_ID);
-
- /** Get Payment Term.
- * The terms of Payment (timing, discount)
- */
- public int getC_PaymentTerm_ID();
-
- public I_C_PaymentTerm getC_PaymentTerm() throws Exception;
-
- /** Column name C_Project_ID */
- public static final String COLUMNNAME_C_Project_ID = "C_Project_ID";
-
- /** Set Project.
- * Financial Project
- */
- public void setC_Project_ID (int C_Project_ID);
-
- /** Get Project.
- * Financial Project
- */
- public int getC_Project_ID();
-
- public I_C_Project getC_Project() throws Exception;
-
- /** Column name CreateFrom */
- public static final String COLUMNNAME_CreateFrom = "CreateFrom";
-
- /** Set Create lines from.
- * Process which will generate a new document lines based on an existing document
- */
- public void setCreateFrom (String CreateFrom);
-
- /** Get Create lines from.
- * Process which will generate a new document lines based on an existing document
- */
- public String getCreateFrom();
-
- /** 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 DateInvoiced */
- public static final String COLUMNNAME_DateInvoiced = "DateInvoiced";
-
- /** Set Date Invoiced.
- * Date printed on Invoice
- */
- public void setDateInvoiced (Timestamp DateInvoiced);
-
- /** Get Date Invoiced.
- * Date printed on Invoice
- */
- public Timestamp getDateInvoiced();
-
- /** 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 DatePrinted */
- public static final String COLUMNNAME_DatePrinted = "DatePrinted";
-
- /** Set Date printed.
- * Date the document was printed.
- */
- public void setDatePrinted (Timestamp DatePrinted);
-
- /** Get Date printed.
- * Date the document was printed.
- */
- public Timestamp getDatePrinted();
-
- /** 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 DunningGrace */
- public static final String COLUMNNAME_DunningGrace = "DunningGrace";
-
- /** Set Dunning Grace */
- public void setDunningGrace (Timestamp DunningGrace);
-
- /** Get Dunning Grace */
- public Timestamp getDunningGrace();
-
- /** Column name GenerateTo */
- public static final String COLUMNNAME_GenerateTo = "GenerateTo";
-
- /** Set Generate To.
- * Generate To
- */
- public void setGenerateTo (String GenerateTo);
-
- /** Get Generate To.
- * Generate To
- */
- public String getGenerateTo();
-
- /** Column name GrandTotal */
- public static final String COLUMNNAME_GrandTotal = "GrandTotal";
-
- /** Set Grand Total.
- * Total amount of document
- */
- public void setGrandTotal (BigDecimal GrandTotal);
-
- /** Get Grand Total.
- * Total amount of document
- */
- public BigDecimal getGrandTotal();
-
- /** Column name InvoiceCollectionType */
- public static final String COLUMNNAME_InvoiceCollectionType = "InvoiceCollectionType";
-
- /** Set Collection Status.
- * Invoice Collection Status
- */
- public void setInvoiceCollectionType (String InvoiceCollectionType);
-
- /** Get Collection Status.
- * Invoice Collection Status
- */
- public String getInvoiceCollectionType();
-
- /** 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 IsDiscountPrinted */
- public static final String COLUMNNAME_IsDiscountPrinted = "IsDiscountPrinted";
-
- /** Set Discount Printed.
- * Print Discount on Invoice and Order
- */
- public void setIsDiscountPrinted (boolean IsDiscountPrinted);
-
- /** Get Discount Printed.
- * Print Discount on Invoice and Order
- */
- public boolean isDiscountPrinted();
-
- /** Column name IsInDispute */
- public static final String COLUMNNAME_IsInDispute = "IsInDispute";
-
- /** Set In Dispute.
- * Document is in dispute
- */
- public void setIsInDispute (boolean IsInDispute);
-
- /** Get In Dispute.
- * Document is in dispute
- */
- public boolean isInDispute();
-
- /** Column name IsPaid */
- public static final String COLUMNNAME_IsPaid = "IsPaid";
-
- /** Set Paid.
- * The document is paid
- */
- public void setIsPaid (boolean IsPaid);
-
- /** Get Paid.
- * The document is paid
- */
- public boolean isPaid();
-
- /** Column name IsPayScheduleValid */
- public static final String COLUMNNAME_IsPayScheduleValid = "IsPayScheduleValid";
-
- /** Set Pay Schedule valid.
- * Is the Payment Schedule is valid
- */
- public void setIsPayScheduleValid (boolean IsPayScheduleValid);
-
- /** Get Pay Schedule valid.
- * Is the Payment Schedule is valid
- */
- public boolean isPayScheduleValid();
-
- /** 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 IsSelfService */
- public static final String COLUMNNAME_IsSelfService = "IsSelfService";
-
- /** Set Self-Service.
- * This is a Self-Service entry or this entry can be changed via Self-Service
- */
- public void setIsSelfService (boolean IsSelfService);
-
- /** Get Self-Service.
- * This is a Self-Service entry or this entry can be changed via Self-Service
- */
- public boolean isSelfService();
-
- /** Column name IsSOTrx */
- public static final String COLUMNNAME_IsSOTrx = "IsSOTrx";
-
- /** Set Sales Transaction.
- * This is a Sales Transaction
- */
- public void setIsSOTrx (boolean IsSOTrx);
-
- /** Get Sales Transaction.
- * This is a Sales Transaction
- */
- public boolean isSOTrx();
-
- /** Column name IsTaxIncluded */
- public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded";
-
- /** Set Price includes Tax.
- * Tax is included in the price
- */
- public void setIsTaxIncluded (boolean IsTaxIncluded);
-
- /** Get Price includes Tax.
- * Tax is included in the price
- */
- public boolean isTaxIncluded();
-
- /** Column name IsTransferred */
- public static final String COLUMNNAME_IsTransferred = "IsTransferred";
-
- /** Set Transferred.
- * Transferred to General Ledger (i.e. accounted)
- */
- public void setIsTransferred (boolean IsTransferred);
-
- /** Get Transferred.
- * Transferred to General Ledger (i.e. accounted)
- */
- public boolean isTransferred();
-
- /** Column name M_PriceList_ID */
- public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID";
-
- /** Set Price List.
- * Unique identifier of a Price List
- */
- public void setM_PriceList_ID (int M_PriceList_ID);
-
- /** Get Price List.
- * Unique identifier of a Price List
- */
- public int getM_PriceList_ID();
-
- public I_M_PriceList getM_PriceList() throws Exception;
-
- /** Column name M_RMA_ID */
- public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID";
-
- /** Set RMA.
- * Return Material Authorization
- */
- public void setM_RMA_ID (int M_RMA_ID);
-
- /** Get RMA.
- * Return Material Authorization
- */
- public int getM_RMA_ID();
-
- public I_M_RMA getM_RMA() throws Exception;
-
- /** Column name PaymentRule */
- public static final String COLUMNNAME_PaymentRule = "PaymentRule";
-
- /** Set Payment Rule.
- * How you pay the invoice
- */
- public void setPaymentRule (String PaymentRule);
-
- /** Get Payment Rule.
- * How you pay the invoice
- */
- public String getPaymentRule();
-
- /** Column name POReference */
- public static final String COLUMNNAME_POReference = "POReference";
-
- /** Set Order Reference.
- * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner
- */
- public void setPOReference (String POReference);
-
- /** Get Order Reference.
- * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner
- */
- public String getPOReference();
-
- /** 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 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 Processing */
- public static final String COLUMNNAME_Processing = "Processing";
-
- /** Set Process Now */
- public void setProcessing (boolean Processing);
-
- /** Get Process Now */
- public boolean isProcessing();
-
- /** Column name Ref_Invoice_ID */
- public static final String COLUMNNAME_Ref_Invoice_ID = "Ref_Invoice_ID";
-
- /** Set Referenced Invoice */
- public void setRef_Invoice_ID (int Ref_Invoice_ID);
-
- /** Get Referenced Invoice */
- public int getRef_Invoice_ID();
-
- /** Column name SalesRep_ID */
- public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID";
-
- /** Set Sales Representative.
- * Sales Representative or Company Agent
- */
- public void setSalesRep_ID (int SalesRep_ID);
-
- /** Get Sales Representative.
- * Sales Representative or Company Agent
- */
- public int getSalesRep_ID();
-
- /** Column name SendEMail */
- public static final String COLUMNNAME_SendEMail = "SendEMail";
-
- /** Set Send EMail.
- * Enable sending Document EMail
- */
- public void setSendEMail (boolean SendEMail);
-
- /** Get Send EMail.
- * Enable sending Document EMail
- */
- public boolean isSendEMail();
-
- /** Column name TotalLines */
- public static final String COLUMNNAME_TotalLines = "TotalLines";
-
- /** Set Total Lines.
- * Total of all document lines
- */
- public void setTotalLines (BigDecimal TotalLines);
-
- /** Get Total Lines.
- * Total of all document lines
- */
- public BigDecimal getTotalLines();
-
- /** Column name User1_ID */
- public static final String COLUMNNAME_User1_ID = "User1_ID";
-
- /** Set User List 1.
- * User defined list element #1
- */
- public void setUser1_ID (int User1_ID);
-
- /** Get User List 1.
- * User defined list element #1
- */
- public int getUser1_ID();
-
- /** Column name User2_ID */
- public static final String COLUMNNAME_User2_ID = "User2_ID";
-
- /** Set User List 2.
- * User defined list element #2
- */
- public void setUser2_ID (int User2_ID);
-
- /** Get User List 2.
- * User defined list element #2
- */
- public int getUser2_ID();
-}
diff --git a/posterita/posterita/src/main/org/compiere/model/I_C_Order.java b/posterita/posterita/src/main/org/compiere/model/I_C_Order.java
deleted file mode 100644
index 35acc2e482..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/I_C_Order.java
+++ /dev/null
@@ -1,977 +0,0 @@
-/**********************************************************************
- * This file is part of Adempiere ERP Bazaar *
- * http://www.adempiere.org *
- * *
- * Copyright (C) Trifon Trifonov. *
- * Copyright (C) Contributors *
- * *
- * This program is free software;
- you can redistribute it and/or *
- * modify it under the terms of the GNU General Public License *
- * as published by the Free Software Foundation;
- either version 2 *
- * of the License, or (at your option) any later version. *
- * *
- * 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., 51 Franklin Street, Fifth Floor, Boston, *
- * MA 02110-1301, USA. *
- * *
- * Contributors: *
- * - Trifon Trifonov (trifonnt@users.sourceforge.net) *
- * *
- * Sponsors: *
- * - Company (http://www.site.com) *
- **********************************************************************/
-package org.compiere.model;
-
-import java.math.BigDecimal;
-import java.sql.Timestamp;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Interface for C_Order
- * @author Trifon Trifonov (generated)
- * @version Release 3.4.0s
- */
-public interface I_C_Order
-{
-
- /** TableName=C_Order */
- public static final String Table_Name = "C_Order";
-
- /** AD_Table_ID=259 */
- public static final int Table_ID = MTable.getTable_ID(Table_Name);
-
- KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
-
- /** AccessLevel = 1 - Org
- */
- BigDecimal accessLevel = BigDecimal.valueOf(1);
-
- /** Load Meta Data */
-
- /** Column name AD_OrgTrx_ID */
- public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID";
-
- /** Set Trx Organization.
- * Performing or initiating organization
- */
- public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);
-
- /** Get Trx Organization.
- * Performing or initiating organization
- */
- public int getAD_OrgTrx_ID();
-
- /** Column name AD_User_ID */
- public static final String COLUMNNAME_AD_User_ID = "AD_User_ID";
-
- /** Set User/Contact.
- * User within the system - Internal or Business Partner Contact
- */
- public void setAD_User_ID (int AD_User_ID);
-
- /** Get User/Contact.
- * User within the system - Internal or Business Partner Contact
- */
- public int getAD_User_ID();
-
- public I_AD_User getAD_User() throws Exception;
-
- /** Column name AmountRefunded */
- public static final String COLUMNNAME_AmountRefunded = "AmountRefunded";
-
- /** Set AmountRefunded */
- public void setAmountRefunded (BigDecimal AmountRefunded);
-
- /** Get AmountRefunded */
- public BigDecimal getAmountRefunded();
-
- /** Column name AmountTendered */
- public static final String COLUMNNAME_AmountTendered = "AmountTendered";
-
- /** Set AmountTendered */
- public void setAmountTendered (BigDecimal AmountTendered);
-
- /** Get AmountTendered */
- public BigDecimal getAmountTendered();
-
- /** Column name Bill_BPartner_ID */
- public static final String COLUMNNAME_Bill_BPartner_ID = "Bill_BPartner_ID";
-
- /** Set Invoice Partner.
- * Business Partner to be invoiced
- */
- public void setBill_BPartner_ID (int Bill_BPartner_ID);
-
- /** Get Invoice Partner.
- * Business Partner to be invoiced
- */
- public int getBill_BPartner_ID();
-
- /** Column name Bill_Location_ID */
- public static final String COLUMNNAME_Bill_Location_ID = "Bill_Location_ID";
-
- /** Set Invoice Location.
- * Business Partner Location for invoicing
- */
- public void setBill_Location_ID (int Bill_Location_ID);
-
- /** Get Invoice Location.
- * Business Partner Location for invoicing
- */
- public int getBill_Location_ID();
-
- /** Column name Bill_User_ID */
- public static final String COLUMNNAME_Bill_User_ID = "Bill_User_ID";
-
- /** Set Invoice Contact.
- * Business Partner Contact for invoicing
- */
- public void setBill_User_ID (int Bill_User_ID);
-
- /** Get Invoice Contact.
- * Business Partner Contact for invoicing
- */
- public int getBill_User_ID();
-
- /** Column name C_Activity_ID */
- public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID";
-
- /** Set Activity.
- * Business Activity
- */
- public void setC_Activity_ID (int C_Activity_ID);
-
- /** Get Activity.
- * Business Activity
- */
- public int getC_Activity_ID();
-
- public I_C_Activity getC_Activity() throws Exception;
-
- /** Column name C_BPartner_ID */
- public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID";
-
- /** Set Business Partner .
- * Identifies a Business Partner
- */
- public void setC_BPartner_ID (int C_BPartner_ID);
-
- /** Get Business Partner .
- * Identifies a Business Partner
- */
- public int getC_BPartner_ID();
-
- public I_C_BPartner getC_BPartner() throws Exception;
-
- /** Column name C_BPartner_Location_ID */
- public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID";
-
- /** Set Partner Location.
- * Identifies the (ship to) address for this Business Partner
- */
- public void setC_BPartner_Location_ID (int C_BPartner_Location_ID);
-
- /** Get Partner Location.
- * Identifies the (ship to) address for this Business Partner
- */
- public int getC_BPartner_Location_ID();
-
- public I_C_BPartner_Location getC_BPartner_Location() throws Exception;
-
- /** Column name C_Campaign_ID */
- public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID";
-
- /** Set Campaign.
- * Marketing Campaign
- */
- public void setC_Campaign_ID (int C_Campaign_ID);
-
- /** Get Campaign.
- * Marketing Campaign
- */
- public int getC_Campaign_ID();
-
- public I_C_Campaign getC_Campaign() throws Exception;
-
- /** Column name C_CashLine_ID */
- public static final String COLUMNNAME_C_CashLine_ID = "C_CashLine_ID";
-
- /** Set Cash Journal Line.
- * Cash Journal Line
- */
- public void setC_CashLine_ID (int C_CashLine_ID);
-
- /** Get Cash Journal Line.
- * Cash Journal Line
- */
- public int getC_CashLine_ID();
-
- public I_C_CashLine getC_CashLine() throws Exception;
-
- /** Column name C_Charge_ID */
- public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID";
-
- /** Set Charge.
- * Additional document charges
- */
- public void setC_Charge_ID (int C_Charge_ID);
-
- /** Get Charge.
- * Additional document charges
- */
- public int getC_Charge_ID();
-
- /** Column name C_ConversionType_ID */
- public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID";
-
- /** Set Currency Type.
- * Currency Conversion Rate Type
- */
- public void setC_ConversionType_ID (int C_ConversionType_ID);
-
- /** Get Currency Type.
- * Currency Conversion Rate Type
- */
- public int getC_ConversionType_ID();
-
- public I_C_ConversionType getC_ConversionType() throws Exception;
-
- /** Column name C_Currency_ID */
- public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID";
-
- /** Set Currency.
- * The Currency for this record
- */
- public void setC_Currency_ID (int C_Currency_ID);
-
- /** Get Currency.
- * The Currency for this record
- */
- public int getC_Currency_ID();
-
- public I_C_Currency getC_Currency() throws Exception;
-
- /** 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 I_C_DocType getC_DocType() throws Exception;
-
- /** 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();
-
- /** Column name ChargeAmt */
- public static final String COLUMNNAME_ChargeAmt = "ChargeAmt";
-
- /** Set Charge amount.
- * Charge Amount
- */
- public void setChargeAmt (BigDecimal ChargeAmt);
-
- /** Get Charge amount.
- * Charge Amount
- */
- public BigDecimal getChargeAmt();
-
- /** Column name CopyFrom */
- public static final String COLUMNNAME_CopyFrom = "CopyFrom";
-
- /** Set Copy From.
- * Copy From Record
- */
- public void setCopyFrom (String CopyFrom);
-
- /** Get Copy From.
- * Copy From Record
- */
- public String getCopyFrom();
-
- /** Column name C_Order_ID */
- public static final String COLUMNNAME_C_Order_ID = "C_Order_ID";
-
- /** Set Order.
- * Order
- */
- public void setC_Order_ID (int C_Order_ID);
-
- /** Get Order.
- * Order
- */
- public int getC_Order_ID();
-
- /** Column name C_Payment_ID */
- public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID";
-
- /** Set Payment.
- * Payment identifier
- */
- public void setC_Payment_ID (int C_Payment_ID);
-
- /** Get Payment.
- * Payment identifier
- */
- public int getC_Payment_ID();
-
- public I_C_Payment getC_Payment() throws Exception;
-
- /** Column name C_PaymentTerm_ID */
- public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID";
-
- /** Set Payment Term.
- * The terms of Payment (timing, discount)
- */
- public void setC_PaymentTerm_ID (int C_PaymentTerm_ID);
-
- /** Get Payment Term.
- * The terms of Payment (timing, discount)
- */
- public int getC_PaymentTerm_ID();
-
- public I_C_PaymentTerm getC_PaymentTerm() throws Exception;
-
- /** Column name C_POS_ID */
- public static final String COLUMNNAME_C_POS_ID = "C_POS_ID";
-
- /** Set POS Terminal.
- * Point of Sales Terminal
- */
- public void setC_POS_ID (int C_POS_ID);
-
- /** Get POS Terminal.
- * Point of Sales Terminal
- */
- public int getC_POS_ID();
-
- public I_C_POS getC_POS() throws Exception;
-
- /** Column name C_Project_ID */
- public static final String COLUMNNAME_C_Project_ID = "C_Project_ID";
-
- /** Set Project.
- * Financial Project
- */
- public void setC_Project_ID (int C_Project_ID);
-
- /** Get Project.
- * Financial Project
- */
- public int getC_Project_ID();
-
- public I_C_Project getC_Project() throws Exception;
-
- /** 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 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 DatePrinted */
- public static final String COLUMNNAME_DatePrinted = "DatePrinted";
-
- /** Set Date printed.
- * Date the document was printed.
- */
- public void setDatePrinted (Timestamp DatePrinted);
-
- /** Get Date printed.
- * Date the document was printed.
- */
- public Timestamp getDatePrinted();
-
- /** Column name DatePromised */
- public static final String COLUMNNAME_DatePromised = "DatePromised";
-
- /** Set Date Promised.
- * Date Order was promised
- */
- public void setDatePromised (Timestamp DatePromised);
-
- /** Get Date Promised.
- * Date Order was promised
- */
- public Timestamp getDatePromised();
-
- /** Column name DeliveryRule */
- public static final String COLUMNNAME_DeliveryRule = "DeliveryRule";
-
- /** Set Delivery Rule.
- * Defines the timing of Delivery
- */
- public void setDeliveryRule (String DeliveryRule);
-
- /** Get Delivery Rule.
- * Defines the timing of Delivery
- */
- public String getDeliveryRule();
-
- /** Column name DeliveryViaRule */
- public static final String COLUMNNAME_DeliveryViaRule = "DeliveryViaRule";
-
- /** Set Delivery Via.
- * How the order will be delivered
- */
- public void setDeliveryViaRule (String DeliveryViaRule);
-
- /** Get Delivery Via.
- * How the order will be delivered
- */
- public String getDeliveryViaRule();
-
- /** 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 FreightAmt */
- public static final String COLUMNNAME_FreightAmt = "FreightAmt";
-
- /** Set Freight Amount.
- * Freight Amount
- */
- public void setFreightAmt (BigDecimal FreightAmt);
-
- /** Get Freight Amount.
- * Freight Amount
- */
- public BigDecimal getFreightAmt();
-
- /** Column name FreightCostRule */
- public static final String COLUMNNAME_FreightCostRule = "FreightCostRule";
-
- /** Set Freight Cost Rule.
- * Method for charging Freight
- */
- public void setFreightCostRule (String FreightCostRule);
-
- /** Get Freight Cost Rule.
- * Method for charging Freight
- */
- public String getFreightCostRule();
-
- /** Column name GrandTotal */
- public static final String COLUMNNAME_GrandTotal = "GrandTotal";
-
- /** Set Grand Total.
- * Total amount of document
- */
- public void setGrandTotal (BigDecimal GrandTotal);
-
- /** Get Grand Total.
- * Total amount of document
- */
- public BigDecimal getGrandTotal();
-
- /** Column name InvoiceRule */
- public static final String COLUMNNAME_InvoiceRule = "InvoiceRule";
-
- /** Set Invoice Rule.
- * Frequency and method of invoicing
- */
- public void setInvoiceRule (String InvoiceRule);
-
- /** Get Invoice Rule.
- * Frequency and method of invoicing
- */
- public String getInvoiceRule();
-
- /** 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 IsCreditApproved */
- public static final String COLUMNNAME_IsCreditApproved = "IsCreditApproved";
-
- /** Set Credit Approved.
- * Credit has been approved
- */
- public void setIsCreditApproved (boolean IsCreditApproved);
-
- /** Get Credit Approved.
- * Credit has been approved
- */
- public boolean isCreditApproved();
-
- /** Column name IsDelivered */
- public static final String COLUMNNAME_IsDelivered = "IsDelivered";
-
- /** Set Delivered */
- public void setIsDelivered (boolean IsDelivered);
-
- /** Get Delivered */
- public boolean isDelivered();
-
- /** Column name IsDiscountPrinted */
- public static final String COLUMNNAME_IsDiscountPrinted = "IsDiscountPrinted";
-
- /** Set Discount Printed.
- * Print Discount on Invoice and Order
- */
- public void setIsDiscountPrinted (boolean IsDiscountPrinted);
-
- /** Get Discount Printed.
- * Print Discount on Invoice and Order
- */
- public boolean isDiscountPrinted();
-
- /** Column name IsDropShip */
- public static final String COLUMNNAME_IsDropShip = "IsDropShip";
-
- /** Set Drop Shipment.
- * Drop Shipments are sent from the Vendor directly to the Customer
- */
- public void setIsDropShip (boolean IsDropShip);
-
- /** Get Drop Shipment.
- * Drop Shipments are sent from the Vendor directly to the Customer
- */
- public boolean isDropShip();
-
- /** Column name IsInvoiced */
- public static final String COLUMNNAME_IsInvoiced = "IsInvoiced";
-
- /** Set Invoiced.
- * Is this invoiced?
- */
- public void setIsInvoiced (boolean IsInvoiced);
-
- /** Get Invoiced.
- * Is this invoiced?
- */
- public boolean isInvoiced();
-
- /** 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 IsSelected */
- public static final String COLUMNNAME_IsSelected = "IsSelected";
-
- /** Set Selected */
- public void setIsSelected (boolean IsSelected);
-
- /** Get Selected */
- public boolean isSelected();
-
- /** Column name IsSelfService */
- public static final String COLUMNNAME_IsSelfService = "IsSelfService";
-
- /** Set Self-Service.
- * This is a Self-Service entry or this entry can be changed via Self-Service
- */
- public void setIsSelfService (boolean IsSelfService);
-
- /** Get Self-Service.
- * This is a Self-Service entry or this entry can be changed via Self-Service
- */
- public boolean isSelfService();
-
- /** Column name IsSOTrx */
- public static final String COLUMNNAME_IsSOTrx = "IsSOTrx";
-
- /** Set Sales Transaction.
- * This is a Sales Transaction
- */
- public void setIsSOTrx (boolean IsSOTrx);
-
- /** Get Sales Transaction.
- * This is a Sales Transaction
- */
- public boolean isSOTrx();
-
- /** Column name IsTaxIncluded */
- public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded";
-
- /** Set Price includes Tax.
- * Tax is included in the price
- */
- public void setIsTaxIncluded (boolean IsTaxIncluded);
-
- /** Get Price includes Tax.
- * Tax is included in the price
- */
- public boolean isTaxIncluded();
-
- /** Column name IsTransferred */
- public static final String COLUMNNAME_IsTransferred = "IsTransferred";
-
- /** Set Transferred.
- * Transferred to General Ledger (i.e. accounted)
- */
- public void setIsTransferred (boolean IsTransferred);
-
- /** Get Transferred.
- * Transferred to General Ledger (i.e. accounted)
- */
- public boolean isTransferred();
-
- /** Column name M_PriceList_ID */
- public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID";
-
- /** Set Price List.
- * Unique identifier of a Price List
- */
- public void setM_PriceList_ID (int M_PriceList_ID);
-
- /** Get Price List.
- * Unique identifier of a Price List
- */
- public int getM_PriceList_ID();
-
- public I_M_PriceList getM_PriceList() throws Exception;
-
- /** Column name M_Shipper_ID */
- public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID";
-
- /** Set Shipper.
- * Method or manner of product delivery
- */
- public void setM_Shipper_ID (int M_Shipper_ID);
-
- /** Get Shipper.
- * Method or manner of product delivery
- */
- public int getM_Shipper_ID();
-
- public I_M_Shipper getM_Shipper() throws Exception;
-
- /** 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 I_M_Warehouse getM_Warehouse() throws Exception;
-
- /** Column name OrderType */
- public static final String COLUMNNAME_OrderType = "OrderType";
-
- /** Set OrderType */
- public void setOrderType (String OrderType);
-
- /** Get OrderType */
- public String getOrderType();
-
- /** Column name Pay_BPartner_ID */
- public static final String COLUMNNAME_Pay_BPartner_ID = "Pay_BPartner_ID";
-
- /** Set Payment BPartner.
- * Business Partner responsible for the payment
- */
- public void setPay_BPartner_ID (int Pay_BPartner_ID);
-
- /** Get Payment BPartner.
- * Business Partner responsible for the payment
- */
- public int getPay_BPartner_ID();
-
- /** Column name Pay_Location_ID */
- public static final String COLUMNNAME_Pay_Location_ID = "Pay_Location_ID";
-
- /** Set Payment Location.
- * Location of the Business Partner responsible for the payment
- */
- public void setPay_Location_ID (int Pay_Location_ID);
-
- /** Get Payment Location.
- * Location of the Business Partner responsible for the payment
- */
- public int getPay_Location_ID();
-
- /** Column name PaymentRule */
- public static final String COLUMNNAME_PaymentRule = "PaymentRule";
-
- /** Set Payment Rule.
- * How you pay the invoice
- */
- public void setPaymentRule (String PaymentRule);
-
- /** Get Payment Rule.
- * How you pay the invoice
- */
- public String getPaymentRule();
-
- /** Column name POReference */
- public static final String COLUMNNAME_POReference = "POReference";
-
- /** Set Order Reference.
- * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner
- */
- public void setPOReference (String POReference);
-
- /** Get Order Reference.
- * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner
- */
- public String getPOReference();
-
- /** 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 PriorityRule */
- public static final String COLUMNNAME_PriorityRule = "PriorityRule";
-
- /** Set Priority.
- * Priority of a document
- */
- public void setPriorityRule (String PriorityRule);
-
- /** Get Priority.
- * Priority of a document
- */
- public String getPriorityRule();
-
- /** 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 Processing */
- public static final String COLUMNNAME_Processing = "Processing";
-
- /** Set Process Now */
- public void setProcessing (boolean Processing);
-
- /** Get Process Now */
- public boolean isProcessing();
-
- /** Column name Ref_Order_ID */
- public static final String COLUMNNAME_Ref_Order_ID = "Ref_Order_ID";
-
- /** Set Referenced Order.
- * Reference to corresponding Sales/Purchase Order
- */
- public void setRef_Order_ID (int Ref_Order_ID);
-
- /** Get Referenced Order.
- * Reference to corresponding Sales/Purchase Order
- */
- public int getRef_Order_ID();
-
- /** Column name SalesRep_ID */
- public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID";
-
- /** Set Sales Representative.
- * Sales Representative or Company Agent
- */
- public void setSalesRep_ID (int SalesRep_ID);
-
- /** Get Sales Representative.
- * Sales Representative or Company Agent
- */
- public int getSalesRep_ID();
-
- /** Column name SendEMail */
- public static final String COLUMNNAME_SendEMail = "SendEMail";
-
- /** Set Send EMail.
- * Enable sending Document EMail
- */
- public void setSendEMail (boolean SendEMail);
-
- /** Get Send EMail.
- * Enable sending Document EMail
- */
- public boolean isSendEMail();
-
- /** Column name TotalLines */
- public static final String COLUMNNAME_TotalLines = "TotalLines";
-
- /** Set Total Lines.
- * Total of all document lines
- */
- public void setTotalLines (BigDecimal TotalLines);
-
- /** Get Total Lines.
- * Total of all document lines
- */
- public BigDecimal getTotalLines();
-
- /** Column name User1_ID */
- public static final String COLUMNNAME_User1_ID = "User1_ID";
-
- /** Set User List 1.
- * User defined list element #1
- */
- public void setUser1_ID (int User1_ID);
-
- /** Get User List 1.
- * User defined list element #1
- */
- public int getUser1_ID();
-
- /** Column name User2_ID */
- public static final String COLUMNNAME_User2_ID = "User2_ID";
-
- /** Set User List 2.
- * User defined list element #2
- */
- public void setUser2_ID (int User2_ID);
-
- /** Get User List 2.
- * User defined list element #2
- */
- public int getUser2_ID();
-
- /** Column name Volume */
- public static final String COLUMNNAME_Volume = "Volume";
-
- /** Set Volume.
- * Volume of a product
- */
- public void setVolume (BigDecimal Volume);
-
- /** Get Volume.
- * Volume of a product
- */
- public BigDecimal getVolume();
-
- /** Column name Weight */
- public static final String COLUMNNAME_Weight = "Weight";
-
- /** Set Weight.
- * Weight of a product
- */
- public void setWeight (BigDecimal Weight);
-
- /** Get Weight.
- * Weight of a product
- */
- public BigDecimal getWeight();
-}
diff --git a/posterita/posterita/src/main/org/compiere/model/I_C_Payment.java b/posterita/posterita/src/main/org/compiere/model/I_C_Payment.java
deleted file mode 100644
index 13b73bd96b..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/I_C_Payment.java
+++ /dev/null
@@ -1,1093 +0,0 @@
-/**********************************************************************
- * This file is part of Adempiere ERP Bazaar *
- * http://www.adempiere.org *
- * *
- * Copyright (C) Trifon Trifonov. *
- * Copyright (C) Contributors *
- * *
- * This program is free software;
- you can redistribute it and/or *
- * modify it under the terms of the GNU General Public License *
- * as published by the Free Software Foundation;
- either version 2 *
- * of the License, or (at your option) any later version. *
- * *
- * 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., 51 Franklin Street, Fifth Floor, Boston, *
- * MA 02110-1301, USA. *
- * *
- * Contributors: *
- * - Trifon Trifonov (trifonnt@users.sourceforge.net) *
- * *
- * Sponsors: *
- * - Company (http://www.site.com) *
- **********************************************************************/
-package org.compiere.model;
-
-import java.math.BigDecimal;
-import java.sql.Timestamp;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Interface for C_Payment
- * @author Trifon Trifonov (generated)
- * @version Release 3.5.0
- */
-public interface I_C_Payment
-{
-
- /** TableName=C_Payment */
- public static final String Table_Name = "C_Payment";
-
- /** AD_Table_ID=335 */
- public static final int Table_ID = MTable.getTable_ID(Table_Name);
-
- KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
-
- /** AccessLevel = 1 - Org
- */
- BigDecimal accessLevel = BigDecimal.valueOf(1);
-
- /** Load Meta Data */
-
- /** Column name AD_OrgTrx_ID */
- public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID";
-
- /** Set Trx Organization.
- * Performing or initiating organization
- */
- public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);
-
- /** Get Trx Organization.
- * Performing or initiating organization
- */
- public int getAD_OrgTrx_ID();
-
- /** Column name A_City */
- public static final String COLUMNNAME_A_City = "A_City";
-
- /** Set Account City.
- * City or the Credit Card or Account Holder
- */
- public void setA_City (String A_City);
-
- /** Get Account City.
- * City or the Credit Card or Account Holder
- */
- public String getA_City();
-
- /** Column name A_Country */
- public static final String COLUMNNAME_A_Country = "A_Country";
-
- /** Set Account Country.
- * Country
- */
- public void setA_Country (String A_Country);
-
- /** Get Account Country.
- * Country
- */
- public String getA_Country();
-
- /** Column name A_EMail */
- public static final String COLUMNNAME_A_EMail = "A_EMail";
-
- /** Set Account EMail.
- * Email Address
- */
- public void setA_EMail (String A_EMail);
-
- /** Get Account EMail.
- * Email Address
- */
- public String getA_EMail();
-
- /** Column name A_Ident_DL */
- public static final String COLUMNNAME_A_Ident_DL = "A_Ident_DL";
-
- /** Set Driver License.
- * Payment Identification - Driver License
- */
- public void setA_Ident_DL (String A_Ident_DL);
-
- /** Get Driver License.
- * Payment Identification - Driver License
- */
- public String getA_Ident_DL();
-
- /** Column name A_Ident_SSN */
- public static final String COLUMNNAME_A_Ident_SSN = "A_Ident_SSN";
-
- /** Set Social Security No.
- * Payment Identification - Social Security No
- */
- public void setA_Ident_SSN (String A_Ident_SSN);
-
- /** Get Social Security No.
- * Payment Identification - Social Security No
- */
- public String getA_Ident_SSN();
-
- /** Column name A_Name */
- public static final String COLUMNNAME_A_Name = "A_Name";
-
- /** Set Account Name.
- * Name on Credit Card or Account holder
- */
- public void setA_Name (String A_Name);
-
- /** Get Account Name.
- * Name on Credit Card or Account holder
- */
- public String getA_Name();
-
- /** Column name A_State */
- public static final String COLUMNNAME_A_State = "A_State";
-
- /** Set Account State.
- * State of the Credit Card or Account holder
- */
- public void setA_State (String A_State);
-
- /** Get Account State.
- * State of the Credit Card or Account holder
- */
- public String getA_State();
-
- /** Column name A_Street */
- public static final String COLUMNNAME_A_Street = "A_Street";
-
- /** Set Account Street.
- * Street address of the Credit Card or Account holder
- */
- public void setA_Street (String A_Street);
-
- /** Get Account Street.
- * Street address of the Credit Card or Account holder
- */
- public String getA_Street();
-
- /** Column name A_Zip */
- public static final String COLUMNNAME_A_Zip = "A_Zip";
-
- /** Set Account Zip/Postal.
- * Zip Code of the Credit Card or Account Holder
- */
- public void setA_Zip (String A_Zip);
-
- /** Get Account Zip/Postal.
- * Zip Code of the Credit Card or Account Holder
- */
- public String getA_Zip();
-
- /** Column name AccountNo */
- public static final String COLUMNNAME_AccountNo = "AccountNo";
-
- /** Set Account No.
- * Account Number
- */
- public void setAccountNo (String AccountNo);
-
- /** Get Account No.
- * Account Number
- */
- public String getAccountNo();
-
- /** Column name C_Activity_ID */
- public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID";
-
- /** Set Activity.
- * Business Activity
- */
- public void setC_Activity_ID (int C_Activity_ID);
-
- /** Get Activity.
- * Business Activity
- */
- public int getC_Activity_ID();
-
- public I_C_Activity getC_Activity() throws Exception;
-
- /** Column name C_BP_BankAccount_ID */
- public static final String COLUMNNAME_C_BP_BankAccount_ID = "C_BP_BankAccount_ID";
-
- /** Set Partner Bank Account.
- * Bank Account of the Business Partner
- */
- public void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID);
-
- /** Get Partner Bank Account.
- * Bank Account of the Business Partner
- */
- public int getC_BP_BankAccount_ID();
-
- public I_C_BP_BankAccount getC_BP_BankAccount() throws Exception;
-
- /** Column name C_BPartner_ID */
- public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID";
-
- /** Set Business Partner .
- * Identifies a Business Partner
- */
- public void setC_BPartner_ID (int C_BPartner_ID);
-
- /** Get Business Partner .
- * Identifies a Business Partner
- */
- public int getC_BPartner_ID();
-
- public I_C_BPartner getC_BPartner() throws Exception;
-
- /** Column name C_BankAccount_ID */
- public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID";
-
- /** Set Bank Account.
- * Account at the Bank
- */
- public void setC_BankAccount_ID (int C_BankAccount_ID);
-
- /** Get Bank Account.
- * Account at the Bank
- */
- public int getC_BankAccount_ID();
-
- public I_C_BankAccount getC_BankAccount() throws Exception;
-
- /** Column name C_Campaign_ID */
- public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID";
-
- /** Set Campaign.
- * Marketing Campaign
- */
- public void setC_Campaign_ID (int C_Campaign_ID);
-
- /** Get Campaign.
- * Marketing Campaign
- */
- public int getC_Campaign_ID();
-
- public I_C_Campaign getC_Campaign() throws Exception;
-
- /** Column name C_CashBook_ID */
- public static final String COLUMNNAME_C_CashBook_ID = "C_CashBook_ID";
-
- /** Set Cash Book.
- * Cash Book for recording petty cash transactions
- */
- public void setC_CashBook_ID (int C_CashBook_ID);
-
- /** Get Cash Book.
- * Cash Book for recording petty cash transactions
- */
- public int getC_CashBook_ID();
-
- public I_C_CashBook getC_CashBook() throws Exception;
-
- /** Column name C_Charge_ID */
- public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID";
-
- /** Set Charge.
- * Additional document charges
- */
- public void setC_Charge_ID (int C_Charge_ID);
-
- /** Get Charge.
- * Additional document charges
- */
- public int getC_Charge_ID();
-
- public I_C_Charge getC_Charge() throws Exception;
-
- /** Column name C_ConversionType_ID */
- public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID";
-
- /** Set Currency Type.
- * Currency Conversion Rate Type
- */
- public void setC_ConversionType_ID (int C_ConversionType_ID);
-
- /** Get Currency Type.
- * Currency Conversion Rate Type
- */
- public int getC_ConversionType_ID();
-
- public I_C_ConversionType getC_ConversionType() throws Exception;
-
- /** Column name C_Currency_ID */
- public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID";
-
- /** Set Currency.
- * The Currency for this record
- */
- public void setC_Currency_ID (int C_Currency_ID);
-
- /** Get Currency.
- * The Currency for this record
- */
- public int getC_Currency_ID();
-
- public I_C_Currency getC_Currency() throws Exception;
-
- /** 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 I_C_DocType getC_DocType() throws Exception;
-
- /** Column name C_Invoice_ID */
- public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID";
-
- /** Set Invoice.
- * Invoice Identifier
- */
- public void setC_Invoice_ID (int C_Invoice_ID);
-
- /** Get Invoice.
- * Invoice Identifier
- */
- public int getC_Invoice_ID();
-
- public I_C_Invoice getC_Invoice() throws Exception;
-
- /** Column name C_Order_ID */
- public static final String COLUMNNAME_C_Order_ID = "C_Order_ID";
-
- /** Set Order.
- * Order
- */
- public void setC_Order_ID (int C_Order_ID);
-
- /** Get Order.
- * Order
- */
- public int getC_Order_ID();
-
- public I_C_Order getC_Order() throws Exception;
-
- /** Column name C_PaymentBatch_ID */
- public static final String COLUMNNAME_C_PaymentBatch_ID = "C_PaymentBatch_ID";
-
- /** Set Payment Batch.
- * Payment batch for EFT
- */
- public void setC_PaymentBatch_ID (int C_PaymentBatch_ID);
-
- /** Get Payment Batch.
- * Payment batch for EFT
- */
- public int getC_PaymentBatch_ID();
-
- public I_C_PaymentBatch getC_PaymentBatch() throws Exception;
-
- /** Column name C_Payment_ID */
- public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID";
-
- /** Set Payment.
- * Payment identifier
- */
- public void setC_Payment_ID (int C_Payment_ID);
-
- /** Get Payment.
- * Payment identifier
- */
- public int getC_Payment_ID();
-
- /** Column name C_Project_ID */
- public static final String COLUMNNAME_C_Project_ID = "C_Project_ID";
-
- /** Set Project.
- * Financial Project
- */
- public void setC_Project_ID (int C_Project_ID);
-
- /** Get Project.
- * Financial Project
- */
- public int getC_Project_ID();
-
- public I_C_Project getC_Project() throws Exception;
-
- /** Column name ChargeAmt */
- public static final String COLUMNNAME_ChargeAmt = "ChargeAmt";
-
- /** Set Charge amount.
- * Charge Amount
- */
- public void setChargeAmt (BigDecimal ChargeAmt);
-
- /** Get Charge amount.
- * Charge Amount
- */
- public BigDecimal getChargeAmt();
-
- /** Column name CheckNo */
- public static final String COLUMNNAME_CheckNo = "CheckNo";
-
- /** Set Check No.
- * Check Number
- */
- public void setCheckNo (String CheckNo);
-
- /** Get Check No.
- * Check Number
- */
- public String getCheckNo();
-
- /** Column name CreditCardExpMM */
- public static final String COLUMNNAME_CreditCardExpMM = "CreditCardExpMM";
-
- /** Set Exp. Month.
- * Expiry Month
- */
- public void setCreditCardExpMM (int CreditCardExpMM);
-
- /** Get Exp. Month.
- * Expiry Month
- */
- public int getCreditCardExpMM();
-
- /** Column name CreditCardExpYY */
- public static final String COLUMNNAME_CreditCardExpYY = "CreditCardExpYY";
-
- /** Set Exp. Year.
- * Expiry Year
- */
- public void setCreditCardExpYY (int CreditCardExpYY);
-
- /** Get Exp. Year.
- * Expiry Year
- */
- public int getCreditCardExpYY();
-
- /** Column name CreditCardNumber */
- public static final String COLUMNNAME_CreditCardNumber = "CreditCardNumber";
-
- /** Set Number.
- * Credit Card Number
- */
- public void setCreditCardNumber (String CreditCardNumber);
-
- /** Get Number.
- * Credit Card Number
- */
- public String getCreditCardNumber();
-
- /** Column name CreditCardType */
- public static final String COLUMNNAME_CreditCardType = "CreditCardType";
-
- /** Set Credit Card.
- * Credit Card (Visa, MC, AmEx)
- */
- public void setCreditCardType (String CreditCardType);
-
- /** Get Credit Card.
- * Credit Card (Visa, MC, AmEx)
- */
- public String getCreditCardType();
-
- /** Column name CreditCardVV */
- public static final String COLUMNNAME_CreditCardVV = "CreditCardVV";
-
- /** Set Verification Code.
- * Credit Card Verification code on credit card
- */
- public void setCreditCardVV (String CreditCardVV);
-
- /** Get Verification Code.
- * Credit Card Verification code on credit card
- */
- public String getCreditCardVV();
-
- /** 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 DateTrx */
- public static final String COLUMNNAME_DateTrx = "DateTrx";
-
- /** Set Transaction Date.
- * Transaction Date
- */
- public void setDateTrx (Timestamp DateTrx);
-
- /** Get Transaction Date.
- * Transaction Date
- */
- public Timestamp getDateTrx();
-
- /** 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 DiscountAmt */
- public static final String COLUMNNAME_DiscountAmt = "DiscountAmt";
-
- /** Set Discount Amount.
- * Calculated amount of discount
- */
- public void setDiscountAmt (BigDecimal DiscountAmt);
-
- /** Get Discount Amount.
- * Calculated amount of discount
- */
- public BigDecimal getDiscountAmt();
-
- /** 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 IsAllocated */
- public static final String COLUMNNAME_IsAllocated = "IsAllocated";
-
- /** Set Allocated.
- * Indicates if the payment has been allocated
- */
- public void setIsAllocated (boolean IsAllocated);
-
- /** Get Allocated.
- * Indicates if the payment has been allocated
- */
- public boolean isAllocated();
-
- /** 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 IsDelayedCapture */
- public static final String COLUMNNAME_IsDelayedCapture = "IsDelayedCapture";
-
- /** Set Delayed Capture.
- * Charge after Shipment
- */
- public void setIsDelayedCapture (boolean IsDelayedCapture);
-
- /** Get Delayed Capture.
- * Charge after Shipment
- */
- public boolean isDelayedCapture();
-
- /** Column name IsOnline */
- public static final String COLUMNNAME_IsOnline = "IsOnline";
-
- /** Set Online Access.
- * Can be accessed online
- */
- public void setIsOnline (boolean IsOnline);
-
- /** Get Online Access.
- * Can be accessed online
- */
- public boolean isOnline();
-
- /** Column name IsOverUnderPayment */
- public static final String COLUMNNAME_IsOverUnderPayment = "IsOverUnderPayment";
-
- /** Set Over/Under Payment.
- * Over-Payment (unallocated) or Under-Payment (partial payment)
- */
- public void setIsOverUnderPayment (boolean IsOverUnderPayment);
-
- /** Get Over/Under Payment.
- * Over-Payment (unallocated) or Under-Payment (partial payment)
- */
- public boolean isOverUnderPayment();
-
- /** Column name IsPrepayment */
- public static final String COLUMNNAME_IsPrepayment = "IsPrepayment";
-
- /** Set Prepayment.
- * The Payment/Receipt is a Prepayment
- */
- public void setIsPrepayment (boolean IsPrepayment);
-
- /** Get Prepayment.
- * The Payment/Receipt is a Prepayment
- */
- public boolean isPrepayment();
-
- /** Column name IsReceipt */
- public static final String COLUMNNAME_IsReceipt = "IsReceipt";
-
- /** Set Receipt.
- * This is a sales transaction (receipt)
- */
- public void setIsReceipt (boolean IsReceipt);
-
- /** Get Receipt.
- * This is a sales transaction (receipt)
- */
- public boolean isReceipt();
-
- /** Column name IsReconciled */
- public static final String COLUMNNAME_IsReconciled = "IsReconciled";
-
- /** Set Reconciled.
- * Payment is reconciled with bank statement
- */
- public void setIsReconciled (boolean IsReconciled);
-
- /** Get Reconciled.
- * Payment is reconciled with bank statement
- */
- public boolean isReconciled();
-
- /** Column name IsSelfService */
- public static final String COLUMNNAME_IsSelfService = "IsSelfService";
-
- /** Set Self-Service.
- * This is a Self-Service entry or this entry can be changed via Self-Service
- */
- public void setIsSelfService (boolean IsSelfService);
-
- /** Get Self-Service.
- * This is a Self-Service entry or this entry can be changed via Self-Service
- */
- public boolean isSelfService();
-
- /** Column name Micr */
- public static final String COLUMNNAME_Micr = "Micr";
-
- /** Set Micr.
- * Combination of routing no, account and check no
- */
- public void setMicr (String Micr);
-
- /** Get Micr.
- * Combination of routing no, account and check no
- */
- public String getMicr();
-
- /** Column name OProcessing */
- public static final String COLUMNNAME_OProcessing = "OProcessing";
-
- /** Set Online Processing.
- * This payment can be processed online
- */
- public void setOProcessing (String OProcessing);
-
- /** Get Online Processing.
- * This payment can be processed online
- */
- public String getOProcessing();
-
- /** Column name Orig_TrxID */
- public static final String COLUMNNAME_Orig_TrxID = "Orig_TrxID";
-
- /** Set Original Transaction ID.
- * Original Transaction ID
- */
- public void setOrig_TrxID (String Orig_TrxID);
-
- /** Get Original Transaction ID.
- * Original Transaction ID
- */
- public String getOrig_TrxID();
-
- /** Column name OverUnderAmt */
- public static final String COLUMNNAME_OverUnderAmt = "OverUnderAmt";
-
- /** Set Over/Under Payment.
- * Over-Payment (unallocated) or Under-Payment (partial payment) Amount
- */
- public void setOverUnderAmt (BigDecimal OverUnderAmt);
-
- /** Get Over/Under Payment.
- * Over-Payment (unallocated) or Under-Payment (partial payment) Amount
- */
- public BigDecimal getOverUnderAmt();
-
- /** Column name PONum */
- public static final String COLUMNNAME_PONum = "PONum";
-
- /** Set PO Number.
- * Purchase Order Number
- */
- public void setPONum (String PONum);
-
- /** Get PO Number.
- * Purchase Order Number
- */
- public String getPONum();
-
- /** Column name PayAmt */
- public static final String COLUMNNAME_PayAmt = "PayAmt";
-
- /** Set Payment amount.
- * Amount being paid
- */
- public void setPayAmt (BigDecimal PayAmt);
-
- /** Get Payment amount.
- * Amount being paid
- */
- public BigDecimal getPayAmt();
-
- /** 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 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 Processing */
- public static final String COLUMNNAME_Processing = "Processing";
-
- /** Set Process Now */
- public void setProcessing (boolean Processing);
-
- /** Get Process Now */
- public boolean isProcessing();
-
- /** Column name R_AuthCode */
- public static final String COLUMNNAME_R_AuthCode = "R_AuthCode";
-
- /** Set Authorization Code.
- * Authorization Code returned
- */
- public void setR_AuthCode (String R_AuthCode);
-
- /** Get Authorization Code.
- * Authorization Code returned
- */
- public String getR_AuthCode();
-
- /** Column name R_AuthCode_DC */
- public static final String COLUMNNAME_R_AuthCode_DC = "R_AuthCode_DC";
-
- /** Set Authorization Code (DC).
- * Authorization Code Delayed Capture returned
- */
- public void setR_AuthCode_DC (String R_AuthCode_DC);
-
- /** Get Authorization Code (DC).
- * Authorization Code Delayed Capture returned
- */
- public String getR_AuthCode_DC();
-
- /** Column name R_AvsAddr */
- public static final String COLUMNNAME_R_AvsAddr = "R_AvsAddr";
-
- /** Set Address verified.
- * This address has been verified
- */
- public void setR_AvsAddr (String R_AvsAddr);
-
- /** Get Address verified.
- * This address has been verified
- */
- public String getR_AvsAddr();
-
- /** Column name R_AvsZip */
- public static final String COLUMNNAME_R_AvsZip = "R_AvsZip";
-
- /** Set Zip verified.
- * The Zip Code has been verified
- */
- public void setR_AvsZip (String R_AvsZip);
-
- /** Get Zip verified.
- * The Zip Code has been verified
- */
- public String getR_AvsZip();
-
- /** Column name R_CVV2Match */
- public static final String COLUMNNAME_R_CVV2Match = "R_CVV2Match";
-
- /** Set CVV Match.
- * Credit Card Verification Code Match
- */
- public void setR_CVV2Match (boolean R_CVV2Match);
-
- /** Get CVV Match.
- * Credit Card Verification Code Match
- */
- public boolean isR_CVV2Match();
-
- /** Column name R_Info */
- public static final String COLUMNNAME_R_Info = "R_Info";
-
- /** Set Info.
- * Response info
- */
- public void setR_Info (String R_Info);
-
- /** Get Info.
- * Response info
- */
- public String getR_Info();
-
- /** Column name R_PnRef */
- public static final String COLUMNNAME_R_PnRef = "R_PnRef";
-
- /** Set Reference.
- * Payment reference
- */
- public void setR_PnRef (String R_PnRef);
-
- /** Get Reference.
- * Payment reference
- */
- public String getR_PnRef();
-
- /** Column name R_PnRef_DC */
- public static final String COLUMNNAME_R_PnRef_DC = "R_PnRef_DC";
-
- /** Set Reference (DC).
- * Payment Reference Delayed Capture
- */
- public void setR_PnRef_DC (String R_PnRef_DC);
-
- /** Get Reference (DC).
- * Payment Reference Delayed Capture
- */
- public String getR_PnRef_DC();
-
- /** Column name R_RespMsg */
- public static final String COLUMNNAME_R_RespMsg = "R_RespMsg";
-
- /** Set Response Message.
- * Response message
- */
- public void setR_RespMsg (String R_RespMsg);
-
- /** Get Response Message.
- * Response message
- */
- public String getR_RespMsg();
-
- /** Column name R_Result */
- public static final String COLUMNNAME_R_Result = "R_Result";
-
- /** Set Result.
- * Result of transmission
- */
- public void setR_Result (String R_Result);
-
- /** Get Result.
- * Result of transmission
- */
- public String getR_Result();
-
- /** Column name Ref_Payment_ID */
- public static final String COLUMNNAME_Ref_Payment_ID = "Ref_Payment_ID";
-
- /** Set Referenced Payment */
- public void setRef_Payment_ID (int Ref_Payment_ID);
-
- /** Get Referenced Payment */
- public int getRef_Payment_ID();
-
- /** Column name RoutingNo */
- public static final String COLUMNNAME_RoutingNo = "RoutingNo";
-
- /** Set Routing No.
- * Bank Routing Number
- */
- public void setRoutingNo (String RoutingNo);
-
- /** Get Routing No.
- * Bank Routing Number
- */
- public String getRoutingNo();
-
- /** Column name Swipe */
- public static final String COLUMNNAME_Swipe = "Swipe";
-
- /** Set Swipe.
- * Track 1 and 2 of the Credit Card
- */
- public void setSwipe (String Swipe);
-
- /** Get Swipe.
- * Track 1 and 2 of the Credit Card
- */
- public String getSwipe();
-
- /** Column name TaxAmt */
- public static final String COLUMNNAME_TaxAmt = "TaxAmt";
-
- /** Set Tax Amount.
- * Tax Amount for a document
- */
- public void setTaxAmt (BigDecimal TaxAmt);
-
- /** Get Tax Amount.
- * Tax Amount for a document
- */
- public BigDecimal getTaxAmt();
-
- /** Column name TenderType */
- public static final String COLUMNNAME_TenderType = "TenderType";
-
- /** Set Tender type.
- * Method of Payment
- */
- public void setTenderType (String TenderType);
-
- /** Get Tender type.
- * Method of Payment
- */
- public String getTenderType();
-
- /** Column name TrxType */
- public static final String COLUMNNAME_TrxType = "TrxType";
-
- /** Set Transaction Type.
- * Type of credit card transaction
- */
- public void setTrxType (String TrxType);
-
- /** Get Transaction Type.
- * Type of credit card transaction
- */
- public String getTrxType();
-
- /** Column name User1_ID */
- public static final String COLUMNNAME_User1_ID = "User1_ID";
-
- /** Set User List 1.
- * User defined list element #1
- */
- public void setUser1_ID (int User1_ID);
-
- /** Get User List 1.
- * User defined list element #1
- */
- public int getUser1_ID();
-
- /** Column name User2_ID */
- public static final String COLUMNNAME_User2_ID = "User2_ID";
-
- /** Set User List 2.
- * User defined list element #2
- */
- public void setUser2_ID (int User2_ID);
-
- /** Get User List 2.
- * User defined list element #2
- */
- public int getUser2_ID();
-
- /** Column name VoiceAuthCode */
- public static final String COLUMNNAME_VoiceAuthCode = "VoiceAuthCode";
-
- /** Set Voice authorization code.
- * Voice Authorization Code from credit card company
- */
- public void setVoiceAuthCode (String VoiceAuthCode);
-
- /** Get Voice authorization code.
- * Voice Authorization Code from credit card company
- */
- public String getVoiceAuthCode();
-
- /** Column name WriteOffAmt */
- public static final String COLUMNNAME_WriteOffAmt = "WriteOffAmt";
-
- /** Set Write-off Amount.
- * Amount to write-off
- */
- public void setWriteOffAmt (BigDecimal WriteOffAmt);
-
- /** Get Write-off Amount.
- * Amount to write-off
- */
- public BigDecimal getWriteOffAmt();
-}
diff --git a/posterita/posterita/src/main/org/compiere/model/I_M_InventoryLine.java b/posterita/posterita/src/main/org/compiere/model/I_M_InventoryLine.java
deleted file mode 100644
index 660238fb1a..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/I_M_InventoryLine.java
+++ /dev/null
@@ -1,266 +0,0 @@
-/**********************************************************************
- * This file is part of Adempiere ERP Bazaar *
- * http://www.adempiere.org *
- * *
- * Copyright (C) Trifon Trifonov. *
- * Copyright (C) Contributors *
- * *
- * This program is free software;
- you can redistribute it and/or *
- * modify it under the terms of the GNU General Public License *
- * as published by the Free Software Foundation;
- either version 2 *
- * of the License, or (at your option) any later version. *
- * *
- * 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., 51 Franklin Street, Fifth Floor, Boston, *
- * MA 02110-1301, USA. *
- * *
- * Contributors: *
- * - Trifon Trifonov (trifonnt@users.sourceforge.net) *
- * *
- * Sponsors: *
- * - Company (http://www.site.com) *
- **********************************************************************/
-package org.compiere.model;
-
-import java.math.BigDecimal;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Interface for M_InventoryLine
- * @author Trifon Trifonov (generated)
- * @version Release 3.4.0s
- */
-public interface I_M_InventoryLine
-{
-
- /** TableName=M_InventoryLine */
- public static final String Table_Name = "M_InventoryLine";
-
- /** AD_Table_ID=322 */
- public static final int Table_ID = MTable.getTable_ID(Table_Name);
-
- KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
-
- /** AccessLevel = 1 - Org
- */
- BigDecimal accessLevel = BigDecimal.valueOf(1);
-
- /** Load Meta Data */
-
- /** Column name C_Charge_ID */
- public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID";
-
- /** Set Charge.
- * Additional document charges
- */
- public void setC_Charge_ID (int C_Charge_ID);
-
- /** Get Charge.
- * Additional document charges
- */
- public int getC_Charge_ID();
-
- public I_C_Charge getC_Charge() throws Exception;
-
- /** 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 InventoryType */
- public static final String COLUMNNAME_InventoryType = "InventoryType";
-
- /** Set Inventory Type.
- * Type of inventory difference
- */
- public void setInventoryType (String InventoryType);
-
- /** Get Inventory Type.
- * Type of inventory difference
- */
- public String getInventoryType();
-
- /** 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_AttributeSetInstance_ID */
- public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID";
-
- /** Set Attribute Set Instance.
- * Product Attribute Set Instance
- */
- public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID);
-
- /** Get Attribute Set Instance.
- * Product Attribute Set Instance
- */
- public int getM_AttributeSetInstance_ID();
-
- /** Column name M_Inventory_ID */
- public static final String COLUMNNAME_M_Inventory_ID = "M_Inventory_ID";
-
- /** Set Phys.Inventory.
- * Parameters for a Physical Inventory
- */
- public void setM_Inventory_ID (int M_Inventory_ID);
-
- /** Get Phys.Inventory.
- * Parameters for a Physical Inventory
- */
- public int getM_Inventory_ID();
-
- public I_M_Inventory getM_Inventory() throws Exception;
-
- /** Column name M_InventoryLine_ID */
- public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID";
-
- /** Set Phys.Inventory Line.
- * Unique line in an Inventory document
- */
- public void setM_InventoryLine_ID (int M_InventoryLine_ID);
-
- /** Get Phys.Inventory Line.
- * Unique line in an Inventory document
- */
- public int getM_InventoryLine_ID();
-
- /** Column name M_Locator_ID */
- public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID";
-
- /** Set Locator.
- * Warehouse Locator
- */
- public void setM_Locator_ID (int M_Locator_ID);
-
- /** Get Locator.
- * Warehouse Locator
- */
- public int getM_Locator_ID();
-
- /** 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();
-
- /** 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 QtyBook */
- public static final String COLUMNNAME_QtyBook = "QtyBook";
-
- /** Set Quantity book.
- * Book Quantity
- */
- public void setQtyBook (BigDecimal QtyBook);
-
- /** Get Quantity book.
- * Book Quantity
- */
- public BigDecimal getQtyBook();
-
- /** Column name QtyCount */
- public static final String COLUMNNAME_QtyCount = "QtyCount";
-
- /** Set Quantity count.
- * Counted Quantity
- */
- public void setQtyCount (BigDecimal QtyCount);
-
- /** Get Quantity count.
- * Counted Quantity
- */
- public BigDecimal getQtyCount();
-
- /** Column name qtycsv */
- public static final String COLUMNNAME_QtyCsv = "QtyCsv";
-
- /** Set qtycsv */
- public void setQtyCsv (BigDecimal QtyCsv);
-
- /** Get qtycsv */
- public BigDecimal getQtyCsv();
-
- /** Column name QtyInternalUse */
- public static final String COLUMNNAME_QtyInternalUse = "QtyInternalUse";
-
- /** Set Internal Use Qty.
- * Internal Use Quantity removed from Inventory
- */
- public void setQtyInternalUse (BigDecimal QtyInternalUse);
-
- /** Get Internal Use Qty.
- * Internal Use Quantity removed from Inventory
- */
- public BigDecimal getQtyInternalUse();
-
- /** Column name UPC */
- public static final String COLUMNNAME_UPC = "UPC";
-
- /** Set UPC/EAN.
- * Bar Code (Universal Product Code or its superset European Article Number)
- */
- public void setUPC (String UPC);
-
- /** Get UPC/EAN.
- * Bar Code (Universal Product Code or its superset European Article Number)
- */
- public String getUPC();
-
- /** Column name Value */
- public static final String COLUMNNAME_Value = "Value";
-
- /** Set Search Key.
- * Search key for the record in the format required - must be unique
- */
- public void setValue (String Value);
-
- /** Get Search Key.
- * Search key for the record in the format required - must be unique
- */
- public String getValue();
-}
diff --git a/posterita/posterita/src/main/org/compiere/model/I_M_PriceList.java b/posterita/posterita/src/main/org/compiere/model/I_M_PriceList.java
deleted file mode 100644
index e020d4dda6..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/I_M_PriceList.java
+++ /dev/null
@@ -1,212 +0,0 @@
-/**********************************************************************
- * This file is part of Adempiere ERP Bazaar *
- * http://www.adempiere.org *
- * *
- * Copyright (C) Trifon Trifonov. *
- * Copyright (C) Contributors *
- * *
- * This program is free software;
- you can redistribute it and/or *
- * modify it under the terms of the GNU General Public License *
- * as published by the Free Software Foundation;
- either version 2 *
- * of the License, or (at your option) any later version. *
- * *
- * 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., 51 Franklin Street, Fifth Floor, Boston, *
- * MA 02110-1301, USA. *
- * *
- * Contributors: *
- * - Trifon Trifonov (trifonnt@users.sourceforge.net) *
- * *
- * Sponsors: *
- * - Company (http://www.site.com) *
- **********************************************************************/
-package org.compiere.model;
-
-import java.math.BigDecimal;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Interface for M_PriceList
- * @author Trifon Trifonov (generated)
- * @version Release 3.3.1b
- */
-public interface I_M_PriceList
-{
-
- /** TableName=M_PriceList */
- public static final String Table_Name = "M_PriceList";
-
- /** AD_Table_ID=255 */
- 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 BasePriceList_ID */
- public static final String COLUMNNAME_BasePriceList_ID = "BasePriceList_ID";
-
- /** Set Base Pricelist.
- * Pricelist to be used, if product not found on this pricelist
- */
- public void setBasePriceList_ID (int BasePriceList_ID);
-
- /** Get Base Pricelist.
- * Pricelist to be used, if product not found on this pricelist
- */
- public int getBasePriceList_ID();
-
- /** Column name C_Currency_ID */
- public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID";
-
- /** Set Currency.
- * The Currency for this record
- */
- public void setC_Currency_ID (int C_Currency_ID);
-
- /** Get Currency.
- * The Currency for this record
- */
- public int getC_Currency_ID();
-
- public I_C_Currency getC_Currency() throws Exception;
-
- /** 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 EnforcePriceLimit */
- public static final String COLUMNNAME_EnforcePriceLimit = "EnforcePriceLimit";
-
- /** Set Enforce price limit.
- * Do not allow prices below the limit price
- */
- public void setEnforcePriceLimit (boolean EnforcePriceLimit);
-
- /** Get Enforce price limit.
- * Do not allow prices below the limit price
- */
- public boolean isEnforcePriceLimit();
-
- /** Column name IsDefault */
- public static final String COLUMNNAME_IsDefault = "IsDefault";
-
- /** Set Default.
- * Default value
- */
- public void setIsDefault (boolean IsDefault);
-
- /** Get Default.
- * Default value
- */
- public boolean isDefault();
-
- /** Column name IsMandatory */
- public static final String COLUMNNAME_IsMandatory = "IsMandatory";
-
- /** Set Mandatory.
- * Data entry is required in this column
- */
- public void setIsMandatory (boolean IsMandatory);
-
- /** Get Mandatory.
- * Data entry is required in this column
- */
- public boolean isMandatory();
-
- /** Column name isPresentForProduct */
- public static final String COLUMNNAME_isPresentForProduct = "isPresentForProduct";
-
- /** Set isPresentForProduct */
- public void setisPresentForProduct (boolean isPresentForProduct);
-
- /** Get isPresentForProduct */
- public boolean isPresentForProduct();
-
- /** Column name IsSOPriceList */
- public static final String COLUMNNAME_IsSOPriceList = "IsSOPriceList";
-
- /** Set Sales Price list.
- * This is a Sales Price List
- */
- public void setIsSOPriceList (boolean IsSOPriceList);
-
- /** Get Sales Price list.
- * This is a Sales Price List
- */
- public boolean isSOPriceList();
-
- /** Column name IsTaxIncluded */
- public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded";
-
- /** Set Price includes Tax.
- * Tax is included in the price
- */
- public void setIsTaxIncluded (boolean IsTaxIncluded);
-
- /** Get Price includes Tax.
- * Tax is included in the price
- */
- public boolean isTaxIncluded();
-
- /** Column name M_PriceList_ID */
- public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID";
-
- /** Set Price List.
- * Unique identifier of a Price List
- */
- public void setM_PriceList_ID (int M_PriceList_ID);
-
- /** Get Price List.
- * Unique identifier of a Price List
- */
- public int getM_PriceList_ID();
-
- /** Column name Name */
- public static final String COLUMNNAME_Name = "Name";
-
- /** Set Name.
- * Alphanumeric identifier of the entity
- */
- public void setName (String Name);
-
- /** Get Name.
- * Alphanumeric identifier of the entity
- */
- public String getName();
-
- /** Column name PricePrecision */
- public static final String COLUMNNAME_PricePrecision = "PricePrecision";
-
- /** Set Price Precision.
- * Precision (number of decimals) for the Price
- */
- public void setPricePrecision (BigDecimal PricePrecision);
-
- /** Get Price Precision.
- * Precision (number of decimals) for the Price
- */
- public BigDecimal getPricePrecision();
-}
diff --git a/posterita/posterita/src/main/org/compiere/model/I_M_Product.java b/posterita/posterita/src/main/org/compiere/model/I_M_Product.java
deleted file mode 100644
index 1e00a2998c..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/I_M_Product.java
+++ /dev/null
@@ -1,741 +0,0 @@
-/**********************************************************************
- * This file is part of Adempiere ERP Bazaar *
- * http://www.adempiere.org *
- * *
- * Copyright (C) Trifon Trifonov. *
- * Copyright (C) Contributors *
- * *
- * This program is free software;
- you can redistribute it and/or *
- * modify it under the terms of the GNU General Public License *
- * as published by the Free Software Foundation;
- either version 2 *
- * of the License, or (at your option) any later version. *
- * *
- * 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., 51 Franklin Street, Fifth Floor, Boston, *
- * MA 02110-1301, USA. *
- * *
- * Contributors: *
- * - Trifon Trifonov (trifonnt@users.sourceforge.net) *
- * *
- * Sponsors: *
- * - Company (http://www.site.com) *
- **********************************************************************/
-package org.compiere.model;
-
-import java.math.BigDecimal;
-import java.sql.Timestamp;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Interface for M_Product
- * @author Trifon Trifonov (generated)
- * @version Release 3.4.0s
- */
-public interface I_M_Product
-{
-
- /** TableName=M_Product */
- public static final String Table_Name = "M_Product";
-
- /** AD_Table_ID=208 */
- 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 Classification */
- public static final String COLUMNNAME_Classification = "Classification";
-
- /** Set Classification.
- * Classification for grouping
- */
- public void setClassification (String Classification);
-
- /** Get Classification.
- * Classification for grouping
- */
- public String getClassification();
-
- /** Column name C_RevenueRecognition_ID */
- public static final String COLUMNNAME_C_RevenueRecognition_ID = "C_RevenueRecognition_ID";
-
- /** Set Revenue Recognition.
- * Method for recording revenue
- */
- public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID);
-
- /** Get Revenue Recognition.
- * Method for recording revenue
- */
- public int getC_RevenueRecognition_ID();
-
- public I_C_RevenueRecognition getC_RevenueRecognition() throws Exception;
-
- /** Column name C_SubscriptionType_ID */
- public static final String COLUMNNAME_C_SubscriptionType_ID = "C_SubscriptionType_ID";
-
- /** Set Subscription Type.
- * Type of subscription
- */
- public void setC_SubscriptionType_ID (int C_SubscriptionType_ID);
-
- /** Get Subscription Type.
- * Type of subscription
- */
- public int getC_SubscriptionType_ID();
-
- /** Column name C_TaxCategory_ID */
- public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID";
-
- /** Set Tax Category.
- * Tax Category
- */
- public void setC_TaxCategory_ID (int C_TaxCategory_ID);
-
- /** Get Tax Category.
- * Tax Category
- */
- public int getC_TaxCategory_ID();
-
- public I_C_TaxCategory getC_TaxCategory() throws Exception;
-
- /** 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 I_C_UOM getC_UOM() throws Exception;
-
- /** 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 DescriptionURL */
- public static final String COLUMNNAME_DescriptionURL = "DescriptionURL";
-
- /** Set Description URL.
- * URL for the description
- */
- public void setDescriptionURL (String DescriptionURL);
-
- /** Get Description URL.
- * URL for the description
- */
- public String getDescriptionURL();
-
- /** Column name Discontinued */
- public static final String COLUMNNAME_Discontinued = "Discontinued";
-
- /** Set Discontinued.
- * This product is no longer available
- */
- public void setDiscontinued (boolean Discontinued);
-
- /** Get Discontinued.
- * This product is no longer available
- */
- public boolean isDiscontinued();
-
- /** Column name DiscontinuedBy */
- public static final String COLUMNNAME_DiscontinuedBy = "DiscontinuedBy";
-
- /** Set Discontinued by.
- * Discontinued By
- */
- public void setDiscontinuedBy (Timestamp DiscontinuedBy);
-
- /** Get Discontinued by.
- * Discontinued By
- */
- public Timestamp getDiscontinuedBy();
-
- /** Column name DocumentNote */
- public static final String COLUMNNAME_DocumentNote = "DocumentNote";
-
- /** Set Document Note.
- * Additional information for a Document
- */
- public void setDocumentNote (String DocumentNote);
-
- /** Get Document Note.
- * Additional information for a Document
- */
- public String getDocumentNote();
-
- /** Column name Group1 */
- public static final String COLUMNNAME_Group1 = "Group1";
-
- /** Set Group1 */
- public void setGroup1 (String Group1);
-
- /** Get Group1 */
- public String getGroup1();
-
- /** Column name Group2 */
- public static final String COLUMNNAME_Group2 = "Group2";
-
- /** Set Group2 */
- public void setGroup2 (String Group2);
-
- /** Get Group2 */
- public String getGroup2();
-
- /** Column name GuaranteeDays */
- public static final String COLUMNNAME_GuaranteeDays = "GuaranteeDays";
-
- /** Set Guarantee Days.
- * Number of days the product is guaranteed or available
- */
- public void setGuaranteeDays (int GuaranteeDays);
-
- /** Get Guarantee Days.
- * Number of days the product is guaranteed or available
- */
- public int getGuaranteeDays();
-
- /** Column name GuaranteeDaysMin */
- public static final String COLUMNNAME_GuaranteeDaysMin = "GuaranteeDaysMin";
-
- /** Set Min Guarantee Days.
- * Minumum number of guarantee days
- */
- public void setGuaranteeDaysMin (int GuaranteeDaysMin);
-
- /** Get Min Guarantee Days.
- * Minumum number of guarantee days
- */
- public int getGuaranteeDaysMin();
-
- /** Column name Help */
- public static final String COLUMNNAME_Help = "Help";
-
- /** Set Comment/Help.
- * Comment or Hint
- */
- public void setHelp (String Help);
-
- /** Get Comment/Help.
- * Comment or Hint
- */
- public String getHelp();
-
- /** Column name ImageURL */
- public static final String COLUMNNAME_ImageURL = "ImageURL";
-
- /** Set Image URL.
- * URL of image
- */
- public void setImageURL (String ImageURL);
-
- /** Get Image URL.
- * URL of image
- */
- public String getImageURL();
-
- /** Column name IsBOM */
- public static final String COLUMNNAME_IsBOM = "IsBOM";
-
- /** Set Bill of Materials.
- * Bill of Materials
- */
- public void setIsBOM (boolean IsBOM);
-
- /** Get Bill of Materials.
- * Bill of Materials
- */
- public boolean isBOM();
-
- /** Column name IsDropShip */
- public static final String COLUMNNAME_IsDropShip = "IsDropShip";
-
- /** Set Drop Shipment.
- * Drop Shipments are sent from the Vendor directly to the Customer
- */
- public void setIsDropShip (boolean IsDropShip);
-
- /** Get Drop Shipment.
- * Drop Shipments are sent from the Vendor directly to the Customer
- */
- public boolean isDropShip();
-
- /** Column name IsExcludeAutoDelivery */
- public static final String COLUMNNAME_IsExcludeAutoDelivery = "IsExcludeAutoDelivery";
-
- /** Set Exclude Auto Delivery.
- * Exclude from automatic Delivery
- */
- public void setIsExcludeAutoDelivery (boolean IsExcludeAutoDelivery);
-
- /** Get Exclude Auto Delivery.
- * Exclude from automatic Delivery
- */
- public boolean isExcludeAutoDelivery();
-
- /** Column name IsInvoicePrintDetails */
- public static final String COLUMNNAME_IsInvoicePrintDetails = "IsInvoicePrintDetails";
-
- /** Set Print detail records on invoice .
- * Print detail BOM elements on the invoice
- */
- public void setIsInvoicePrintDetails (boolean IsInvoicePrintDetails);
-
- /** Get Print detail records on invoice .
- * Print detail BOM elements on the invoice
- */
- public boolean isInvoicePrintDetails();
-
- /** Column name IsPickListPrintDetails */
- public static final String COLUMNNAME_IsPickListPrintDetails = "IsPickListPrintDetails";
-
- /** Set Print detail records on pick list.
- * Print detail BOM elements on the pick list
- */
- public void setIsPickListPrintDetails (boolean IsPickListPrintDetails);
-
- /** Get Print detail records on pick list.
- * Print detail BOM elements on the pick list
- */
- public boolean isPickListPrintDetails();
-
- /** Column name IsPurchased */
- public static final String COLUMNNAME_IsPurchased = "IsPurchased";
-
- /** Set Purchased.
- * Organization purchases this product
- */
- public void setIsPurchased (boolean IsPurchased);
-
- /** Get Purchased.
- * Organization purchases this product
- */
- public boolean isPurchased();
-
- /** Column name IsSelfService */
- public static final String COLUMNNAME_IsSelfService = "IsSelfService";
-
- /** Set Self-Service.
- * This is a Self-Service entry or this entry can be changed via Self-Service
- */
- public void setIsSelfService (boolean IsSelfService);
-
- /** Get Self-Service.
- * This is a Self-Service entry or this entry can be changed via Self-Service
- */
- public boolean isSelfService();
-
- /** Column name IsSold */
- public static final String COLUMNNAME_IsSold = "IsSold";
-
- /** Set Sold.
- * Organization sells this product
- */
- public void setIsSold (boolean IsSold);
-
- /** Get Sold.
- * Organization sells this product
- */
- public boolean isSold();
-
- /** Column name IsStocked */
- public static final String COLUMNNAME_IsStocked = "IsStocked";
-
- /** Set Stocked.
- * Organization stocks this product
- */
- public void setIsStocked (boolean IsStocked);
-
- /** Get Stocked.
- * Organization stocks this product
- */
- public boolean isStocked();
-
- /** Column name IsSummary */
- public static final String COLUMNNAME_IsSummary = "IsSummary";
-
- /** Set Summary Level.
- * This is a summary entity
- */
- public void setIsSummary (boolean IsSummary);
-
- /** Get Summary Level.
- * This is a summary entity
- */
- public boolean isSummary();
-
- /** Column name IsVerified */
- public static final String COLUMNNAME_IsVerified = "IsVerified";
-
- /** Set Verified.
- * The BOM configuration has been verified
- */
- public void setIsVerified (boolean IsVerified);
-
- /** Get Verified.
- * The BOM configuration has been verified
- */
- public boolean isVerified();
-
- /** Column name IsWebStoreFeatured */
- public static final String COLUMNNAME_IsWebStoreFeatured = "IsWebStoreFeatured";
-
- /** Set Featured in Web Store.
- * If selected, the product is displayed in the inital or any empy search
- */
- public void setIsWebStoreFeatured (boolean IsWebStoreFeatured);
-
- /** Get Featured in Web Store.
- * If selected, the product is displayed in the inital or any empy search
- */
- public boolean isWebStoreFeatured();
-
- /** Column name M_AttributeSet_ID */
- public static final String COLUMNNAME_M_AttributeSet_ID = "M_AttributeSet_ID";
-
- /** Set Attribute Set.
- * Product Attribute Set
- */
- public void setM_AttributeSet_ID (int M_AttributeSet_ID);
-
- /** Get Attribute Set.
- * Product Attribute Set
- */
- public int getM_AttributeSet_ID();
-
- public I_M_AttributeSet getM_AttributeSet() throws Exception;
-
- /** Column name M_AttributeSetInstance_ID */
- public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID";
-
- /** Set Attribute Set Instance.
- * Product Attribute Set Instance
- */
- public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID);
-
- /** Get Attribute Set Instance.
- * Product Attribute Set Instance
- */
- public int getM_AttributeSetInstance_ID();
-
- /** Column name M_FreightCategory_ID */
- public static final String COLUMNNAME_M_FreightCategory_ID = "M_FreightCategory_ID";
-
- /** Set Freight Category.
- * Category of the Freight
- */
- public void setM_FreightCategory_ID (int M_FreightCategory_ID);
-
- /** Get Freight Category.
- * Category of the Freight
- */
- public int getM_FreightCategory_ID();
-
- public I_M_FreightCategory getM_FreightCategory() throws Exception;
-
- /** Column name M_Locator_ID */
- public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID";
-
- /** Set Locator.
- * Warehouse Locator
- */
- public void setM_Locator_ID (int M_Locator_ID);
-
- /** Get Locator.
- * Warehouse Locator
- */
- public int getM_Locator_ID();
-
- /** Column name M_Product_Category_ID */
- public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID";
-
- /** Set Product Category.
- * Category of a Product
- */
- public void setM_Product_Category_ID (int M_Product_Category_ID);
-
- /** Get Product Category.
- * Category of a Product
- */
- public int getM_Product_Category_ID();
-
- public I_M_Product_Category getM_Product_Category() throws Exception;
-
- /** 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();
-
- /** Column name Name */
- public static final String COLUMNNAME_Name = "Name";
-
- /** Set Name.
- * Alphanumeric identifier of the entity
- */
- public void setName (String Name);
-
- /** Get Name.
- * Alphanumeric identifier of the entity
- */
- public String getName();
-
- /** 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 ProductType */
- public static final String COLUMNNAME_ProductType = "ProductType";
-
- /** Set Product Type.
- * Type of product
- */
- public void setProductType (String ProductType);
-
- /** Get Product Type.
- * Type of product
- */
- public String getProductType();
-
- /** Column name R_MailText_ID */
- public static final String COLUMNNAME_R_MailText_ID = "R_MailText_ID";
-
- /** Set Mail Template.
- * Text templates for mailings
- */
- public void setR_MailText_ID (int R_MailText_ID);
-
- /** Get Mail Template.
- * Text templates for mailings
- */
- public int getR_MailText_ID();
-
- public I_R_MailText getR_MailText() throws Exception;
-
- /** Column name SalesRep_ID */
- public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID";
-
- /** Set Sales Representative.
- * Sales Representative or Company Agent
- */
- public void setSalesRep_ID (int SalesRep_ID);
-
- /** Get Sales Representative.
- * Sales Representative or Company Agent
- */
- public int getSalesRep_ID();
-
- /** Column name S_ExpenseType_ID */
- public static final String COLUMNNAME_S_ExpenseType_ID = "S_ExpenseType_ID";
-
- /** Set Expense Type.
- * Expense report type
- */
- public void setS_ExpenseType_ID (int S_ExpenseType_ID);
-
- /** Get Expense Type.
- * Expense report type
- */
- public int getS_ExpenseType_ID();
-
- public I_S_ExpenseType getS_ExpenseType() throws Exception;
-
- /** Column name ShelfDepth */
- public static final String COLUMNNAME_ShelfDepth = "ShelfDepth";
-
- /** Set Shelf Depth.
- * Shelf depth required
- */
- public void setShelfDepth (int ShelfDepth);
-
- /** Get Shelf Depth.
- * Shelf depth required
- */
- public int getShelfDepth();
-
- /** Column name ShelfHeight */
- public static final String COLUMNNAME_ShelfHeight = "ShelfHeight";
-
- /** Set Shelf Height.
- * Shelf height required
- */
- public void setShelfHeight (int ShelfHeight);
-
- /** Get Shelf Height.
- * Shelf height required
- */
- public int getShelfHeight();
-
- /** Column name ShelfWidth */
- public static final String COLUMNNAME_ShelfWidth = "ShelfWidth";
-
- /** Set Shelf Width.
- * Shelf width required
- */
- public void setShelfWidth (int ShelfWidth);
-
- /** Get Shelf Width.
- * Shelf width required
- */
- public int getShelfWidth();
-
- /** Column name SKU */
- public static final String COLUMNNAME_SKU = "SKU";
-
- /** Set SKU.
- * Stock Keeping Unit
- */
- public void setSKU (String SKU);
-
- /** Get SKU.
- * Stock Keeping Unit
- */
- public String getSKU();
-
- /** Column name S_Resource_ID */
- public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID";
-
- /** Set Resource.
- * Resource
- */
- public void setS_Resource_ID (int S_Resource_ID);
-
- /** Get Resource.
- * Resource
- */
- public int getS_Resource_ID();
-
- public I_S_Resource getS_Resource() throws Exception;
-
- /** Column name UnitsPerPack */
- public static final String COLUMNNAME_UnitsPerPack = "UnitsPerPack";
-
- /** Set UnitsPerPack.
- * The Units Per Pack indicates the no of units of a product packed together.
- */
- public void setUnitsPerPack (int UnitsPerPack);
-
- /** Get UnitsPerPack.
- * The Units Per Pack indicates the no of units of a product packed together.
- */
- public int getUnitsPerPack();
-
- /** Column name UnitsPerPallet */
- public static final String COLUMNNAME_UnitsPerPallet = "UnitsPerPallet";
-
- /** Set Units Per Pallet.
- * Units Per Pallet
- */
- public void setUnitsPerPallet (int UnitsPerPallet);
-
- /** Get Units Per Pallet.
- * Units Per Pallet
- */
- public int getUnitsPerPallet();
-
- /** Column name UPC */
- public static final String COLUMNNAME_UPC = "UPC";
-
- /** Set UPC/EAN.
- * Bar Code (Universal Product Code or its superset European Article Number)
- */
- public void setUPC (String UPC);
-
- /** Get UPC/EAN.
- * Bar Code (Universal Product Code or its superset European Article Number)
- */
- public String getUPC();
-
- /** Column name Value */
- public static final String COLUMNNAME_Value = "Value";
-
- /** Set Search Key.
- * Search key for the record in the format required - must be unique
- */
- public void setValue (String Value);
-
- /** Get Search Key.
- * Search key for the record in the format required - must be unique
- */
- public String getValue();
-
- /** Column name VersionNo */
- public static final String COLUMNNAME_VersionNo = "VersionNo";
-
- /** Set Version No.
- * Version Number
- */
- public void setVersionNo (String VersionNo);
-
- /** Get Version No.
- * Version Number
- */
- public String getVersionNo();
-
- /** Column name Volume */
- public static final String COLUMNNAME_Volume = "Volume";
-
- /** Set Volume.
- * Volume of a product
- */
- public void setVolume (BigDecimal Volume);
-
- /** Get Volume.
- * Volume of a product
- */
- public BigDecimal getVolume();
-
- /** Column name Weight */
- public static final String COLUMNNAME_Weight = "Weight";
-
- /** Set Weight.
- * Weight of a product
- */
- public void setWeight (BigDecimal Weight);
-
- /** Get Weight.
- * Weight of a product
- */
- public BigDecimal getWeight();
-}
diff --git a/posterita/posterita/src/main/org/compiere/model/I_U_POSTerminal.java b/posterita/posterita/src/main/org/compiere/model/I_U_POSTerminal.java
deleted file mode 100644
index 1e3fb600b1..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/I_U_POSTerminal.java
+++ /dev/null
@@ -1,411 +0,0 @@
-/**********************************************************************
- * This file is part of Adempiere ERP Bazaar *
- * http://www.adempiere.org *
- * *
- * Copyright (C) Trifon Trifonov. *
- * Copyright (C) Contributors *
- * *
- * This program is free software;
- you can redistribute it and/or *
- * modify it under the terms of the GNU General Public License *
- * as published by the Free Software Foundation;
- either version 2 *
- * of the License, or (at your option) any later version. *
- * *
- * 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., 51 Franklin Street, Fifth Floor, Boston, *
- * MA 02110-1301, USA. *
- * *
- * Contributors: *
- * - Trifon Trifonov (trifonnt@users.sourceforge.net) *
- * *
- * Sponsors: *
- * - Company (http://www.site.com) *
- **********************************************************************/
-package org.compiere.model;
-
-import java.math.BigDecimal;
-import java.sql.Timestamp;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Interface for U_POSTerminal
- * @author Trifon Trifonov (generated)
- * @version Release 3.4.0s
- */
-public interface I_U_POSTerminal
-{
-
- /** TableName=U_POSTerminal */
- public static final String Table_Name = "U_POSTerminal";
-
- /** AD_Table_ID=52004 */
- public static final int Table_ID = MTable.getTable_ID(Table_Name);
-
- KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
-
- /** AccessLevel = 1 - Org
- */
- BigDecimal accessLevel = BigDecimal.valueOf(1);
-
- /** Load Meta Data */
-
- /** Column name AutoLock */
- public static final String COLUMNNAME_AutoLock = "AutoLock";
-
- /** Set Auto Lock.
- * Whether to automatically lock the terminal when till is closed
- */
- public void setAutoLock (boolean AutoLock);
-
- /** Get Auto Lock.
- * Whether to automatically lock the terminal when till is closed
- */
- public boolean isAutoLock();
-
- /** Column name Card_BankAccount_ID */
- public static final String COLUMNNAME_Card_BankAccount_ID = "Card_BankAccount_ID";
-
- /** Set Card Bank Account.
- * Bank Account on which card transactions will be processed
- */
- public void setCard_BankAccount_ID (int Card_BankAccount_ID);
-
- /** Get Card Bank Account.
- * Bank Account on which card transactions will be processed
- */
- public int getCard_BankAccount_ID();
-
- /** Column name CardTransferBankAccount_ID */
- public static final String COLUMNNAME_CardTransferBankAccount_ID = "CardTransferBankAccount_ID";
-
- /** Set Transfer Card trx to.
- * Bank account on which to transfer Card transactions
- */
- public void setCardTransferBankAccount_ID (int CardTransferBankAccount_ID);
-
- /** Get Transfer Card trx to.
- * Bank account on which to transfer Card transactions
- */
- public int getCardTransferBankAccount_ID();
-
- /** Column name CardTransferCashBook_ID */
- public static final String COLUMNNAME_CardTransferCashBook_ID = "CardTransferCashBook_ID";
-
- /** Set Transfer Card trx to.
- * Cash Book on which to transfer all Card transactions
- */
- public void setCardTransferCashBook_ID (int CardTransferCashBook_ID);
-
- /** Get Transfer Card trx to.
- * Cash Book on which to transfer all Card transactions
- */
- public int getCardTransferCashBook_ID();
-
- /** Column name CardTransferType */
- public static final String COLUMNNAME_CardTransferType = "CardTransferType";
-
- /** Set Card Transfer Type */
- public void setCardTransferType (String CardTransferType);
-
- /** Get Card Transfer Type */
- public String getCardTransferType();
-
- /** Column name CashBookTransferType */
- public static final String COLUMNNAME_CashBookTransferType = "CashBookTransferType";
-
- /** Set Cash Book Transfer Type.
- * Where the money in the cash book should be transfered to. Either a Bank Account or another Cash Book
- */
- public void setCashBookTransferType (String CashBookTransferType);
-
- /** Get Cash Book Transfer Type.
- * Where the money in the cash book should be transfered to. Either a Bank Account or another Cash Book
- */
- public String getCashBookTransferType();
-
- /** Column name CashTransferBankAccount_ID */
- public static final String COLUMNNAME_CashTransferBankAccount_ID = "CashTransferBankAccount_ID";
-
- /** Set Transfer Cash trx to.
- * Bank Account on which to transfer all Cash transactions
- */
- public void setCashTransferBankAccount_ID (int CashTransferBankAccount_ID);
-
- /** Get Transfer Cash trx to.
- * Bank Account on which to transfer all Cash transactions
- */
- public int getCashTransferBankAccount_ID();
-
- /** Column name CashTransferCashBook_ID */
- public static final String COLUMNNAME_CashTransferCashBook_ID = "CashTransferCashBook_ID";
-
- /** Set Transfer Cash trx to.
- * Cash Book on which to transfer all Cash transactions
- */
- public void setCashTransferCashBook_ID (int CashTransferCashBook_ID);
-
- /** Get Transfer Cash trx to.
- * Cash Book on which to transfer all Cash transactions
- */
- public int getCashTransferCashBook_ID();
-
- /** Column name C_CashBook_ID */
- public static final String COLUMNNAME_C_CashBook_ID = "C_CashBook_ID";
-
- /** Set Cash Book.
- * Cash Book for recording petty cash transactions
- */
- public void setC_CashBook_ID (int C_CashBook_ID);
-
- /** Get Cash Book.
- * Cash Book for recording petty cash transactions
- */
- public int getC_CashBook_ID();
-
- public I_C_CashBook getC_CashBook() throws Exception;
-
- /** Column name C_CashBPartner_ID */
- public static final String COLUMNNAME_C_CashBPartner_ID = "C_CashBPartner_ID";
-
- /** Set Cash BPartner.
- * BPartner to be used for Cash transactions
- */
- public void setC_CashBPartner_ID (int C_CashBPartner_ID);
-
- /** Get Cash BPartner.
- * BPartner to be used for Cash transactions
- */
- public int getC_CashBPartner_ID();
-
- /** Column name Check_BankAccount_ID */
- public static final String COLUMNNAME_Check_BankAccount_ID = "Check_BankAccount_ID";
-
- /** Set Check Bank Account.
- * Bank Account to be used for processing Check transactions
- */
- public void setCheck_BankAccount_ID (int Check_BankAccount_ID);
-
- /** Get Check Bank Account.
- * Bank Account to be used for processing Check transactions
- */
- public int getCheck_BankAccount_ID();
-
- /** Column name CheckTransferBankAccount_ID */
- public static final String COLUMNNAME_CheckTransferBankAccount_ID = "CheckTransferBankAccount_ID";
-
- /** Set Tranfer Check trx to.
- * Bank account on which to transfer Check transactions
- */
- public void setCheckTransferBankAccount_ID (int CheckTransferBankAccount_ID);
-
- /** Get Tranfer Check trx to.
- * Bank account on which to transfer Check transactions
- */
- public int getCheckTransferBankAccount_ID();
-
- /** Column name CheckTransferCashBook_ID */
- public static final String COLUMNNAME_CheckTransferCashBook_ID = "CheckTransferCashBook_ID";
-
- /** Set Transfer Check trx to.
- * Cash Book on which to transfer all Check transactions
- */
- public void setCheckTransferCashBook_ID (int CheckTransferCashBook_ID);
-
- /** Get Transfer Check trx to.
- * Cash Book on which to transfer all Check transactions
- */
- public int getCheckTransferCashBook_ID();
-
- /** Column name CheckTransferType */
- public static final String COLUMNNAME_CheckTransferType = "CheckTransferType";
-
- /** Set Check Transfer Type */
- public void setCheckTransferType (String CheckTransferType);
-
- /** Get Check Transfer Type */
- public String getCheckTransferType();
-
- /** Column name C_TemplateBPartner_ID */
- public static final String COLUMNNAME_C_TemplateBPartner_ID = "C_TemplateBPartner_ID";
-
- /** Set Template BPartner.
- * BPartner that is to be used as template when new customers are created
- */
- public void setC_TemplateBPartner_ID (int C_TemplateBPartner_ID);
-
- /** Get Template BPartner.
- * BPartner that is to be used as template when new customers are created
- */
- public int getC_TemplateBPartner_ID();
-
- /** 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 Help */
- public static final String COLUMNNAME_Help = "Help";
-
- /** Set Comment/Help.
- * Comment or Hint
- */
- public void setHelp (String Help);
-
- /** Get Comment/Help.
- * Comment or Hint
- */
- public String getHelp();
-
- /** Column name LastLockTime */
- public static final String COLUMNNAME_LastLockTime = "LastLockTime";
-
- /** Set Last Lock Time.
- * Last time at which the terminal was locked
- */
- public void setLastLockTime (Timestamp LastLockTime);
-
- /** Get Last Lock Time.
- * Last time at which the terminal was locked
- */
- public Timestamp getLastLockTime();
-
- /** Column name Locked */
- public static final String COLUMNNAME_Locked = "Locked";
-
- /** Set Locked.
- * Whether the terminal is locked
- */
- public void setLocked (boolean Locked);
-
- /** Get Locked.
- * Whether the terminal is locked
- */
- public boolean isLocked();
-
- /** Column name LockTime */
- public static final String COLUMNNAME_LockTime = "LockTime";
-
- /** Set Lock Time.
- * Time in minutes the terminal should be kept in a locked state.
- */
- public void setLockTime (int LockTime);
-
- /** Get Lock Time.
- * Time in minutes the terminal should be kept in a locked state.
- */
- public int getLockTime();
-
- /** 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 I_M_Warehouse getM_Warehouse() throws Exception;
-
- /** Column name Name */
- public static final String COLUMNNAME_Name = "Name";
-
- /** Set Name.
- * Alphanumeric identifier of the entity
- */
- public void setName (String Name);
-
- /** Get Name.
- * Alphanumeric identifier of the entity
- */
- public String getName();
-
- /** Column name PO_PriceList_ID */
- public static final String COLUMNNAME_PO_PriceList_ID = "PO_PriceList_ID";
-
- /** Set Purchase Pricelist.
- * Price List used by this Business Partner
- */
- public void setPO_PriceList_ID (int PO_PriceList_ID);
-
- /** Get Purchase Pricelist.
- * Price List used by this Business Partner
- */
- public int getPO_PriceList_ID();
-
- /** Column name PrinterName */
- public static final String COLUMNNAME_PrinterName = "PrinterName";
-
- /** Set Printer Name.
- * Name of the Printer
- */
- public void setPrinterName (String PrinterName);
-
- /** Get Printer Name.
- * Name of the Printer
- */
- public String getPrinterName();
-
- /** Column name SalesRep_ID */
- public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID";
-
- /** Set Sales Representative.
- * Sales Representative or Company Agent
- */
- public void setSalesRep_ID (int SalesRep_ID);
-
- /** Get Sales Representative.
- * Sales Representative or Company Agent
- */
- public int getSalesRep_ID();
-
- /** Column name SO_PriceList_ID */
- public static final String COLUMNNAME_SO_PriceList_ID = "SO_PriceList_ID";
-
- /** Set Sales Pricelist */
- public void setSO_PriceList_ID (int SO_PriceList_ID);
-
- /** Get Sales Pricelist */
- public int getSO_PriceList_ID();
-
- /** Column name UnlockingTime */
- public static final String COLUMNNAME_UnlockingTime = "UnlockingTime";
-
- /** Set UnlockingTime.
- * Time at which the terminal should be unlocked
- */
- public void setUnlockingTime (Timestamp UnlockingTime);
-
- /** Get UnlockingTime.
- * Time at which the terminal should be unlocked
- */
- public Timestamp getUnlockingTime();
-
- /** Column name U_POSTerminal_ID */
- public static final String COLUMNNAME_U_POSTerminal_ID = "U_POSTerminal_ID";
-
- /** Set POS Terminal */
- public void setU_POSTerminal_ID (int U_POSTerminal_ID);
-
- /** Get POS Terminal */
- public int getU_POSTerminal_ID();
-}
diff --git a/posterita/posterita/src/main/org/compiere/model/X_AD_OrgInfo.java b/posterita/posterita/src/main/org/compiere/model/X_AD_OrgInfo.java
deleted file mode 100644
index d90eaae83f..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/X_AD_OrgInfo.java
+++ /dev/null
@@ -1,384 +0,0 @@
-/******************************************************************************
- * Product: Adempiere ERP & CRM Smart Business Solution *
- * Copyright (C) 1999-2007 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 org.compiere.model;
-
-import java.lang.reflect.Constructor;
-import java.sql.ResultSet;
-import java.util.Properties;
-import java.util.logging.Level;
-
-/** Generated Model for AD_OrgInfo
- * @author Adempiere (generated)
- * @version Release 3.4.0s - $Id$ */
-public class X_AD_OrgInfo extends PO implements I_AD_OrgInfo, I_Persistent
-{
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /** Standard Constructor */
- public X_AD_OrgInfo (Properties ctx, int AD_OrgInfo_ID, String trxName)
- {
- super (ctx, AD_OrgInfo_ID, trxName);
- /** if (AD_OrgInfo_ID == 0)
- {
- setDUNS (null);
- setTaxID (null);
- } */
- }
-
- /** Load Constructor */
- public X_AD_OrgInfo (Properties ctx, ResultSet rs, String trxName)
- {
- super (ctx, rs, trxName);
- }
-
- /** AccessLevel
- * @return 7 - System - 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_AD_OrgInfo[")
- .append(get_ID()).append("]");
- return sb.toString();
- }
-
- public I_AD_OrgType getAD_OrgType() throws Exception
- {
- Class> clazz = MTable.getClass(I_AD_OrgType.Table_Name);
- I_AD_OrgType result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_AD_OrgType)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_OrgType_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Organization Type.
- @param AD_OrgType_ID
- Organization Type allows you to categorize your organizations
- */
- public void setAD_OrgType_ID (int AD_OrgType_ID)
- {
- if (AD_OrgType_ID < 1)
- set_Value (COLUMNNAME_AD_OrgType_ID, null);
- else
- set_Value (COLUMNNAME_AD_OrgType_ID, Integer.valueOf(AD_OrgType_ID));
- }
-
- /** Get Organization Type.
- @return Organization Type allows you to categorize your organizations
- */
- public int getAD_OrgType_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgType_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Address.
- @param C_Location_ID
- Location or Address
- */
- public void setC_Location_ID (int C_Location_ID)
- {
- if (C_Location_ID < 1)
- set_Value (COLUMNNAME_C_Location_ID, null);
- else
- set_Value (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID));
- }
-
- /** Get Address.
- @return Location or Address
- */
- public int getC_Location_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Location_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set D-U-N-S.
- @param DUNS
- Dun & Bradstreet Number
- */
- public void setDUNS (String DUNS)
- {
- if (DUNS == null)
- throw new IllegalArgumentException ("DUNS is mandatory.");
-
- if (DUNS.length() > 11)
- {
- log.warning("Length > 11 - truncated");
- DUNS = DUNS.substring(0, 11);
- }
- set_Value (COLUMNNAME_DUNS, DUNS);
- }
-
- /** Get D-U-N-S.
- @return Dun & Bradstreet Number
- */
- public String getDUNS ()
- {
- return (String)get_Value(COLUMNNAME_DUNS);
- }
-
- public I_M_Warehouse getM_Warehouse() throws Exception
- {
- Class> clazz = MTable.getClass(I_M_Warehouse.Table_Name);
- I_M_Warehouse result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** 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_Value (COLUMNNAME_M_Warehouse_ID, null);
- else
- set_Value (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 I_PA_Goal getPA_Goal() throws Exception
- {
- Class> clazz = MTable.getClass(I_PA_Goal.Table_Name);
- I_PA_Goal result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_PA_Goal)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_Goal_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Goal.
- @param PA_Goal_ID
- Performance Goal
- */
- public void setPA_Goal_ID (int PA_Goal_ID)
- {
- if (PA_Goal_ID < 1)
- set_Value (COLUMNNAME_PA_Goal_ID, null);
- else
- set_Value (COLUMNNAME_PA_Goal_ID, Integer.valueOf(PA_Goal_ID));
- }
-
- /** Get Goal.
- @return Performance Goal
- */
- public int getPA_Goal_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_PA_Goal_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Parent_Org_ID AD_Reference_ID=130 */
- public static final int PARENT_ORG_ID_AD_Reference_ID=130;
- /** Set Parent Organization.
- @param Parent_Org_ID
- Parent (superior) Organization
- */
- public void setParent_Org_ID (int Parent_Org_ID)
- {
- if (Parent_Org_ID < 1)
- set_Value (COLUMNNAME_Parent_Org_ID, null);
- else
- set_Value (COLUMNNAME_Parent_Org_ID, Integer.valueOf(Parent_Org_ID));
- }
-
- /** Get Parent Organization.
- @return Parent (superior) Organization
- */
- public int getParent_Org_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_Parent_Org_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Receipt Footer Msg.
- @param ReceiptFooterMsg
- This message will be displayed at the bottom of a receipt when doing a sales or purchase
- */
- public void setReceiptFooterMsg (String ReceiptFooterMsg)
- {
-
- if (ReceiptFooterMsg != null && ReceiptFooterMsg.length() > 1023)
- {
- log.warning("Length > 1023 - truncated");
- ReceiptFooterMsg = ReceiptFooterMsg.substring(0, 1023);
- }
- set_Value (COLUMNNAME_ReceiptFooterMsg, ReceiptFooterMsg);
- }
-
- /** Get Receipt Footer Msg.
- @return This message will be displayed at the bottom of a receipt when doing a sales or purchase
- */
- public String getReceiptFooterMsg ()
- {
- return (String)get_Value(COLUMNNAME_ReceiptFooterMsg);
- }
-
- /** Supervisor_ID AD_Reference_ID=286 */
- public static final int SUPERVISOR_ID_AD_Reference_ID=286;
- /** Set Supervisor.
- @param Supervisor_ID
- Supervisor for this user/organization - used for escalation and approval
- */
- public void setSupervisor_ID (int Supervisor_ID)
- {
- if (Supervisor_ID < 1)
- set_Value (COLUMNNAME_Supervisor_ID, null);
- else
- set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID));
- }
-
- /** Get Supervisor.
- @return Supervisor for this user/organization - used for escalation and approval
- */
- public int getSupervisor_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_Supervisor_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Tax ID.
- @param TaxID
- Tax Identification
- */
- public void setTaxID (String TaxID)
- {
- if (TaxID == null)
- throw new IllegalArgumentException ("TaxID is mandatory.");
-
- if (TaxID.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- TaxID = TaxID.substring(0, 20);
- }
- set_Value (COLUMNNAME_TaxID, TaxID);
- }
-
- /** Get Tax ID.
- @return Tax Identification
- */
- public String getTaxID ()
- {
- return (String)get_Value(COLUMNNAME_TaxID);
- }
-
- /** TransferBank_ID AD_Reference_ID=52001 */
- public static final int TRANSFERBANK_ID_AD_Reference_ID=52001;
- /** Set Bank for transfers.
- @param TransferBank_ID
- Bank account depending on currency will be used from this bank for doing transfers
- */
- public void setTransferBank_ID (int TransferBank_ID)
- {
- if (TransferBank_ID < 1)
- set_Value (COLUMNNAME_TransferBank_ID, null);
- else
- set_Value (COLUMNNAME_TransferBank_ID, Integer.valueOf(TransferBank_ID));
- }
-
- /** Get Bank for transfers.
- @return Bank account depending on currency will be used from this bank for doing transfers
- */
- public int getTransferBank_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_TransferBank_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** TransferCashBook_ID AD_Reference_ID=52004 */
- public static final int TRANSFERCASHBOOK_ID_AD_Reference_ID=52004;
- /** Set CashBook for transfers.
- @param TransferCashBook_ID CashBook for transfers */
- public void setTransferCashBook_ID (int TransferCashBook_ID)
- {
- if (TransferCashBook_ID < 1)
- set_Value (COLUMNNAME_TransferCashBook_ID, null);
- else
- set_Value (COLUMNNAME_TransferCashBook_ID, Integer.valueOf(TransferCashBook_ID));
- }
-
- /** Get CashBook for transfers.
- @return CashBook for transfers */
- public int getTransferCashBook_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_TransferCashBook_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-}
\ No newline at end of file
diff --git a/posterita/posterita/src/main/org/compiere/model/X_AD_Role.java b/posterita/posterita/src/main/org/compiere/model/X_AD_Role.java
deleted file mode 100644
index 221b025e78..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/X_AD_Role.java
+++ /dev/null
@@ -1,1015 +0,0 @@
-/******************************************************************************
- * Product: Adempiere ERP & CRM Smart Business Solution *
- * Copyright (C) 1999-2007 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 org.compiere.model;
-
-import java.lang.reflect.Constructor;
-import java.math.BigDecimal;
-import java.sql.ResultSet;
-import java.util.Properties;
-import java.util.logging.Level;
-import org.compiere.util.Env;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Model for AD_Role
- * @author Adempiere (generated)
- * @version Release 3.4.0s - $Id$ */
-public class X_AD_Role extends PO implements I_AD_Role, I_Persistent
-{
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /** Standard Constructor */
- public X_AD_Role (Properties ctx, int AD_Role_ID, String trxName)
- {
- super (ctx, AD_Role_ID, trxName);
- /** if (AD_Role_ID == 0)
- {
- setAD_Role_ID (0);
- setConfirmQueryRecords (0);
-// 0
- setIsAccessAllOrgs (false);
-// N
- setIsCanApproveOwnDoc (false);
- setIsCanExport (true);
-// Y
- setIsCanReport (true);
-// Y
- setIsChangeLog (false);
-// N
- setIsDiscountAllowedOnTotal (false);
- setIsDiscountUptoLimitPrice (false);
- setIsManual (false);
- setIsPersonalAccess (false);
-// N
- setIsPersonalLock (false);
-// N
- setIsShowAcct (false);
-// N
- setIsUseUserOrgAccess (false);
-// N
- setMaxQueryRecords (0);
-// 0
- setName (null);
- setOverwritePriceLimit (false);
-// N
- setPreferenceType (null);
-// O
- setUserLevel (null);
-// O
- } */
- }
-
- /** Load Constructor */
- public X_AD_Role (Properties ctx, ResultSet rs, String trxName)
- {
- super (ctx, rs, trxName);
- }
-
- /** AccessLevel
- * @return 6 - System - Client
- */
- 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_AD_Role[")
- .append(get_ID()).append("]");
- return sb.toString();
- }
-
- /** Set Role.
- @param AD_Role_ID
- Responsibility Role
- */
- public void setAD_Role_ID (int AD_Role_ID)
- {
- if (AD_Role_ID < 0)
- throw new IllegalArgumentException ("AD_Role_ID is mandatory.");
- set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID));
- }
-
- /** Get Role.
- @return Responsibility Role
- */
- public int getAD_Role_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** AD_Tree_Menu_ID AD_Reference_ID=184 */
- public static final int AD_TREE_MENU_ID_AD_Reference_ID=184;
- /** Set Menu Tree.
- @param AD_Tree_Menu_ID
- Tree of the menu
- */
- public void setAD_Tree_Menu_ID (int AD_Tree_Menu_ID)
- {
- if (AD_Tree_Menu_ID < 1)
- set_Value (COLUMNNAME_AD_Tree_Menu_ID, null);
- else
- set_Value (COLUMNNAME_AD_Tree_Menu_ID, Integer.valueOf(AD_Tree_Menu_ID));
- }
-
- /** Get Menu Tree.
- @return Tree of the menu
- */
- public int getAD_Tree_Menu_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Menu_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** AD_Tree_Org_ID AD_Reference_ID=184 */
- public static final int AD_TREE_ORG_ID_AD_Reference_ID=184;
- /** Set Organization Tree.
- @param AD_Tree_Org_ID
- Tree to determine organizational hierarchy
- */
- public void setAD_Tree_Org_ID (int AD_Tree_Org_ID)
- {
- if (AD_Tree_Org_ID < 1)
- set_Value (COLUMNNAME_AD_Tree_Org_ID, null);
- else
- set_Value (COLUMNNAME_AD_Tree_Org_ID, Integer.valueOf(AD_Tree_Org_ID));
- }
-
- /** Get Organization Tree.
- @return Tree to determine organizational hierarchy
- */
- public int getAD_Tree_Org_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Org_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Allow Info Account.
- @param Allow_Info_Account Allow Info Account */
- public void setAllow_Info_Account (boolean Allow_Info_Account)
- {
- set_Value (COLUMNNAME_Allow_Info_Account, Boolean.valueOf(Allow_Info_Account));
- }
-
- /** Get Allow Info Account.
- @return Allow Info Account */
- public boolean isAllow_Info_Account ()
- {
- Object oo = get_Value(COLUMNNAME_Allow_Info_Account);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Allow Info Asset.
- @param Allow_Info_Asset Allow Info Asset */
- public void setAllow_Info_Asset (boolean Allow_Info_Asset)
- {
- set_Value (COLUMNNAME_Allow_Info_Asset, Boolean.valueOf(Allow_Info_Asset));
- }
-
- /** Get Allow Info Asset.
- @return Allow Info Asset */
- public boolean isAllow_Info_Asset ()
- {
- Object oo = get_Value(COLUMNNAME_Allow_Info_Asset);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Allow Info BPartner.
- @param Allow_Info_BPartner Allow Info BPartner */
- public void setAllow_Info_BPartner (boolean Allow_Info_BPartner)
- {
- set_Value (COLUMNNAME_Allow_Info_BPartner, Boolean.valueOf(Allow_Info_BPartner));
- }
-
- /** Get Allow Info BPartner.
- @return Allow Info BPartner */
- public boolean isAllow_Info_BPartner ()
- {
- Object oo = get_Value(COLUMNNAME_Allow_Info_BPartner);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Allow Info CashJournal.
- @param Allow_Info_CashJournal Allow Info CashJournal */
- public void setAllow_Info_CashJournal (boolean Allow_Info_CashJournal)
- {
- set_Value (COLUMNNAME_Allow_Info_CashJournal, Boolean.valueOf(Allow_Info_CashJournal));
- }
-
- /** Get Allow Info CashJournal.
- @return Allow Info CashJournal */
- public boolean isAllow_Info_CashJournal ()
- {
- Object oo = get_Value(COLUMNNAME_Allow_Info_CashJournal);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Allow Info InOut.
- @param Allow_Info_InOut Allow Info InOut */
- public void setAllow_Info_InOut (boolean Allow_Info_InOut)
- {
- set_Value (COLUMNNAME_Allow_Info_InOut, Boolean.valueOf(Allow_Info_InOut));
- }
-
- /** Get Allow Info InOut.
- @return Allow Info InOut */
- public boolean isAllow_Info_InOut ()
- {
- Object oo = get_Value(COLUMNNAME_Allow_Info_InOut);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Allow Info Invoice.
- @param Allow_Info_Invoice Allow Info Invoice */
- public void setAllow_Info_Invoice (boolean Allow_Info_Invoice)
- {
- set_Value (COLUMNNAME_Allow_Info_Invoice, Boolean.valueOf(Allow_Info_Invoice));
- }
-
- /** Get Allow Info Invoice.
- @return Allow Info Invoice */
- public boolean isAllow_Info_Invoice ()
- {
- Object oo = get_Value(COLUMNNAME_Allow_Info_Invoice);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Allow Info Order.
- @param Allow_Info_Order Allow Info Order */
- public void setAllow_Info_Order (boolean Allow_Info_Order)
- {
- set_Value (COLUMNNAME_Allow_Info_Order, Boolean.valueOf(Allow_Info_Order));
- }
-
- /** Get Allow Info Order.
- @return Allow Info Order */
- public boolean isAllow_Info_Order ()
- {
- Object oo = get_Value(COLUMNNAME_Allow_Info_Order);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Allow Info Payment.
- @param Allow_Info_Payment Allow Info Payment */
- public void setAllow_Info_Payment (boolean Allow_Info_Payment)
- {
- set_Value (COLUMNNAME_Allow_Info_Payment, Boolean.valueOf(Allow_Info_Payment));
- }
-
- /** Get Allow Info Payment.
- @return Allow Info Payment */
- public boolean isAllow_Info_Payment ()
- {
- Object oo = get_Value(COLUMNNAME_Allow_Info_Payment);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Allow Info Product.
- @param Allow_Info_Product Allow Info Product */
- public void setAllow_Info_Product (boolean Allow_Info_Product)
- {
- set_Value (COLUMNNAME_Allow_Info_Product, Boolean.valueOf(Allow_Info_Product));
- }
-
- /** Get Allow Info Product.
- @return Allow Info Product */
- public boolean isAllow_Info_Product ()
- {
- Object oo = get_Value(COLUMNNAME_Allow_Info_Product);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Allow Info Resource.
- @param Allow_Info_Resource Allow Info Resource */
- public void setAllow_Info_Resource (boolean Allow_Info_Resource)
- {
- set_Value (COLUMNNAME_Allow_Info_Resource, Boolean.valueOf(Allow_Info_Resource));
- }
-
- /** Get Allow Info Resource.
- @return Allow Info Resource */
- public boolean isAllow_Info_Resource ()
- {
- Object oo = get_Value(COLUMNNAME_Allow_Info_Resource);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Allow Info Schedule.
- @param Allow_Info_Schedule Allow Info Schedule */
- public void setAllow_Info_Schedule (boolean Allow_Info_Schedule)
- {
- set_Value (COLUMNNAME_Allow_Info_Schedule, Boolean.valueOf(Allow_Info_Schedule));
- }
-
- /** Get Allow Info Schedule.
- @return Allow Info Schedule */
- public boolean isAllow_Info_Schedule ()
- {
- Object oo = get_Value(COLUMNNAME_Allow_Info_Schedule);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Approval Amount.
- @param AmtApproval
- The approval amount limit for this role
- */
- public void setAmtApproval (BigDecimal AmtApproval)
- {
- set_Value (COLUMNNAME_AmtApproval, AmtApproval);
- }
-
- /** Get Approval Amount.
- @return The approval amount limit for this role
- */
- public BigDecimal getAmtApproval ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtApproval);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- public I_C_Currency getC_Currency() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Currency.Table_Name);
- I_C_Currency result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Currency.
- @param C_Currency_ID
- The Currency for this record
- */
- public void setC_Currency_ID (int C_Currency_ID)
- {
- if (C_Currency_ID < 1)
- set_Value (COLUMNNAME_C_Currency_ID, null);
- else
- set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID));
- }
-
- /** Get Currency.
- @return The Currency for this record
- */
- public int getC_Currency_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Confirm Query Records.
- @param ConfirmQueryRecords
- Require Confirmation if more records will be returned by the query (If not defined 500)
- */
- public void setConfirmQueryRecords (int ConfirmQueryRecords)
- {
- set_Value (COLUMNNAME_ConfirmQueryRecords, Integer.valueOf(ConfirmQueryRecords));
- }
-
- /** Get Confirm Query Records.
- @return Require Confirmation if more records will be returned by the query (If not defined 500)
- */
- public int getConfirmQueryRecords ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_ConfirmQueryRecords);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** ConnectionProfile AD_Reference_ID=364 */
- public static final int CONNECTIONPROFILE_AD_Reference_ID=364;
- /** LAN = L */
- public static final String CONNECTIONPROFILE_LAN = "L";
- /** Terminal Server = T */
- public static final String CONNECTIONPROFILE_TerminalServer = "T";
- /** VPN = V */
- public static final String CONNECTIONPROFILE_VPN = "V";
- /** WAN = W */
- public static final String CONNECTIONPROFILE_WAN = "W";
- /** Set Connection Profile.
- @param ConnectionProfile
- How a Java Client connects to the server(s)
- */
- public void setConnectionProfile (String ConnectionProfile)
- {
-
- if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProfile.equals("T") || ConnectionProfile.equals("V") || ConnectionProfile.equals("W")); else throw new IllegalArgumentException ("ConnectionProfile Invalid value - " + ConnectionProfile + " - Reference_ID=364 - L - T - V - W");
- if (ConnectionProfile != null && ConnectionProfile.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- ConnectionProfile = ConnectionProfile.substring(0, 1);
- }
- set_Value (COLUMNNAME_ConnectionProfile, ConnectionProfile);
- }
-
- /** Get Connection Profile.
- @return How a Java Client connects to the server(s)
- */
- public String getConnectionProfile ()
- {
- return (String)get_Value(COLUMNNAME_ConnectionProfile);
- }
-
- /** Set Description.
- @param Description
- Optional short description of the record
- */
- public void setDescription (String Description)
- {
-
- if (Description != null && Description.length() > 255)
- {
- log.warning("Length > 255 - truncated");
- Description = Description.substring(0, 255);
- }
- set_Value (COLUMNNAME_Description, Description);
- }
-
- /** Get Description.
- @return Optional short description of the record
- */
- public String getDescription ()
- {
- return (String)get_Value(COLUMNNAME_Description);
- }
-
- /** Set Access all Orgs.
- @param IsAccessAllOrgs
- Access all Organizations (no org access control) of the client
- */
- public void setIsAccessAllOrgs (boolean IsAccessAllOrgs)
- {
- set_Value (COLUMNNAME_IsAccessAllOrgs, Boolean.valueOf(IsAccessAllOrgs));
- }
-
- /** Get Access all Orgs.
- @return Access all Organizations (no org access control) of the client
- */
- public boolean isAccessAllOrgs ()
- {
- Object oo = get_Value(COLUMNNAME_IsAccessAllOrgs);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Approve own Documents.
- @param IsCanApproveOwnDoc
- Users with this role can approve their own documents
- */
- public void setIsCanApproveOwnDoc (boolean IsCanApproveOwnDoc)
- {
- set_Value (COLUMNNAME_IsCanApproveOwnDoc, Boolean.valueOf(IsCanApproveOwnDoc));
- }
-
- /** Get Approve own Documents.
- @return Users with this role can approve their own documents
- */
- public boolean isCanApproveOwnDoc ()
- {
- Object oo = get_Value(COLUMNNAME_IsCanApproveOwnDoc);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Can Export.
- @param IsCanExport
- Users with this role can export data
- */
- public void setIsCanExport (boolean IsCanExport)
- {
- set_Value (COLUMNNAME_IsCanExport, Boolean.valueOf(IsCanExport));
- }
-
- /** Get Can Export.
- @return Users with this role can export data
- */
- public boolean isCanExport ()
- {
- Object oo = get_Value(COLUMNNAME_IsCanExport);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Can Report.
- @param IsCanReport
- Users with this role can create reports
- */
- public void setIsCanReport (boolean IsCanReport)
- {
- set_Value (COLUMNNAME_IsCanReport, Boolean.valueOf(IsCanReport));
- }
-
- /** Get Can Report.
- @return Users with this role can create reports
- */
- public boolean isCanReport ()
- {
- Object oo = get_Value(COLUMNNAME_IsCanReport);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Maintain Change Log.
- @param IsChangeLog
- Maintain a log of changes
- */
- public void setIsChangeLog (boolean IsChangeLog)
- {
- set_Value (COLUMNNAME_IsChangeLog, Boolean.valueOf(IsChangeLog));
- }
-
- /** Get Maintain Change Log.
- @return Maintain a log of changes
- */
- public boolean isChangeLog ()
- {
- Object oo = get_Value(COLUMNNAME_IsChangeLog);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set IsDiscountAllowedOnTotal.
- @param IsDiscountAllowedOnTotal IsDiscountAllowedOnTotal */
- public void setIsDiscountAllowedOnTotal (boolean IsDiscountAllowedOnTotal)
- {
- set_Value (COLUMNNAME_IsDiscountAllowedOnTotal, Boolean.valueOf(IsDiscountAllowedOnTotal));
- }
-
- /** Get IsDiscountAllowedOnTotal.
- @return IsDiscountAllowedOnTotal */
- public boolean isDiscountAllowedOnTotal ()
- {
- Object oo = get_Value(COLUMNNAME_IsDiscountAllowedOnTotal);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set IsDiscountUptoLimitPrice.
- @param IsDiscountUptoLimitPrice IsDiscountUptoLimitPrice */
- public void setIsDiscountUptoLimitPrice (boolean IsDiscountUptoLimitPrice)
- {
- set_Value (COLUMNNAME_IsDiscountUptoLimitPrice, Boolean.valueOf(IsDiscountUptoLimitPrice));
- }
-
- /** Get IsDiscountUptoLimitPrice.
- @return IsDiscountUptoLimitPrice */
- public boolean isDiscountUptoLimitPrice ()
- {
- Object oo = get_Value(COLUMNNAME_IsDiscountUptoLimitPrice);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Manual.
- @param IsManual
- This is a manual process
- */
- public void setIsManual (boolean IsManual)
- {
- set_Value (COLUMNNAME_IsManual, Boolean.valueOf(IsManual));
- }
-
- /** Get Manual.
- @return This is a manual process
- */
- public boolean isManual ()
- {
- Object oo = get_Value(COLUMNNAME_IsManual);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Personal Access.
- @param IsPersonalAccess
- Allow access to all personal records
- */
- public void setIsPersonalAccess (boolean IsPersonalAccess)
- {
- set_Value (COLUMNNAME_IsPersonalAccess, Boolean.valueOf(IsPersonalAccess));
- }
-
- /** Get Personal Access.
- @return Allow access to all personal records
- */
- public boolean isPersonalAccess ()
- {
- Object oo = get_Value(COLUMNNAME_IsPersonalAccess);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Personal Lock.
- @param IsPersonalLock
- Allow users with role to lock access to personal records
- */
- public void setIsPersonalLock (boolean IsPersonalLock)
- {
- set_Value (COLUMNNAME_IsPersonalLock, Boolean.valueOf(IsPersonalLock));
- }
-
- /** Get Personal Lock.
- @return Allow users with role to lock access to personal records
- */
- public boolean isPersonalLock ()
- {
- Object oo = get_Value(COLUMNNAME_IsPersonalLock);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Show Accounting.
- @param IsShowAcct
- Users with this role can see accounting information
- */
- public void setIsShowAcct (boolean IsShowAcct)
- {
- set_Value (COLUMNNAME_IsShowAcct, Boolean.valueOf(IsShowAcct));
- }
-
- /** Get Show Accounting.
- @return Users with this role can see accounting information
- */
- public boolean isShowAcct ()
- {
- Object oo = get_Value(COLUMNNAME_IsShowAcct);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Use User Org Access.
- @param IsUseUserOrgAccess
- Use Org Access defined by user instead of Role Org Access
- */
- public void setIsUseUserOrgAccess (boolean IsUseUserOrgAccess)
- {
- set_Value (COLUMNNAME_IsUseUserOrgAccess, Boolean.valueOf(IsUseUserOrgAccess));
- }
-
- /** Get Use User Org Access.
- @return Use Org Access defined by user instead of Role Org Access
- */
- public boolean isUseUserOrgAccess ()
- {
- Object oo = get_Value(COLUMNNAME_IsUseUserOrgAccess);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Max Query Records.
- @param MaxQueryRecords
- If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records
- */
- public void setMaxQueryRecords (int MaxQueryRecords)
- {
- set_Value (COLUMNNAME_MaxQueryRecords, Integer.valueOf(MaxQueryRecords));
- }
-
- /** Get Max Query Records.
- @return If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records
- */
- public int getMaxQueryRecords ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_MaxQueryRecords);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Name.
- @param Name
- Alphanumeric identifier of the entity
- */
- public void setName (String Name)
- {
- if (Name == null)
- throw new IllegalArgumentException ("Name is mandatory.");
-
- if (Name.length() > 60)
- {
- log.warning("Length > 60 - truncated");
- Name = Name.substring(0, 60);
- }
- set_Value (COLUMNNAME_Name, Name);
- }
-
- /** Get Name.
- @return Alphanumeric identifier of the entity
- */
- public String getName ()
- {
- return (String)get_Value(COLUMNNAME_Name);
- }
-
- /** Get Record ID/ColumnName
- @return ID/ColumnName pair
- */
- public KeyNamePair getKeyNamePair()
- {
- return new KeyNamePair(get_ID(), getName());
- }
-
- /** Set Overwrite Price Limit.
- @param OverwritePriceLimit
- Overwrite Price Limit if the Price List enforces the Price Limit
- */
- public void setOverwritePriceLimit (boolean OverwritePriceLimit)
- {
- set_Value (COLUMNNAME_OverwritePriceLimit, Boolean.valueOf(OverwritePriceLimit));
- }
-
- /** Get Overwrite Price Limit.
- @return Overwrite Price Limit if the Price List enforces the Price Limit
- */
- public boolean isOverwritePriceLimit ()
- {
- Object oo = get_Value(COLUMNNAME_OverwritePriceLimit);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** PreferenceType AD_Reference_ID=330 */
- public static final int PREFERENCETYPE_AD_Reference_ID=330;
- /** Client = C */
- public static final String PREFERENCETYPE_Client = "C";
- /** Organization = O */
- public static final String PREFERENCETYPE_Organization = "O";
- /** User = U */
- public static final String PREFERENCETYPE_User = "U";
- /** None = N */
- public static final String PREFERENCETYPE_None = "N";
- /** Set Preference Level.
- @param PreferenceType
- Determines what preferences the user can set
- */
- public void setPreferenceType (String PreferenceType)
- {
- if (PreferenceType == null) throw new IllegalArgumentException ("PreferenceType is mandatory");
- if (PreferenceType.equals("C") || PreferenceType.equals("O") || PreferenceType.equals("U") || PreferenceType.equals("N")); else throw new IllegalArgumentException ("PreferenceType Invalid value - " + PreferenceType + " - Reference_ID=330 - C - O - U - N");
- if (PreferenceType.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- PreferenceType = PreferenceType.substring(0, 1);
- }
- set_Value (COLUMNNAME_PreferenceType, PreferenceType);
- }
-
- /** Get Preference Level.
- @return Determines what preferences the user can set
- */
- public String getPreferenceType ()
- {
- return (String)get_Value(COLUMNNAME_PreferenceType);
- }
-
- /** Supervisor_ID AD_Reference_ID=286 */
- public static final int SUPERVISOR_ID_AD_Reference_ID=286;
- /** Set Supervisor.
- @param Supervisor_ID
- Supervisor for this user/organization - used for escalation and approval
- */
- public void setSupervisor_ID (int Supervisor_ID)
- {
- if (Supervisor_ID < 1)
- set_Value (COLUMNNAME_Supervisor_ID, null);
- else
- set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID));
- }
-
- /** Get Supervisor.
- @return Supervisor for this user/organization - used for escalation and approval
- */
- public int getSupervisor_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_Supervisor_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set UserDiscount.
- @param UserDiscount UserDiscount */
- public void setUserDiscount (BigDecimal UserDiscount)
- {
- set_Value (COLUMNNAME_UserDiscount, UserDiscount);
- }
-
- /** Get UserDiscount.
- @return UserDiscount */
- public BigDecimal getUserDiscount ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_UserDiscount);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** UserLevel AD_Reference_ID=226 */
- public static final int USERLEVEL_AD_Reference_ID=226;
- /** System = S */
- public static final String USERLEVEL_System = "S ";
- /** Client = C */
- public static final String USERLEVEL_Client = " C ";
- /** Organization = O */
- public static final String USERLEVEL_Organization = " O";
- /** Client+Organization = CO */
- public static final String USERLEVEL_ClientPlusOrganization = " CO";
- /** Set User Level.
- @param UserLevel
- System Client Organization
- */
- public void setUserLevel (String UserLevel)
- {
- if (UserLevel == null) throw new IllegalArgumentException ("UserLevel is mandatory");
- if (UserLevel.equals("S ") || UserLevel.equals(" C ") || UserLevel.equals(" O") || UserLevel.equals(" CO")); else throw new IllegalArgumentException ("UserLevel Invalid value - " + UserLevel + " - Reference_ID=226 - S - C - O - CO");
- if (UserLevel.length() > 3)
- {
- log.warning("Length > 3 - truncated");
- UserLevel = UserLevel.substring(0, 3);
- }
- set_Value (COLUMNNAME_UserLevel, UserLevel);
- }
-
- /** Get User Level.
- @return System Client Organization
- */
- public String getUserLevel ()
- {
- return (String)get_Value(COLUMNNAME_UserLevel);
- }
-}
\ No newline at end of file
diff --git a/posterita/posterita/src/main/org/compiere/model/X_C_CashLine.java b/posterita/posterita/src/main/org/compiere/model/X_C_CashLine.java
deleted file mode 100644
index b808c8ac18..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/X_C_CashLine.java
+++ /dev/null
@@ -1,537 +0,0 @@
-/******************************************************************************
- * Product: Adempiere ERP & CRM Smart Business Solution *
- * Copyright (C) 1999-2007 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 org.compiere.model;
-
-import java.lang.reflect.Constructor;
-import java.math.BigDecimal;
-import java.sql.ResultSet;
-import java.util.Properties;
-import java.util.logging.Level;
-import org.compiere.util.Env;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Model for C_CashLine
- * @author Adempiere (generated)
- * @version Release 3.4.0s - $Id$ */
-public class X_C_CashLine extends PO implements I_C_CashLine, I_Persistent
-{
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /** Standard Constructor */
- public X_C_CashLine (Properties ctx, int C_CashLine_ID, String trxName)
- {
- super (ctx, C_CashLine_ID, trxName);
- /** if (C_CashLine_ID == 0)
- {
- setAmount (Env.ZERO);
- setCashType (null);
-// E
- setC_Cash_ID (0);
- setC_CashLine_ID (0);
- setLine (0);
-// @SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM C_CashLine WHERE C_Cash_ID=@C_Cash_ID@
- setProcessed (false);
- } */
- }
-
- /** Load Constructor */
- public X_C_CashLine (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_C_CashLine[")
- .append(get_ID()).append("]");
- return sb.toString();
- }
-
- /** Set Amount.
- @param Amount
- Amount in a defined currency
- */
- public void setAmount (BigDecimal Amount)
- {
- if (Amount == null)
- throw new IllegalArgumentException ("Amount is mandatory.");
- set_Value (COLUMNNAME_Amount, Amount);
- }
-
- /** Get Amount.
- @return Amount in a defined currency
- */
- public BigDecimal getAmount ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amount);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** CashType AD_Reference_ID=217 */
- public static final int CASHTYPE_AD_Reference_ID=217;
- /** Bank Account Transfer = T */
- public static final String CASHTYPE_BankAccountTransfer = "T";
- /** Invoice = I */
- public static final String CASHTYPE_Invoice = "I";
- /** General Expense = E */
- public static final String CASHTYPE_GeneralExpense = "E";
- /** General Receipts = R */
- public static final String CASHTYPE_GeneralReceipts = "R";
- /** Charge = C */
- public static final String CASHTYPE_Charge = "C";
- /** Difference = D */
- public static final String CASHTYPE_Difference = "D";
- /** Set Cash Type.
- @param CashType
- Source of Cash
- */
- public void setCashType (String CashType)
- {
- if (CashType == null) throw new IllegalArgumentException ("CashType is mandatory");
- if (CashType.equals("T") || CashType.equals("I") || CashType.equals("E") || CashType.equals("R") || CashType.equals("C") || CashType.equals("D")); else throw new IllegalArgumentException ("CashType Invalid value - " + CashType + " - Reference_ID=217 - T - I - E - R - C - D");
- if (CashType.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- CashType = CashType.substring(0, 1);
- }
- set_ValueNoCheck (COLUMNNAME_CashType, CashType);
- }
-
- /** Get Cash Type.
- @return Source of Cash
- */
- public String getCashType ()
- {
- return (String)get_Value(COLUMNNAME_CashType);
- }
-
- public I_C_BankAccount getC_BankAccount() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_BankAccount.Table_Name);
- I_C_BankAccount result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankAccount_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Bank Account.
- @param C_BankAccount_ID
- Account at the Bank
- */
- public void setC_BankAccount_ID (int C_BankAccount_ID)
- {
- if (C_BankAccount_ID < 1)
- set_Value (COLUMNNAME_C_BankAccount_ID, null);
- else
- set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID));
- }
-
- /** Get Bank Account.
- @return Account at the Bank
- */
- public int getC_BankAccount_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Cash getC_Cash() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Cash.Table_Name);
- I_C_Cash result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Cash)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Cash_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Cash Journal.
- @param C_Cash_ID
- Cash Journal
- */
- public void setC_Cash_ID (int C_Cash_ID)
- {
- if (C_Cash_ID < 1)
- throw new IllegalArgumentException ("C_Cash_ID is mandatory.");
- set_ValueNoCheck (COLUMNNAME_C_Cash_ID, Integer.valueOf(C_Cash_ID));
- }
-
- /** Get Cash Journal.
- @return Cash Journal
- */
- public int getC_Cash_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Cash_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Get Record ID/ColumnName
- @return ID/ColumnName pair
- */
- public KeyNamePair getKeyNamePair()
- {
- return new KeyNamePair(get_ID(), String.valueOf(getC_Cash_ID()));
- }
-
- /** Set Cash Journal Line.
- @param C_CashLine_ID
- Cash Journal Line
- */
- public void setC_CashLine_ID (int C_CashLine_ID)
- {
- if (C_CashLine_ID < 1)
- throw new IllegalArgumentException ("C_CashLine_ID is mandatory.");
- set_ValueNoCheck (COLUMNNAME_C_CashLine_ID, Integer.valueOf(C_CashLine_ID));
- }
-
- /** Get Cash Journal Line.
- @return Cash Journal Line
- */
- public int getC_CashLine_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_CashLine_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Charge getC_Charge() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Charge.Table_Name);
- I_C_Charge result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Charge.
- @param C_Charge_ID
- Additional document charges
- */
- public void setC_Charge_ID (int C_Charge_ID)
- {
- if (C_Charge_ID < 1)
- set_Value (COLUMNNAME_C_Charge_ID, null);
- else
- set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID));
- }
-
- /** Get Charge.
- @return Additional document charges
- */
- public int getC_Charge_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Currency getC_Currency() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Currency.Table_Name);
- I_C_Currency result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Currency.
- @param C_Currency_ID
- The Currency for this record
- */
- public void setC_Currency_ID (int C_Currency_ID)
- {
- if (C_Currency_ID < 1)
- set_ValueNoCheck (COLUMNNAME_C_Currency_ID, null);
- else
- set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID));
- }
-
- /** Get Currency.
- @return The Currency for this record
- */
- public int getC_Currency_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Invoice getC_Invoice() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Invoice.Table_Name);
- I_C_Invoice result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Invoice.
- @param C_Invoice_ID
- Invoice Identifier
- */
- public void setC_Invoice_ID (int C_Invoice_ID)
- {
- if (C_Invoice_ID < 1)
- set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, null);
- else
- set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID));
- }
-
- /** Get Invoice.
- @return Invoice Identifier
- */
- public int getC_Invoice_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Payment getC_Payment() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Payment.Table_Name);
- I_C_Payment result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Payment.
- @param C_Payment_ID
- Payment identifier
- */
- public void setC_Payment_ID (int C_Payment_ID)
- {
- if (C_Payment_ID < 1)
- set_ValueNoCheck (COLUMNNAME_C_Payment_ID, null);
- else
- set_ValueNoCheck (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID));
- }
-
- /** Get Payment.
- @return Payment identifier
- */
- public int getC_Payment_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Description.
- @param Description
- Optional short description of the record
- */
- public void setDescription (String Description)
- {
-
- if (Description != null && Description.length() > 255)
- {
- log.warning("Length > 255 - truncated");
- Description = Description.substring(0, 255);
- }
- set_Value (COLUMNNAME_Description, Description);
- }
-
- /** Get Description.
- @return Optional short description of the record
- */
- public String getDescription ()
- {
- return (String)get_Value(COLUMNNAME_Description);
- }
-
- /** Set Discount Amount.
- @param DiscountAmt
- Calculated amount of discount
- */
- public void setDiscountAmt (BigDecimal DiscountAmt)
- {
- set_Value (COLUMNNAME_DiscountAmt, DiscountAmt);
- }
-
- /** Get Discount Amount.
- @return Calculated amount of discount
- */
- public BigDecimal getDiscountAmt ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DiscountAmt);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** Set Generated.
- @param IsGenerated
- This Line is generated
- */
- public void setIsGenerated (boolean IsGenerated)
- {
- set_ValueNoCheck (COLUMNNAME_IsGenerated, Boolean.valueOf(IsGenerated));
- }
-
- /** Get Generated.
- @return This Line is generated
- */
- public boolean isGenerated ()
- {
- Object oo = get_Value(COLUMNNAME_IsGenerated);
- 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_Value (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();
- }
-
- /** 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 Write-off Amount.
- @param WriteOffAmt
- Amount to write-off
- */
- public void setWriteOffAmt (BigDecimal WriteOffAmt)
- {
- set_Value (COLUMNNAME_WriteOffAmt, WriteOffAmt);
- }
-
- /** Get Write-off Amount.
- @return Amount to write-off
- */
- public BigDecimal getWriteOffAmt ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_WriteOffAmt);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-}
\ No newline at end of file
diff --git a/posterita/posterita/src/main/org/compiere/model/X_C_Currency.java b/posterita/posterita/src/main/org/compiere/model/X_C_Currency.java
deleted file mode 100644
index e01758e0b1..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/X_C_Currency.java
+++ /dev/null
@@ -1,337 +0,0 @@
-/******************************************************************************
- * Product: Adempiere ERP & CRM Smart Business Solution *
- * Copyright (C) 1999-2007 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 org.compiere.model;
-
-import java.math.BigDecimal;
-import java.sql.ResultSet;
-import java.sql.Timestamp;
-import java.util.Properties;
-import org.compiere.util.Env;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Model for C_Currency
- * @author Adempiere (generated)
- * @version Release 3.4.0s - $Id$ */
-public class X_C_Currency extends PO implements I_C_Currency, I_Persistent
-{
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /** Standard Constructor */
- public X_C_Currency (Properties ctx, int C_Currency_ID, String trxName)
- {
- super (ctx, C_Currency_ID, trxName);
- /** if (C_Currency_ID == 0)
- {
- setC_Currency_ID (0);
- setCostingPrecision (0);
-// 4
- setDescription (null);
- setIsEMUMember (false);
-// N
- setIsEuro (false);
-// N
- setISO_Code (null);
- setRoundOffFactor (Env.ZERO);
-// 1
- setStdPrecision (0);
-// 2
- } */
- }
-
- /** Load Constructor */
- public X_C_Currency (Properties ctx, ResultSet rs, String trxName)
- {
- super (ctx, rs, trxName);
- }
-
- /** AccessLevel
- * @return 6 - System - Client
- */
- 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_C_Currency[")
- .append(get_ID()).append("]");
- return sb.toString();
- }
-
- /** Set Currency.
- @param C_Currency_ID
- The Currency for this record
- */
- public void setC_Currency_ID (int C_Currency_ID)
- {
- if (C_Currency_ID < 1)
- throw new IllegalArgumentException ("C_Currency_ID is mandatory.");
- set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID));
- }
-
- /** Get Currency.
- @return The Currency for this record
- */
- public int getC_Currency_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Costing Precision.
- @param CostingPrecision
- Rounding used costing calculations
- */
- public void setCostingPrecision (int CostingPrecision)
- {
- set_Value (COLUMNNAME_CostingPrecision, Integer.valueOf(CostingPrecision));
- }
-
- /** Get Costing Precision.
- @return Rounding used costing calculations
- */
- public int getCostingPrecision ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_CostingPrecision);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Symbol.
- @param CurSymbol
- Symbol of the currency (opt used for printing only)
- */
- public void setCurSymbol (String CurSymbol)
- {
-
- if (CurSymbol != null && CurSymbol.length() > 10)
- {
- log.warning("Length > 10 - truncated");
- CurSymbol = CurSymbol.substring(0, 10);
- }
- set_Value (COLUMNNAME_CurSymbol, CurSymbol);
- }
-
- /** Get Symbol.
- @return Symbol of the currency (opt used for printing only)
- */
- public String getCurSymbol ()
- {
- return (String)get_Value(COLUMNNAME_CurSymbol);
- }
-
- /** Set Description.
- @param Description
- Optional short description of the record
- */
- public void setDescription (String Description)
- {
- if (Description == null)
- throw new IllegalArgumentException ("Description is mandatory.");
-
- if (Description.length() > 255)
- {
- log.warning("Length > 255 - truncated");
- Description = Description.substring(0, 255);
- }
- set_Value (COLUMNNAME_Description, Description);
- }
-
- /** Get Description.
- @return Optional short description of the record
- */
- public String getDescription ()
- {
- return (String)get_Value(COLUMNNAME_Description);
- }
-
- /** Set EMU Entry Date.
- @param EMUEntryDate
- Date when the currency joined / will join the EMU
- */
- public void setEMUEntryDate (Timestamp EMUEntryDate)
- {
- set_Value (COLUMNNAME_EMUEntryDate, EMUEntryDate);
- }
-
- /** Get EMU Entry Date.
- @return Date when the currency joined / will join the EMU
- */
- public Timestamp getEMUEntryDate ()
- {
- return (Timestamp)get_Value(COLUMNNAME_EMUEntryDate);
- }
-
- /** Set EMU Rate.
- @param EMURate
- Official rate to the Euro
- */
- public void setEMURate (BigDecimal EMURate)
- {
- set_Value (COLUMNNAME_EMURate, EMURate);
- }
-
- /** Get EMU Rate.
- @return Official rate to the Euro
- */
- public BigDecimal getEMURate ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_EMURate);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** Set EMU Member.
- @param IsEMUMember
- This currency is member if the European Monetary Union
- */
- public void setIsEMUMember (boolean IsEMUMember)
- {
- set_Value (COLUMNNAME_IsEMUMember, Boolean.valueOf(IsEMUMember));
- }
-
- /** Get EMU Member.
- @return This currency is member if the European Monetary Union
- */
- public boolean isEMUMember ()
- {
- Object oo = get_Value(COLUMNNAME_IsEMUMember);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set The Euro Currency.
- @param IsEuro
- This currency is the Euro
- */
- public void setIsEuro (boolean IsEuro)
- {
- set_Value (COLUMNNAME_IsEuro, Boolean.valueOf(IsEuro));
- }
-
- /** Get The Euro Currency.
- @return This currency is the Euro
- */
- public boolean isEuro ()
- {
- Object oo = get_Value(COLUMNNAME_IsEuro);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set ISO Currency Code.
- @param ISO_Code
- Three letter ISO 4217 Code of the Currency
- */
- public void setISO_Code (String ISO_Code)
- {
- if (ISO_Code == null)
- throw new IllegalArgumentException ("ISO_Code is mandatory.");
-
- if (ISO_Code.length() > 3)
- {
- log.warning("Length > 3 - truncated");
- ISO_Code = ISO_Code.substring(0, 3);
- }
- set_Value (COLUMNNAME_ISO_Code, ISO_Code);
- }
-
- /** Get ISO Currency Code.
- @return Three letter ISO 4217 Code of the Currency
- */
- public String getISO_Code ()
- {
- return (String)get_Value(COLUMNNAME_ISO_Code);
- }
-
- /** Get Record ID/ColumnName
- @return ID/ColumnName pair
- */
- public KeyNamePair getKeyNamePair()
- {
- return new KeyNamePair(get_ID(), getISO_Code());
- }
-
- /** Set RoundOffFactor.
- @param RoundOffFactor
- Used to Round Off Payment Amount
- */
- public void setRoundOffFactor (BigDecimal RoundOffFactor)
- {
- if (RoundOffFactor == null)
- throw new IllegalArgumentException ("RoundOffFactor is mandatory.");
- set_Value (COLUMNNAME_RoundOffFactor, RoundOffFactor);
- }
-
- /** Get RoundOffFactor.
- @return Used to Round Off Payment Amount
- */
- public BigDecimal getRoundOffFactor ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_RoundOffFactor);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** Set Standard Precision.
- @param StdPrecision
- Rule for rounding calculated amounts
- */
- public void setStdPrecision (int StdPrecision)
- {
- set_Value (COLUMNNAME_StdPrecision, Integer.valueOf(StdPrecision));
- }
-
- /** Get Standard Precision.
- @return Rule for rounding calculated amounts
- */
- public int getStdPrecision ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_StdPrecision);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-}
\ No newline at end of file
diff --git a/posterita/posterita/src/main/org/compiere/model/X_C_Invoice.java b/posterita/posterita/src/main/org/compiere/model/X_C_Invoice.java
deleted file mode 100644
index 959b7eb534..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/X_C_Invoice.java
+++ /dev/null
@@ -1,1731 +0,0 @@
-/******************************************************************************
- * Product: Adempiere ERP & CRM Smart Business Solution *
- * Copyright (C) 1999-2007 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 org.compiere.model;
-
-import java.lang.reflect.Constructor;
-import java.math.BigDecimal;
-import java.sql.ResultSet;
-import java.sql.Timestamp;
-import java.util.Properties;
-import java.util.logging.Level;
-import org.compiere.util.Env;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Model for C_Invoice
- * @author Adempiere (generated)
- * @version Release 3.4.0s - $Id$ */
-public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent
-{
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /** Standard Constructor */
- public X_C_Invoice (Properties ctx, int C_Invoice_ID, String trxName)
- {
- super (ctx, C_Invoice_ID, trxName);
- /** if (C_Invoice_ID == 0)
- {
- setC_BPartner_ID (0);
- setC_BPartner_Location_ID (0);
- setC_Currency_ID (0);
-// @C_Currency_ID@
- setC_DocType_ID (0);
-// 0
- setC_DocTypeTarget_ID (0);
- setC_Invoice_ID (0);
- setC_PaymentTerm_ID (0);
- setDateAcct (new Timestamp(System.currentTimeMillis()));
-// @#Date@
- setDateInvoiced (new Timestamp(System.currentTimeMillis()));
-// @#Date@
- setDocAction (null);
-// CO
- setDocStatus (null);
-// DR
- setDocumentNo (null);
- setGrandTotal (Env.ZERO);
- setIsApproved (false);
-// @IsApproved@
- setIsDiscountPrinted (false);
- setIsInDispute (false);
-// N
- setIsPaid (false);
- setIsPayScheduleValid (false);
- setIsPrinted (false);
- setIsSelfService (false);
- setIsSOTrx (false);
-// @IsSOTrx@
- setIsTaxIncluded (false);
- setIsTransferred (false);
- setM_PriceList_ID (0);
- setPaymentRule (null);
-// P
- setPosted (false);
-// N
- setProcessed (false);
- setSendEMail (false);
- setTotalLines (Env.ZERO);
- } */
- }
-
- /** Load Constructor */
- public X_C_Invoice (Properties ctx, ResultSet rs, String trxName)
- {
- super (ctx, rs, trxName);
- }
-
- /** AccessLevel
- * @return 1 - 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_C_Invoice[")
- .append(get_ID()).append("]");
- return sb.toString();
- }
-
- /** AD_OrgTrx_ID AD_Reference_ID=130 */
- public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
- /** Set Trx Organization.
- @param AD_OrgTrx_ID
- Performing or initiating organization
- */
- public void setAD_OrgTrx_ID (int AD_OrgTrx_ID)
- {
- if (AD_OrgTrx_ID < 1)
- set_Value (COLUMNNAME_AD_OrgTrx_ID, null);
- else
- set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID));
- }
-
- /** Get Trx Organization.
- @return Performing or initiating organization
- */
- public int getAD_OrgTrx_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_AD_User getAD_User() throws Exception
- {
- Class> clazz = MTable.getClass(I_AD_User.Table_Name);
- I_AD_User result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set User/Contact.
- @param AD_User_ID
- User within the system - Internal or Business Partner Contact
- */
- public void setAD_User_ID (int AD_User_ID)
- {
- if (AD_User_ID < 0)
- set_Value (COLUMNNAME_AD_User_ID, null);
- else
- set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
- }
-
- /** Get User/Contact.
- @return User within the system - Internal or Business Partner Contact
- */
- public int getAD_User_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Activity getC_Activity() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Activity.Table_Name);
- I_C_Activity result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Activity.
- @param C_Activity_ID
- Business Activity
- */
- public void setC_Activity_ID (int C_Activity_ID)
- {
- if (C_Activity_ID < 1)
- set_Value (COLUMNNAME_C_Activity_ID, null);
- else
- set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID));
- }
-
- /** Get Activity.
- @return Business Activity
- */
- public int getC_Activity_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_BPartner getC_BPartner() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_BPartner.Table_Name);
- I_C_BPartner result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Business Partner .
- @param C_BPartner_ID
- Identifies a Business Partner
- */
- public void setC_BPartner_ID (int C_BPartner_ID)
- {
- if (C_BPartner_ID < 1)
- throw new IllegalArgumentException ("C_BPartner_ID is mandatory.");
- set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
- }
-
- /** Get Business Partner .
- @return Identifies a Business Partner
- */
- public int getC_BPartner_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_BPartner_Location getC_BPartner_Location() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_BPartner_Location.Table_Name);
- I_C_BPartner_Location result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Partner Location.
- @param C_BPartner_Location_ID
- Identifies the (ship to) address for this Business Partner
- */
- public void setC_BPartner_Location_ID (int C_BPartner_Location_ID)
- {
- if (C_BPartner_Location_ID < 1)
- throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory.");
- set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID));
- }
-
- /** Get Partner Location.
- @return Identifies the (ship to) address for this Business Partner
- */
- public int getC_BPartner_Location_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Campaign getC_Campaign() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Campaign.Table_Name);
- I_C_Campaign result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Campaign.
- @param C_Campaign_ID
- Marketing Campaign
- */
- public void setC_Campaign_ID (int C_Campaign_ID)
- {
- if (C_Campaign_ID < 1)
- set_Value (COLUMNNAME_C_Campaign_ID, null);
- else
- set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID));
- }
-
- /** Get Campaign.
- @return Marketing Campaign
- */
- public int getC_Campaign_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_CashLine getC_CashLine() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_CashLine.Table_Name);
- I_C_CashLine result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_CashLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CashLine_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Cash Journal Line.
- @param C_CashLine_ID
- Cash Journal Line
- */
- public void setC_CashLine_ID (int C_CashLine_ID)
- {
- if (C_CashLine_ID < 1)
- set_Value (COLUMNNAME_C_CashLine_ID, null);
- else
- set_Value (COLUMNNAME_C_CashLine_ID, Integer.valueOf(C_CashLine_ID));
- }
-
- /** Get Cash Journal Line.
- @return Cash Journal Line
- */
- public int getC_CashLine_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_CashLine_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** C_Charge_ID AD_Reference_ID=200 */
- public static final int C_CHARGE_ID_AD_Reference_ID=200;
- /** Set Charge.
- @param C_Charge_ID
- Additional document charges
- */
- public void setC_Charge_ID (int C_Charge_ID)
- {
- if (C_Charge_ID < 1)
- set_Value (COLUMNNAME_C_Charge_ID, null);
- else
- set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID));
- }
-
- /** Get Charge.
- @return Additional document charges
- */
- public int getC_Charge_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_ConversionType getC_ConversionType() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_ConversionType.Table_Name);
- I_C_ConversionType result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_ConversionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ConversionType_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Currency Type.
- @param C_ConversionType_ID
- Currency Conversion Rate Type
- */
- public void setC_ConversionType_ID (int C_ConversionType_ID)
- {
- if (C_ConversionType_ID < 1)
- set_Value (COLUMNNAME_C_ConversionType_ID, null);
- else
- set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID));
- }
-
- /** Get Currency Type.
- @return Currency Conversion Rate Type
- */
- public int getC_ConversionType_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Currency getC_Currency() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Currency.Table_Name);
- I_C_Currency result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Currency.
- @param C_Currency_ID
- The Currency for this record
- */
- public void setC_Currency_ID (int C_Currency_ID)
- {
- if (C_Currency_ID < 1)
- throw new IllegalArgumentException ("C_Currency_ID is mandatory.");
- set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID));
- }
-
- /** Get Currency.
- @return The Currency for this record
- */
- public int getC_Currency_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_DocType getC_DocType() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_DocType.Table_Name);
- I_C_DocType result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** 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)
- throw new IllegalArgumentException ("C_DocType_ID is mandatory.");
- 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();
- }
-
- /** C_DocTypeTarget_ID AD_Reference_ID=170 */
- public static final int C_DOCTYPETARGET_ID_AD_Reference_ID=170;
- /** 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)
- throw new IllegalArgumentException ("C_DocTypeTarget_ID is mandatory.");
- set_Value (COLUMNNAME_C_DocTypeTarget_ID, Integer.valueOf(C_DocTypeTarget_ID));
- }
-
- /** Get Target Document Type.
- @return Target document type for conversing documents
- */
- public int getC_DocTypeTarget_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeTarget_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_DunningLevel getC_DunningLevel() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_DunningLevel.Table_Name);
- I_C_DunningLevel result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_DunningLevel)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DunningLevel_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Dunning Level.
- @param C_DunningLevel_ID Dunning Level */
- public void setC_DunningLevel_ID (int C_DunningLevel_ID)
- {
- if (C_DunningLevel_ID < 1)
- set_Value (COLUMNNAME_C_DunningLevel_ID, null);
- else
- set_Value (COLUMNNAME_C_DunningLevel_ID, Integer.valueOf(C_DunningLevel_ID));
- }
-
- /** Get Dunning Level.
- @return Dunning Level */
- public int getC_DunningLevel_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_DunningLevel_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Charge amount.
- @param ChargeAmt
- Charge Amount
- */
- public void setChargeAmt (BigDecimal ChargeAmt)
- {
- set_Value (COLUMNNAME_ChargeAmt, ChargeAmt);
- }
-
- /** Get Charge amount.
- @return Charge Amount
- */
- public BigDecimal getChargeAmt ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeAmt);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** Set Invoice.
- @param C_Invoice_ID
- Invoice Identifier
- */
- public void setC_Invoice_ID (int C_Invoice_ID)
- {
- if (C_Invoice_ID < 1)
- throw new IllegalArgumentException ("C_Invoice_ID is mandatory.");
- set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID));
- }
-
- /** Get Invoice.
- @return Invoice Identifier
- */
- public int getC_Invoice_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Copy From.
- @param CopyFrom
- Copy From Record
- */
- public void setCopyFrom (String CopyFrom)
- {
-
- if (CopyFrom != null && CopyFrom.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- CopyFrom = CopyFrom.substring(0, 1);
- }
- set_Value (COLUMNNAME_CopyFrom, CopyFrom);
- }
-
- /** Get Copy From.
- @return Copy From Record
- */
- public String getCopyFrom ()
- {
- return (String)get_Value(COLUMNNAME_CopyFrom);
- }
-
- public I_C_Order getC_Order() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Order.Table_Name);
- I_C_Order result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Order.
- @param C_Order_ID
- Order
- */
- public void setC_Order_ID (int C_Order_ID)
- {
- if (C_Order_ID < 1)
- set_ValueNoCheck (COLUMNNAME_C_Order_ID, null);
- else
- set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID));
- }
-
- /** Get Order.
- @return Order
- */
- public int getC_Order_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Payment getC_Payment() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Payment.Table_Name);
- I_C_Payment result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Payment.
- @param C_Payment_ID
- Payment identifier
- */
- public void setC_Payment_ID (int C_Payment_ID)
- {
- if (C_Payment_ID < 1)
- set_Value (COLUMNNAME_C_Payment_ID, null);
- else
- set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID));
- }
-
- /** Get Payment.
- @return Payment identifier
- */
- public int getC_Payment_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_PaymentTerm getC_PaymentTerm() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_PaymentTerm.Table_Name);
- I_C_PaymentTerm result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_PaymentTerm)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentTerm_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Payment Term.
- @param C_PaymentTerm_ID
- The terms of Payment (timing, discount)
- */
- public void setC_PaymentTerm_ID (int C_PaymentTerm_ID)
- {
- if (C_PaymentTerm_ID < 1)
- throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory.");
- set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID));
- }
-
- /** Get Payment Term.
- @return The terms of Payment (timing, discount)
- */
- public int getC_PaymentTerm_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentTerm_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Project getC_Project() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Project.Table_Name);
- I_C_Project result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Project.
- @param C_Project_ID
- Financial Project
- */
- public void setC_Project_ID (int C_Project_ID)
- {
- if (C_Project_ID < 1)
- set_Value (COLUMNNAME_C_Project_ID, null);
- else
- set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID));
- }
-
- /** Get Project.
- @return Financial Project
- */
- public int getC_Project_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Create lines from.
- @param CreateFrom
- Process which will generate a new document lines based on an existing document
- */
- public void setCreateFrom (String CreateFrom)
- {
-
- if (CreateFrom != null && CreateFrom.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- CreateFrom = CreateFrom.substring(0, 1);
- }
- set_Value (COLUMNNAME_CreateFrom, CreateFrom);
- }
-
- /** Get Create lines from.
- @return Process which will generate a new document lines based on an existing document
- */
- public String getCreateFrom ()
- {
- return (String)get_Value(COLUMNNAME_CreateFrom);
- }
-
- /** Set Account Date.
- @param DateAcct
- Accounting Date
- */
- public void setDateAcct (Timestamp DateAcct)
- {
- if (DateAcct == null)
- throw new IllegalArgumentException ("DateAcct is mandatory.");
- set_Value (COLUMNNAME_DateAcct, DateAcct);
- }
-
- /** Get Account Date.
- @return Accounting Date
- */
- public Timestamp getDateAcct ()
- {
- return (Timestamp)get_Value(COLUMNNAME_DateAcct);
- }
-
- /** Set Date Invoiced.
- @param DateInvoiced
- Date printed on Invoice
- */
- public void setDateInvoiced (Timestamp DateInvoiced)
- {
- if (DateInvoiced == null)
- throw new IllegalArgumentException ("DateInvoiced is mandatory.");
- set_Value (COLUMNNAME_DateInvoiced, DateInvoiced);
- }
-
- /** Get Date Invoiced.
- @return Date printed on Invoice
- */
- public Timestamp getDateInvoiced ()
- {
- return (Timestamp)get_Value(COLUMNNAME_DateInvoiced);
- }
-
- /** 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 Date printed.
- @param DatePrinted
- Date the document was printed.
- */
- public void setDatePrinted (Timestamp DatePrinted)
- {
- set_Value (COLUMNNAME_DatePrinted, DatePrinted);
- }
-
- /** Get Date printed.
- @return Date the document was printed.
- */
- public Timestamp getDatePrinted ()
- {
- return (Timestamp)get_Value(COLUMNNAME_DatePrinted);
- }
-
- /** Set Description.
- @param Description
- Optional short description of the record
- */
- public void setDescription (String Description)
- {
-
- if (Description != null && Description.length() > 255)
- {
- log.warning("Length > 255 - truncated");
- Description = Description.substring(0, 255);
- }
- 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)
- {
- if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");
- if (DocAction.equals("CO") || DocAction.equals("AP") || DocAction.equals("RJ") || DocAction.equals("PO") || DocAction.equals("VO") || DocAction.equals("CL") || DocAction.equals("RC") || DocAction.equals("RA") || DocAction.equals("IN") || DocAction.equals("RE") || DocAction.equals("--") || DocAction.equals("PR") || DocAction.equals("XL") || DocAction.equals("WC")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - CO - AP - RJ - PO - VO - CL - RC - RA - IN - RE - -- - PR - XL - WC");
- if (DocAction.length() > 2)
- {
- log.warning("Length > 2 - truncated");
- DocAction = DocAction.substring(0, 2);
- }
- 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)
- {
- if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");
- if (DocStatus.equals("DR") || DocStatus.equals("CO") || DocStatus.equals("AP") || DocStatus.equals("NA") || DocStatus.equals("VO") || DocStatus.equals("IN") || DocStatus.equals("RE") || DocStatus.equals("CL") || DocStatus.equals("??") || DocStatus.equals("IP") || DocStatus.equals("WP") || DocStatus.equals("WC")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - DR - CO - AP - NA - VO - IN - RE - CL - ?? - IP - WP - WC");
- if (DocStatus.length() > 2)
- {
- log.warning("Length > 2 - truncated");
- DocStatus = DocStatus.substring(0, 2);
- }
- 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)
- {
- if (DocumentNo == null)
- throw new IllegalArgumentException ("DocumentNo is mandatory.");
-
- if (DocumentNo.length() > 30)
- {
- log.warning("Length > 30 - truncated");
- DocumentNo = DocumentNo.substring(0, 30);
- }
- set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo);
- }
-
- /** Get Document No.
- @return Document sequence number of the document
- */
- public String getDocumentNo ()
- {
- return (String)get_Value(COLUMNNAME_DocumentNo);
- }
-
- /** Get Record ID/ColumnName
- @return ID/ColumnName pair
- */
- public KeyNamePair getKeyNamePair()
- {
- return new KeyNamePair(get_ID(), getDocumentNo());
- }
-
- /** Set Dunning Grace.
- @param DunningGrace Dunning Grace */
- public void setDunningGrace (Timestamp DunningGrace)
- {
- set_Value (COLUMNNAME_DunningGrace, DunningGrace);
- }
-
- /** Get Dunning Grace.
- @return Dunning Grace */
- public Timestamp getDunningGrace ()
- {
- return (Timestamp)get_Value(COLUMNNAME_DunningGrace);
- }
-
- /** Set Generate To.
- @param GenerateTo
- Generate To
- */
- public void setGenerateTo (String GenerateTo)
- {
-
- if (GenerateTo != null && GenerateTo.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- GenerateTo = GenerateTo.substring(0, 1);
- }
- set_Value (COLUMNNAME_GenerateTo, GenerateTo);
- }
-
- /** Get Generate To.
- @return Generate To
- */
- public String getGenerateTo ()
- {
- return (String)get_Value(COLUMNNAME_GenerateTo);
- }
-
- /** Set Grand Total.
- @param GrandTotal
- Total amount of document
- */
- public void setGrandTotal (BigDecimal GrandTotal)
- {
- if (GrandTotal == null)
- throw new IllegalArgumentException ("GrandTotal is mandatory.");
- set_ValueNoCheck (COLUMNNAME_GrandTotal, GrandTotal);
- }
-
- /** Get Grand Total.
- @return Total amount of document
- */
- public BigDecimal getGrandTotal ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_GrandTotal);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** InvoiceCollectionType AD_Reference_ID=394 */
- public static final int INVOICECOLLECTIONTYPE_AD_Reference_ID=394;
- /** Dunning = D */
- public static final String INVOICECOLLECTIONTYPE_Dunning = "D";
- /** Collection Agency = C */
- public static final String INVOICECOLLECTIONTYPE_CollectionAgency = "C";
- /** Legal Procedure = L */
- public static final String INVOICECOLLECTIONTYPE_LegalProcedure = "L";
- /** Uncollectable = U */
- public static final String INVOICECOLLECTIONTYPE_Uncollectable = "U";
- /** Set Collection Status.
- @param InvoiceCollectionType
- Invoice Collection Status
- */
- public void setInvoiceCollectionType (String InvoiceCollectionType)
- {
-
- if (InvoiceCollectionType == null || InvoiceCollectionType.equals("D") || InvoiceCollectionType.equals("C") || InvoiceCollectionType.equals("L") || InvoiceCollectionType.equals("U")); else throw new IllegalArgumentException ("InvoiceCollectionType Invalid value - " + InvoiceCollectionType + " - Reference_ID=394 - D - C - L - U");
- if (InvoiceCollectionType != null && InvoiceCollectionType.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- InvoiceCollectionType = InvoiceCollectionType.substring(0, 1);
- }
- set_Value (COLUMNNAME_InvoiceCollectionType, InvoiceCollectionType);
- }
-
- /** Get Collection Status.
- @return Invoice Collection Status
- */
- public String getInvoiceCollectionType ()
- {
- return (String)get_Value(COLUMNNAME_InvoiceCollectionType);
- }
-
- /** 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 Discount Printed.
- @param IsDiscountPrinted
- Print Discount on Invoice and Order
- */
- public void setIsDiscountPrinted (boolean IsDiscountPrinted)
- {
- set_Value (COLUMNNAME_IsDiscountPrinted, Boolean.valueOf(IsDiscountPrinted));
- }
-
- /** Get Discount Printed.
- @return Print Discount on Invoice and Order
- */
- public boolean isDiscountPrinted ()
- {
- Object oo = get_Value(COLUMNNAME_IsDiscountPrinted);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set In Dispute.
- @param IsInDispute
- Document is in dispute
- */
- public void setIsInDispute (boolean IsInDispute)
- {
- set_Value (COLUMNNAME_IsInDispute, Boolean.valueOf(IsInDispute));
- }
-
- /** Get In Dispute.
- @return Document is in dispute
- */
- public boolean isInDispute ()
- {
- Object oo = get_Value(COLUMNNAME_IsInDispute);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Paid.
- @param IsPaid
- The document is paid
- */
- public void setIsPaid (boolean IsPaid)
- {
- set_Value (COLUMNNAME_IsPaid, Boolean.valueOf(IsPaid));
- }
-
- /** Get Paid.
- @return The document is paid
- */
- public boolean isPaid ()
- {
- Object oo = get_Value(COLUMNNAME_IsPaid);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Pay Schedule valid.
- @param IsPayScheduleValid
- Is the Payment Schedule is valid
- */
- public void setIsPayScheduleValid (boolean IsPayScheduleValid)
- {
- set_ValueNoCheck (COLUMNNAME_IsPayScheduleValid, Boolean.valueOf(IsPayScheduleValid));
- }
-
- /** Get Pay Schedule valid.
- @return Is the Payment Schedule is valid
- */
- public boolean isPayScheduleValid ()
- {
- Object oo = get_Value(COLUMNNAME_IsPayScheduleValid);
- 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 Self-Service.
- @param IsSelfService
- This is a Self-Service entry or this entry can be changed via Self-Service
- */
- public void setIsSelfService (boolean IsSelfService)
- {
- set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService));
- }
-
- /** Get Self-Service.
- @return This is a Self-Service entry or this entry can be changed via Self-Service
- */
- public boolean isSelfService ()
- {
- Object oo = get_Value(COLUMNNAME_IsSelfService);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Sales Transaction.
- @param IsSOTrx
- This is a Sales Transaction
- */
- public void setIsSOTrx (boolean IsSOTrx)
- {
- set_ValueNoCheck (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx));
- }
-
- /** Get Sales Transaction.
- @return This is a Sales Transaction
- */
- public boolean isSOTrx ()
- {
- Object oo = get_Value(COLUMNNAME_IsSOTrx);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Price includes Tax.
- @param IsTaxIncluded
- Tax is included in the price
- */
- public void setIsTaxIncluded (boolean IsTaxIncluded)
- {
- set_Value (COLUMNNAME_IsTaxIncluded, Boolean.valueOf(IsTaxIncluded));
- }
-
- /** Get Price includes Tax.
- @return Tax is included in the price
- */
- public boolean isTaxIncluded ()
- {
- Object oo = get_Value(COLUMNNAME_IsTaxIncluded);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Transferred.
- @param IsTransferred
- Transferred to General Ledger (i.e. accounted)
- */
- public void setIsTransferred (boolean IsTransferred)
- {
- set_ValueNoCheck (COLUMNNAME_IsTransferred, Boolean.valueOf(IsTransferred));
- }
-
- /** Get Transferred.
- @return Transferred to General Ledger (i.e. accounted)
- */
- public boolean isTransferred ()
- {
- Object oo = get_Value(COLUMNNAME_IsTransferred);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- public I_M_PriceList getM_PriceList() throws Exception
- {
- Class> clazz = MTable.getClass(I_M_PriceList.Table_Name);
- I_M_PriceList result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Price List.
- @param M_PriceList_ID
- Unique identifier of a Price List
- */
- public void setM_PriceList_ID (int M_PriceList_ID)
- {
- if (M_PriceList_ID < 1)
- throw new IllegalArgumentException ("M_PriceList_ID is mandatory.");
- set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID));
- }
-
- /** Get Price List.
- @return Unique identifier of a Price List
- */
- public int getM_PriceList_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_M_RMA getM_RMA() throws Exception
- {
- Class> clazz = MTable.getClass(I_M_RMA.Table_Name);
- I_M_RMA result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_M_RMA)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_RMA_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set RMA.
- @param M_RMA_ID
- Return Material Authorization
- */
- public void setM_RMA_ID (int M_RMA_ID)
- {
- if (M_RMA_ID < 1)
- set_Value (COLUMNNAME_M_RMA_ID, null);
- else
- set_Value (COLUMNNAME_M_RMA_ID, Integer.valueOf(M_RMA_ID));
- }
-
- /** Get RMA.
- @return Return Material Authorization
- */
- public int getM_RMA_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_M_RMA_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** PaymentRule AD_Reference_ID=195 */
- public static final int PAYMENTRULE_AD_Reference_ID=195;
- /** Cash = B */
- public static final String PAYMENTRULE_Cash = "B";
- /** Credit Card = K */
- public static final String PAYMENTRULE_CreditCard = "K";
- /** Direct Deposit = T */
- public static final String PAYMENTRULE_DirectDeposit = "T";
- /** Check = S */
- public static final String PAYMENTRULE_Check = "S";
- /** On Credit = P */
- public static final String PAYMENTRULE_OnCredit = "P";
- /** Direct Debit = D */
- public static final String PAYMENTRULE_DirectDebit = "D";
- /** Mixed = M */
- public static final String PAYMENTRULE_Mixed = "M";
- /** Set Payment Rule.
- @param PaymentRule
- How you pay the invoice
- */
- public void setPaymentRule (String PaymentRule)
- {
- if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory");
- if (PaymentRule.equals("B") || PaymentRule.equals("K") || PaymentRule.equals("T") || PaymentRule.equals("S") || PaymentRule.equals("P") || PaymentRule.equals("D") || PaymentRule.equals("M")); else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - K - T - S - P - D - M");
- if (PaymentRule.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- PaymentRule = PaymentRule.substring(0, 1);
- }
- set_Value (COLUMNNAME_PaymentRule, PaymentRule);
- }
-
- /** Get Payment Rule.
- @return How you pay the invoice
- */
- public String getPaymentRule ()
- {
- return (String)get_Value(COLUMNNAME_PaymentRule);
- }
-
- /** Set Order Reference.
- @param POReference
- Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner
- */
- public void setPOReference (String POReference)
- {
-
- if (POReference != null && POReference.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- POReference = POReference.substring(0, 20);
- }
- set_Value (COLUMNNAME_POReference, POReference);
- }
-
- /** Get Order Reference.
- @return Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner
- */
- public String getPOReference ()
- {
- return (String)get_Value(COLUMNNAME_POReference);
- }
-
- /** Set Posted.
- @param Posted
- Posting status
- */
- public void setPosted (boolean Posted)
- {
- set_Value (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;
- }
-
- /** Set Processed.
- @param Processed
- The document has been processed
- */
- public void setProcessed (boolean Processed)
- {
- set_ValueNoCheck (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 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 Referenced Invoice.
- @param Ref_Invoice_ID Referenced Invoice */
- public void setRef_Invoice_ID (int Ref_Invoice_ID)
- {
- if (Ref_Invoice_ID < 1)
- set_Value (COLUMNNAME_Ref_Invoice_ID, null);
- else
- set_Value (COLUMNNAME_Ref_Invoice_ID, Integer.valueOf(Ref_Invoice_ID));
- }
-
- /** Get Referenced Invoice.
- @return Referenced Invoice */
- public int getRef_Invoice_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_Ref_Invoice_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** SalesRep_ID AD_Reference_ID=190 */
- public static final int SALESREP_ID_AD_Reference_ID=190;
- /** Set Sales Representative.
- @param SalesRep_ID
- Sales Representative or Company Agent
- */
- public void setSalesRep_ID (int SalesRep_ID)
- {
- if (SalesRep_ID < 1)
- set_Value (COLUMNNAME_SalesRep_ID, null);
- else
- set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID));
- }
-
- /** Get Sales Representative.
- @return Sales Representative or Company Agent
- */
- public int getSalesRep_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Send EMail.
- @param SendEMail
- Enable sending Document EMail
- */
- public void setSendEMail (boolean SendEMail)
- {
- set_Value (COLUMNNAME_SendEMail, Boolean.valueOf(SendEMail));
- }
-
- /** Get Send EMail.
- @return Enable sending Document EMail
- */
- public boolean isSendEMail ()
- {
- Object oo = get_Value(COLUMNNAME_SendEMail);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Total Lines.
- @param TotalLines
- Total of all document lines
- */
- public void setTotalLines (BigDecimal TotalLines)
- {
- if (TotalLines == null)
- throw new IllegalArgumentException ("TotalLines is mandatory.");
- set_ValueNoCheck (COLUMNNAME_TotalLines, TotalLines);
- }
-
- /** Get Total Lines.
- @return Total of all document lines
- */
- public BigDecimal getTotalLines ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalLines);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** User1_ID AD_Reference_ID=134 */
- public static final int USER1_ID_AD_Reference_ID=134;
- /** Set User List 1.
- @param User1_ID
- User defined list element #1
- */
- public void setUser1_ID (int User1_ID)
- {
- if (User1_ID < 1)
- set_Value (COLUMNNAME_User1_ID, null);
- else
- set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID));
- }
-
- /** Get User List 1.
- @return User defined list element #1
- */
- public int getUser1_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** User2_ID AD_Reference_ID=137 */
- public static final int USER2_ID_AD_Reference_ID=137;
- /** Set User List 2.
- @param User2_ID
- User defined list element #2
- */
- public void setUser2_ID (int User2_ID)
- {
- if (User2_ID < 1)
- set_Value (COLUMNNAME_User2_ID, null);
- else
- set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID));
- }
-
- /** Get User List 2.
- @return User defined list element #2
- */
- public int getUser2_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-}
\ No newline at end of file
diff --git a/posterita/posterita/src/main/org/compiere/model/X_C_Order.java b/posterita/posterita/src/main/org/compiere/model/X_C_Order.java
deleted file mode 100644
index c49bd4c9ac..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/X_C_Order.java
+++ /dev/null
@@ -1,2117 +0,0 @@
-/******************************************************************************
- * Product: Adempiere ERP & CRM Smart Business Solution *
- * Copyright (C) 1999-2007 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 org.compiere.model;
-
-import java.lang.reflect.Constructor;
-import java.math.BigDecimal;
-import java.sql.ResultSet;
-import java.sql.Timestamp;
-import java.util.Properties;
-import java.util.logging.Level;
-import org.compiere.util.Env;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Model for C_Order
- * @author Adempiere (generated)
- * @version Release 3.4.0s - $Id$ */
-public class X_C_Order extends PO implements I_C_Order, I_Persistent
-{
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /** Standard Constructor */
- public X_C_Order (Properties ctx, int C_Order_ID, String trxName)
- {
- super (ctx, C_Order_ID, trxName);
- /** if (C_Order_ID == 0)
- {
- setC_BPartner_ID (0);
- setC_BPartner_Location_ID (0);
- setC_Currency_ID (0);
-// @C_Currency_ID@
- setC_DocType_ID (0);
-// 0
- setC_DocTypeTarget_ID (0);
- setC_Order_ID (0);
- setC_PaymentTerm_ID (0);
- setDateAcct (new Timestamp(System.currentTimeMillis()));
-// @#Date@
- setDateOrdered (new Timestamp(System.currentTimeMillis()));
-// @#Date@
- setDatePromised (new Timestamp(System.currentTimeMillis()));
-// @#Date@
- setDeliveryRule (null);
-// F
- setDeliveryViaRule (null);
-// P
- setDocAction (null);
-// CO
- setDocStatus (null);
-// DR
- setDocumentNo (null);
- setFreightAmt (Env.ZERO);
- setFreightCostRule (null);
-// I
- setGrandTotal (Env.ZERO);
- setInvoiceRule (null);
-// I
- setIsApproved (false);
-// @IsApproved@
- setIsCreditApproved (false);
- setIsDelivered (false);
- setIsDiscountPrinted (false);
- setIsDropShip (false);
-// N
- setIsInvoiced (false);
- setIsPrinted (false);
- setIsSelected (false);
- setIsSelfService (false);
- setIsSOTrx (false);
-// @IsSOTrx@
- setIsTaxIncluded (false);
- setIsTransferred (false);
- setM_PriceList_ID (0);
- setM_Warehouse_ID (0);
- setPaymentRule (null);
-// B
- setPosted (false);
-// N
- setPriorityRule (null);
-// 5
- setProcessed (false);
- setSalesRep_ID (0);
- setSendEMail (false);
- setTotalLines (Env.ZERO);
- } */
- }
-
- /** Load Constructor */
- public X_C_Order (Properties ctx, ResultSet rs, String trxName)
- {
- super (ctx, rs, trxName);
- }
-
- /** AccessLevel
- * @return 1 - 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_C_Order[")
- .append(get_ID()).append("]");
- return sb.toString();
- }
-
- /** AD_OrgTrx_ID AD_Reference_ID=130 */
- public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
- /** Set Trx Organization.
- @param AD_OrgTrx_ID
- Performing or initiating organization
- */
- public void setAD_OrgTrx_ID (int AD_OrgTrx_ID)
- {
- if (AD_OrgTrx_ID < 1)
- set_Value (COLUMNNAME_AD_OrgTrx_ID, null);
- else
- set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID));
- }
-
- /** Get Trx Organization.
- @return Performing or initiating organization
- */
- public int getAD_OrgTrx_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_AD_User getAD_User() throws Exception
- {
- Class> clazz = MTable.getClass(I_AD_User.Table_Name);
- I_AD_User result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set User/Contact.
- @param AD_User_ID
- User within the system - Internal or Business Partner Contact
- */
- public void setAD_User_ID (int AD_User_ID)
- {
- if (AD_User_ID < 0)
- set_Value (COLUMNNAME_AD_User_ID, null);
- else
- set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
- }
-
- /** Get User/Contact.
- @return User within the system - Internal or Business Partner Contact
- */
- public int getAD_User_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set AmountRefunded.
- @param AmountRefunded AmountRefunded */
- public void setAmountRefunded (BigDecimal AmountRefunded)
- {
- set_Value (COLUMNNAME_AmountRefunded, AmountRefunded);
- }
-
- /** Get AmountRefunded.
- @return AmountRefunded */
- public BigDecimal getAmountRefunded ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmountRefunded);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** Set AmountTendered.
- @param AmountTendered AmountTendered */
- public void setAmountTendered (BigDecimal AmountTendered)
- {
- set_Value (COLUMNNAME_AmountTendered, AmountTendered);
- }
-
- /** Get AmountTendered.
- @return AmountTendered */
- public BigDecimal getAmountTendered ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmountTendered);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** Bill_BPartner_ID AD_Reference_ID=138 */
- public static final int BILL_BPARTNER_ID_AD_Reference_ID=138;
- /** Set Invoice Partner.
- @param Bill_BPartner_ID
- Business Partner to be invoiced
- */
- public void setBill_BPartner_ID (int Bill_BPartner_ID)
- {
- if (Bill_BPartner_ID < 1)
- set_Value (COLUMNNAME_Bill_BPartner_ID, null);
- else
- set_Value (COLUMNNAME_Bill_BPartner_ID, Integer.valueOf(Bill_BPartner_ID));
- }
-
- /** Get Invoice Partner.
- @return Business Partner to be invoiced
- */
- public int getBill_BPartner_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_Bill_BPartner_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Bill_Location_ID AD_Reference_ID=159 */
- public static final int BILL_LOCATION_ID_AD_Reference_ID=159;
- /** Set Invoice Location.
- @param Bill_Location_ID
- Business Partner Location for invoicing
- */
- public void setBill_Location_ID (int Bill_Location_ID)
- {
- if (Bill_Location_ID < 1)
- set_Value (COLUMNNAME_Bill_Location_ID, null);
- else
- set_Value (COLUMNNAME_Bill_Location_ID, Integer.valueOf(Bill_Location_ID));
- }
-
- /** Get Invoice Location.
- @return Business Partner Location for invoicing
- */
- public int getBill_Location_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_Bill_Location_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Bill_User_ID AD_Reference_ID=110 */
- public static final int BILL_USER_ID_AD_Reference_ID=110;
- /** Set Invoice Contact.
- @param Bill_User_ID
- Business Partner Contact for invoicing
- */
- public void setBill_User_ID (int Bill_User_ID)
- {
- if (Bill_User_ID < 1)
- set_Value (COLUMNNAME_Bill_User_ID, null);
- else
- set_Value (COLUMNNAME_Bill_User_ID, Integer.valueOf(Bill_User_ID));
- }
-
- /** Get Invoice Contact.
- @return Business Partner Contact for invoicing
- */
- public int getBill_User_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_Bill_User_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Activity getC_Activity() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Activity.Table_Name);
- I_C_Activity result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Activity.
- @param C_Activity_ID
- Business Activity
- */
- public void setC_Activity_ID (int C_Activity_ID)
- {
- if (C_Activity_ID < 1)
- set_Value (COLUMNNAME_C_Activity_ID, null);
- else
- set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID));
- }
-
- /** Get Activity.
- @return Business Activity
- */
- public int getC_Activity_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_BPartner getC_BPartner() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_BPartner.Table_Name);
- I_C_BPartner result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Business Partner .
- @param C_BPartner_ID
- Identifies a Business Partner
- */
- public void setC_BPartner_ID (int C_BPartner_ID)
- {
- if (C_BPartner_ID < 1)
- throw new IllegalArgumentException ("C_BPartner_ID is mandatory.");
- set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
- }
-
- /** Get Business Partner .
- @return Identifies a Business Partner
- */
- public int getC_BPartner_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_BPartner_Location getC_BPartner_Location() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_BPartner_Location.Table_Name);
- I_C_BPartner_Location result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Partner Location.
- @param C_BPartner_Location_ID
- Identifies the (ship to) address for this Business Partner
- */
- public void setC_BPartner_Location_ID (int C_BPartner_Location_ID)
- {
- if (C_BPartner_Location_ID < 1)
- throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory.");
- set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID));
- }
-
- /** Get Partner Location.
- @return Identifies the (ship to) address for this Business Partner
- */
- public int getC_BPartner_Location_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Campaign getC_Campaign() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Campaign.Table_Name);
- I_C_Campaign result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Campaign.
- @param C_Campaign_ID
- Marketing Campaign
- */
- public void setC_Campaign_ID (int C_Campaign_ID)
- {
- if (C_Campaign_ID < 1)
- set_Value (COLUMNNAME_C_Campaign_ID, null);
- else
- set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID));
- }
-
- /** Get Campaign.
- @return Marketing Campaign
- */
- public int getC_Campaign_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_CashLine getC_CashLine() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_CashLine.Table_Name);
- I_C_CashLine result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_CashLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CashLine_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Cash Journal Line.
- @param C_CashLine_ID
- Cash Journal Line
- */
- public void setC_CashLine_ID (int C_CashLine_ID)
- {
- if (C_CashLine_ID < 1)
- set_Value (COLUMNNAME_C_CashLine_ID, null);
- else
- set_Value (COLUMNNAME_C_CashLine_ID, Integer.valueOf(C_CashLine_ID));
- }
-
- /** Get Cash Journal Line.
- @return Cash Journal Line
- */
- public int getC_CashLine_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_CashLine_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** C_Charge_ID AD_Reference_ID=200 */
- public static final int C_CHARGE_ID_AD_Reference_ID=200;
- /** Set Charge.
- @param C_Charge_ID
- Additional document charges
- */
- public void setC_Charge_ID (int C_Charge_ID)
- {
- if (C_Charge_ID < 1)
- set_Value (COLUMNNAME_C_Charge_ID, null);
- else
- set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID));
- }
-
- /** Get Charge.
- @return Additional document charges
- */
- public int getC_Charge_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_ConversionType getC_ConversionType() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_ConversionType.Table_Name);
- I_C_ConversionType result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_ConversionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ConversionType_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Currency Type.
- @param C_ConversionType_ID
- Currency Conversion Rate Type
- */
- public void setC_ConversionType_ID (int C_ConversionType_ID)
- {
- if (C_ConversionType_ID < 1)
- set_Value (COLUMNNAME_C_ConversionType_ID, null);
- else
- set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID));
- }
-
- /** Get Currency Type.
- @return Currency Conversion Rate Type
- */
- public int getC_ConversionType_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Currency getC_Currency() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Currency.Table_Name);
- I_C_Currency result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Currency.
- @param C_Currency_ID
- The Currency for this record
- */
- public void setC_Currency_ID (int C_Currency_ID)
- {
- if (C_Currency_ID < 1)
- throw new IllegalArgumentException ("C_Currency_ID is mandatory.");
- set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID));
- }
-
- /** Get Currency.
- @return The Currency for this record
- */
- public int getC_Currency_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** C_DocType_ID AD_Reference_ID=170 */
- public static final int C_DOCTYPE_ID_AD_Reference_ID=170;
- public I_C_DocType getC_DocType() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_DocType.Table_Name);
- I_C_DocType result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** 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)
- throw new IllegalArgumentException ("C_DocType_ID is mandatory.");
- 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();
- }
-
- /** C_DocTypeTarget_ID AD_Reference_ID=170 */
- public static final int C_DOCTYPETARGET_ID_AD_Reference_ID=170;
- /** 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)
- throw new IllegalArgumentException ("C_DocTypeTarget_ID is mandatory.");
- set_Value (COLUMNNAME_C_DocTypeTarget_ID, Integer.valueOf(C_DocTypeTarget_ID));
- }
-
- /** Get Target Document Type.
- @return Target document type for conversing documents
- */
- public int getC_DocTypeTarget_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeTarget_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Charge amount.
- @param ChargeAmt
- Charge Amount
- */
- public void setChargeAmt (BigDecimal ChargeAmt)
- {
- set_Value (COLUMNNAME_ChargeAmt, ChargeAmt);
- }
-
- /** Get Charge amount.
- @return Charge Amount
- */
- public BigDecimal getChargeAmt ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeAmt);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** Set Copy From.
- @param CopyFrom
- Copy From Record
- */
- public void setCopyFrom (String CopyFrom)
- {
-
- if (CopyFrom != null && CopyFrom.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- CopyFrom = CopyFrom.substring(0, 1);
- }
- set_Value (COLUMNNAME_CopyFrom, CopyFrom);
- }
-
- /** Get Copy From.
- @return Copy From Record
- */
- public String getCopyFrom ()
- {
- return (String)get_Value(COLUMNNAME_CopyFrom);
- }
-
- /** Set Order.
- @param C_Order_ID
- Order
- */
- public void setC_Order_ID (int C_Order_ID)
- {
- if (C_Order_ID < 1)
- throw new IllegalArgumentException ("C_Order_ID is mandatory.");
- set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID));
- }
-
- /** Get Order.
- @return Order
- */
- public int getC_Order_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Payment getC_Payment() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Payment.Table_Name);
- I_C_Payment result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Payment.
- @param C_Payment_ID
- Payment identifier
- */
- public void setC_Payment_ID (int C_Payment_ID)
- {
- if (C_Payment_ID < 1)
- set_Value (COLUMNNAME_C_Payment_ID, null);
- else
- set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID));
- }
-
- /** Get Payment.
- @return Payment identifier
- */
- public int getC_Payment_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_PaymentTerm getC_PaymentTerm() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_PaymentTerm.Table_Name);
- I_C_PaymentTerm result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_PaymentTerm)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentTerm_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Payment Term.
- @param C_PaymentTerm_ID
- The terms of Payment (timing, discount)
- */
- public void setC_PaymentTerm_ID (int C_PaymentTerm_ID)
- {
- if (C_PaymentTerm_ID < 1)
- throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory.");
- set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID));
- }
-
- /** Get Payment Term.
- @return The terms of Payment (timing, discount)
- */
- public int getC_PaymentTerm_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentTerm_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_POS getC_POS() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_POS.Table_Name);
- I_C_POS result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_POS)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_POS_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set POS Terminal.
- @param C_POS_ID
- Point of Sales Terminal
- */
- public void setC_POS_ID (int C_POS_ID)
- {
- if (C_POS_ID < 1)
- set_Value (COLUMNNAME_C_POS_ID, null);
- else
- set_Value (COLUMNNAME_C_POS_ID, Integer.valueOf(C_POS_ID));
- }
-
- /** Get POS Terminal.
- @return Point of Sales Terminal
- */
- public int getC_POS_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_POS_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Project getC_Project() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Project.Table_Name);
- I_C_Project result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Project.
- @param C_Project_ID
- Financial Project
- */
- public void setC_Project_ID (int C_Project_ID)
- {
- if (C_Project_ID < 1)
- set_Value (COLUMNNAME_C_Project_ID, null);
- else
- set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID));
- }
-
- /** Get Project.
- @return Financial Project
- */
- public int getC_Project_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Account Date.
- @param DateAcct
- Accounting Date
- */
- public void setDateAcct (Timestamp DateAcct)
- {
- if (DateAcct == null)
- throw new IllegalArgumentException ("DateAcct is mandatory.");
- set_Value (COLUMNNAME_DateAcct, DateAcct);
- }
-
- /** Get Account Date.
- @return Accounting Date
- */
- public Timestamp getDateAcct ()
- {
- return (Timestamp)get_Value(COLUMNNAME_DateAcct);
- }
-
- /** Set Date Ordered.
- @param DateOrdered
- Date of Order
- */
- public void setDateOrdered (Timestamp DateOrdered)
- {
- if (DateOrdered == null)
- throw new IllegalArgumentException ("DateOrdered is mandatory.");
- set_Value (COLUMNNAME_DateOrdered, DateOrdered);
- }
-
- /** Get Date Ordered.
- @return Date of Order
- */
- public Timestamp getDateOrdered ()
- {
- return (Timestamp)get_Value(COLUMNNAME_DateOrdered);
- }
-
- /** Set Date printed.
- @param DatePrinted
- Date the document was printed.
- */
- public void setDatePrinted (Timestamp DatePrinted)
- {
- set_Value (COLUMNNAME_DatePrinted, DatePrinted);
- }
-
- /** Get Date printed.
- @return Date the document was printed.
- */
- public Timestamp getDatePrinted ()
- {
- return (Timestamp)get_Value(COLUMNNAME_DatePrinted);
- }
-
- /** Set Date Promised.
- @param DatePromised
- Date Order was promised
- */
- public void setDatePromised (Timestamp DatePromised)
- {
- if (DatePromised == null)
- throw new IllegalArgumentException ("DatePromised is mandatory.");
- set_Value (COLUMNNAME_DatePromised, DatePromised);
- }
-
- /** Get Date Promised.
- @return Date Order was promised
- */
- public Timestamp getDatePromised ()
- {
- return (Timestamp)get_Value(COLUMNNAME_DatePromised);
- }
-
- /** DeliveryRule AD_Reference_ID=151 */
- public static final int DELIVERYRULE_AD_Reference_ID=151;
- /** After Receipt = R */
- public static final String DELIVERYRULE_AfterReceipt = "R";
- /** Availability = A */
- public static final String DELIVERYRULE_Availability = "A";
- /** Complete Line = L */
- public static final String DELIVERYRULE_CompleteLine = "L";
- /** Complete Order = O */
- public static final String DELIVERYRULE_CompleteOrder = "O";
- /** Force = F */
- public static final String DELIVERYRULE_Force = "F";
- /** Manual = M */
- public static final String DELIVERYRULE_Manual = "M";
- /** Set Delivery Rule.
- @param DeliveryRule
- Defines the timing of Delivery
- */
- public void setDeliveryRule (String DeliveryRule)
- {
- if (DeliveryRule == null) throw new IllegalArgumentException ("DeliveryRule is mandatory");
- if (DeliveryRule.equals("R") || DeliveryRule.equals("A") || DeliveryRule.equals("L") || DeliveryRule.equals("O") || DeliveryRule.equals("F") || DeliveryRule.equals("M")); else throw new IllegalArgumentException ("DeliveryRule Invalid value - " + DeliveryRule + " - Reference_ID=151 - R - A - L - O - F - M");
- if (DeliveryRule.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- DeliveryRule = DeliveryRule.substring(0, 1);
- }
- set_Value (COLUMNNAME_DeliveryRule, DeliveryRule);
- }
-
- /** Get Delivery Rule.
- @return Defines the timing of Delivery
- */
- public String getDeliveryRule ()
- {
- return (String)get_Value(COLUMNNAME_DeliveryRule);
- }
-
- /** DeliveryViaRule AD_Reference_ID=152 */
- public static final int DELIVERYVIARULE_AD_Reference_ID=152;
- /** Pickup = P */
- public static final String DELIVERYVIARULE_Pickup = "P";
- /** Delivery = D */
- public static final String DELIVERYVIARULE_Delivery = "D";
- /** Shipper = S */
- public static final String DELIVERYVIARULE_Shipper = "S";
- /** Set Delivery Via.
- @param DeliveryViaRule
- How the order will be delivered
- */
- public void setDeliveryViaRule (String DeliveryViaRule)
- {
- if (DeliveryViaRule == null) throw new IllegalArgumentException ("DeliveryViaRule is mandatory");
- if (DeliveryViaRule.equals("P") || DeliveryViaRule.equals("D") || DeliveryViaRule.equals("S")); else throw new IllegalArgumentException ("DeliveryViaRule Invalid value - " + DeliveryViaRule + " - Reference_ID=152 - P - D - S");
- if (DeliveryViaRule.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- DeliveryViaRule = DeliveryViaRule.substring(0, 1);
- }
- set_Value (COLUMNNAME_DeliveryViaRule, DeliveryViaRule);
- }
-
- /** Get Delivery Via.
- @return How the order will be delivered
- */
- public String getDeliveryViaRule ()
- {
- return (String)get_Value(COLUMNNAME_DeliveryViaRule);
- }
-
- /** Set Description.
- @param Description
- Optional short description of the record
- */
- public void setDescription (String Description)
- {
-
- if (Description != null && Description.length() > 255)
- {
- log.warning("Length > 255 - truncated");
- Description = Description.substring(0, 255);
- }
- 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)
- {
- if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");
- if (DocAction.equals("CO") || DocAction.equals("AP") || DocAction.equals("RJ") || DocAction.equals("PO") || DocAction.equals("VO") || DocAction.equals("CL") || DocAction.equals("RC") || DocAction.equals("RA") || DocAction.equals("IN") || DocAction.equals("RE") || DocAction.equals("--") || DocAction.equals("PR") || DocAction.equals("XL") || DocAction.equals("WC")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - CO - AP - RJ - PO - VO - CL - RC - RA - IN - RE - -- - PR - XL - WC");
- if (DocAction.length() > 2)
- {
- log.warning("Length > 2 - truncated");
- DocAction = DocAction.substring(0, 2);
- }
- 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)
- {
- if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");
- if (DocStatus.equals("DR") || DocStatus.equals("CO") || DocStatus.equals("AP") || DocStatus.equals("NA") || DocStatus.equals("VO") || DocStatus.equals("IN") || DocStatus.equals("RE") || DocStatus.equals("CL") || DocStatus.equals("??") || DocStatus.equals("IP") || DocStatus.equals("WP") || DocStatus.equals("WC")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - DR - CO - AP - NA - VO - IN - RE - CL - ?? - IP - WP - WC");
- if (DocStatus.length() > 2)
- {
- log.warning("Length > 2 - truncated");
- DocStatus = DocStatus.substring(0, 2);
- }
- 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)
- {
- if (DocumentNo == null)
- throw new IllegalArgumentException ("DocumentNo is mandatory.");
-
- if (DocumentNo.length() > 30)
- {
- log.warning("Length > 30 - truncated");
- DocumentNo = DocumentNo.substring(0, 30);
- }
- set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo);
- }
-
- /** Get Document No.
- @return Document sequence number of the document
- */
- public String getDocumentNo ()
- {
- return (String)get_Value(COLUMNNAME_DocumentNo);
- }
-
- /** Get Record ID/ColumnName
- @return ID/ColumnName pair
- */
- public KeyNamePair getKeyNamePair()
- {
- return new KeyNamePair(get_ID(), getDocumentNo());
- }
-
- /** Set Freight Amount.
- @param FreightAmt
- Freight Amount
- */
- public void setFreightAmt (BigDecimal FreightAmt)
- {
- if (FreightAmt == null)
- throw new IllegalArgumentException ("FreightAmt is mandatory.");
- set_Value (COLUMNNAME_FreightAmt, FreightAmt);
- }
-
- /** Get Freight Amount.
- @return Freight Amount
- */
- public BigDecimal getFreightAmt ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FreightAmt);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** FreightCostRule AD_Reference_ID=153 */
- public static final int FREIGHTCOSTRULE_AD_Reference_ID=153;
- /** Freight included = I */
- public static final String FREIGHTCOSTRULE_FreightIncluded = "I";
- /** Fix price = F */
- public static final String FREIGHTCOSTRULE_FixPrice = "F";
- /** Calculated = C */
- public static final String FREIGHTCOSTRULE_Calculated = "C";
- /** Line = L */
- public static final String FREIGHTCOSTRULE_Line = "L";
- /** Set Freight Cost Rule.
- @param FreightCostRule
- Method for charging Freight
- */
- public void setFreightCostRule (String FreightCostRule)
- {
- if (FreightCostRule == null) throw new IllegalArgumentException ("FreightCostRule is mandatory");
- if (FreightCostRule.equals("I") || FreightCostRule.equals("F") || FreightCostRule.equals("C") || FreightCostRule.equals("L")); else throw new IllegalArgumentException ("FreightCostRule Invalid value - " + FreightCostRule + " - Reference_ID=153 - I - F - C - L");
- if (FreightCostRule.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- FreightCostRule = FreightCostRule.substring(0, 1);
- }
- set_Value (COLUMNNAME_FreightCostRule, FreightCostRule);
- }
-
- /** Get Freight Cost Rule.
- @return Method for charging Freight
- */
- public String getFreightCostRule ()
- {
- return (String)get_Value(COLUMNNAME_FreightCostRule);
- }
-
- /** Set Grand Total.
- @param GrandTotal
- Total amount of document
- */
- public void setGrandTotal (BigDecimal GrandTotal)
- {
- if (GrandTotal == null)
- throw new IllegalArgumentException ("GrandTotal is mandatory.");
- set_ValueNoCheck (COLUMNNAME_GrandTotal, GrandTotal);
- }
-
- /** Get Grand Total.
- @return Total amount of document
- */
- public BigDecimal getGrandTotal ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_GrandTotal);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** InvoiceRule AD_Reference_ID=150 */
- public static final int INVOICERULE_AD_Reference_ID=150;
- /** After Order delivered = O */
- public static final String INVOICERULE_AfterOrderDelivered = "O";
- /** After Delivery = D */
- public static final String INVOICERULE_AfterDelivery = "D";
- /** Customer Schedule after Delivery = S */
- public static final String INVOICERULE_CustomerScheduleAfterDelivery = "S";
- /** Immediate = I */
- public static final String INVOICERULE_Immediate = "I";
- /** Set Invoice Rule.
- @param InvoiceRule
- Frequency and method of invoicing
- */
- public void setInvoiceRule (String InvoiceRule)
- {
- if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is mandatory");
- if (InvoiceRule.equals("O") || InvoiceRule.equals("D") || InvoiceRule.equals("S") || InvoiceRule.equals("I")); else throw new IllegalArgumentException ("InvoiceRule Invalid value - " + InvoiceRule + " - Reference_ID=150 - O - D - S - I");
- if (InvoiceRule.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- InvoiceRule = InvoiceRule.substring(0, 1);
- }
- set_Value (COLUMNNAME_InvoiceRule, InvoiceRule);
- }
-
- /** Get Invoice Rule.
- @return Frequency and method of invoicing
- */
- public String getInvoiceRule ()
- {
- return (String)get_Value(COLUMNNAME_InvoiceRule);
- }
-
- /** 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 Credit Approved.
- @param IsCreditApproved
- Credit has been approved
- */
- public void setIsCreditApproved (boolean IsCreditApproved)
- {
- set_ValueNoCheck (COLUMNNAME_IsCreditApproved, Boolean.valueOf(IsCreditApproved));
- }
-
- /** Get Credit Approved.
- @return Credit has been approved
- */
- public boolean isCreditApproved ()
- {
- Object oo = get_Value(COLUMNNAME_IsCreditApproved);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Delivered.
- @param IsDelivered Delivered */
- public void setIsDelivered (boolean IsDelivered)
- {
- set_ValueNoCheck (COLUMNNAME_IsDelivered, Boolean.valueOf(IsDelivered));
- }
-
- /** Get Delivered.
- @return Delivered */
- public boolean isDelivered ()
- {
- Object oo = get_Value(COLUMNNAME_IsDelivered);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Discount Printed.
- @param IsDiscountPrinted
- Print Discount on Invoice and Order
- */
- public void setIsDiscountPrinted (boolean IsDiscountPrinted)
- {
- set_Value (COLUMNNAME_IsDiscountPrinted, Boolean.valueOf(IsDiscountPrinted));
- }
-
- /** Get Discount Printed.
- @return Print Discount on Invoice and Order
- */
- public boolean isDiscountPrinted ()
- {
- Object oo = get_Value(COLUMNNAME_IsDiscountPrinted);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Drop Shipment.
- @param IsDropShip
- Drop Shipments are sent from the Vendor directly to the Customer
- */
- public void setIsDropShip (boolean IsDropShip)
- {
- set_ValueNoCheck (COLUMNNAME_IsDropShip, Boolean.valueOf(IsDropShip));
- }
-
- /** Get Drop Shipment.
- @return Drop Shipments are sent from the Vendor directly to the Customer
- */
- public boolean isDropShip ()
- {
- Object oo = get_Value(COLUMNNAME_IsDropShip);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Invoiced.
- @param IsInvoiced
- Is this invoiced?
- */
- public void setIsInvoiced (boolean IsInvoiced)
- {
- set_ValueNoCheck (COLUMNNAME_IsInvoiced, Boolean.valueOf(IsInvoiced));
- }
-
- /** Get Invoiced.
- @return Is this invoiced?
- */
- public boolean isInvoiced ()
- {
- Object oo = get_Value(COLUMNNAME_IsInvoiced);
- 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 Selected.
- @param IsSelected Selected */
- public void setIsSelected (boolean IsSelected)
- {
- set_Value (COLUMNNAME_IsSelected, Boolean.valueOf(IsSelected));
- }
-
- /** Get Selected.
- @return Selected */
- public boolean isSelected ()
- {
- Object oo = get_Value(COLUMNNAME_IsSelected);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Self-Service.
- @param IsSelfService
- This is a Self-Service entry or this entry can be changed via Self-Service
- */
- public void setIsSelfService (boolean IsSelfService)
- {
- set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService));
- }
-
- /** Get Self-Service.
- @return This is a Self-Service entry or this entry can be changed via Self-Service
- */
- public boolean isSelfService ()
- {
- Object oo = get_Value(COLUMNNAME_IsSelfService);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Sales Transaction.
- @param IsSOTrx
- This is a Sales Transaction
- */
- public void setIsSOTrx (boolean IsSOTrx)
- {
- set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx));
- }
-
- /** Get Sales Transaction.
- @return This is a Sales Transaction
- */
- public boolean isSOTrx ()
- {
- Object oo = get_Value(COLUMNNAME_IsSOTrx);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Price includes Tax.
- @param IsTaxIncluded
- Tax is included in the price
- */
- public void setIsTaxIncluded (boolean IsTaxIncluded)
- {
- set_Value (COLUMNNAME_IsTaxIncluded, Boolean.valueOf(IsTaxIncluded));
- }
-
- /** Get Price includes Tax.
- @return Tax is included in the price
- */
- public boolean isTaxIncluded ()
- {
- Object oo = get_Value(COLUMNNAME_IsTaxIncluded);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Transferred.
- @param IsTransferred
- Transferred to General Ledger (i.e. accounted)
- */
- public void setIsTransferred (boolean IsTransferred)
- {
- set_ValueNoCheck (COLUMNNAME_IsTransferred, Boolean.valueOf(IsTransferred));
- }
-
- /** Get Transferred.
- @return Transferred to General Ledger (i.e. accounted)
- */
- public boolean isTransferred ()
- {
- Object oo = get_Value(COLUMNNAME_IsTransferred);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- public I_M_PriceList getM_PriceList() throws Exception
- {
- Class> clazz = MTable.getClass(I_M_PriceList.Table_Name);
- I_M_PriceList result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Price List.
- @param M_PriceList_ID
- Unique identifier of a Price List
- */
- public void setM_PriceList_ID (int M_PriceList_ID)
- {
- if (M_PriceList_ID < 1)
- throw new IllegalArgumentException ("M_PriceList_ID is mandatory.");
- set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID));
- }
-
- /** Get Price List.
- @return Unique identifier of a Price List
- */
- public int getM_PriceList_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_M_Shipper getM_Shipper() throws Exception
- {
- Class> clazz = MTable.getClass(I_M_Shipper.Table_Name);
- I_M_Shipper result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_M_Shipper)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Shipper_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Shipper.
- @param M_Shipper_ID
- Method or manner of product delivery
- */
- public void setM_Shipper_ID (int M_Shipper_ID)
- {
- if (M_Shipper_ID < 1)
- set_Value (COLUMNNAME_M_Shipper_ID, null);
- else
- set_Value (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID));
- }
-
- /** Get Shipper.
- @return Method or manner of product delivery
- */
- public int getM_Shipper_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_M_Shipper_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_M_Warehouse getM_Warehouse() throws Exception
- {
- Class> clazz = MTable.getClass(I_M_Warehouse.Table_Name);
- I_M_Warehouse result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** 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)
- throw new IllegalArgumentException ("M_Warehouse_ID is mandatory.");
- set_Value (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();
- }
-
- /** Set OrderType.
- @param OrderType OrderType */
- public void setOrderType (String OrderType)
- {
-
- if (OrderType != null && OrderType.length() > 510)
- {
- log.warning("Length > 510 - truncated");
- OrderType = OrderType.substring(0, 510);
- }
- set_Value (COLUMNNAME_OrderType, OrderType);
- }
-
- /** Get OrderType.
- @return OrderType */
- public String getOrderType ()
- {
- return (String)get_Value(COLUMNNAME_OrderType);
- }
-
- /** Set Payment BPartner.
- @param Pay_BPartner_ID
- Business Partner responsible for the payment
- */
- public void setPay_BPartner_ID (int Pay_BPartner_ID)
- {
- if (Pay_BPartner_ID < 1)
- set_Value (COLUMNNAME_Pay_BPartner_ID, null);
- else
- set_Value (COLUMNNAME_Pay_BPartner_ID, Integer.valueOf(Pay_BPartner_ID));
- }
-
- /** Get Payment BPartner.
- @return Business Partner responsible for the payment
- */
- public int getPay_BPartner_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_Pay_BPartner_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Payment Location.
- @param Pay_Location_ID
- Location of the Business Partner responsible for the payment
- */
- public void setPay_Location_ID (int Pay_Location_ID)
- {
- if (Pay_Location_ID < 1)
- set_Value (COLUMNNAME_Pay_Location_ID, null);
- else
- set_Value (COLUMNNAME_Pay_Location_ID, Integer.valueOf(Pay_Location_ID));
- }
-
- /** Get Payment Location.
- @return Location of the Business Partner responsible for the payment
- */
- public int getPay_Location_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_Pay_Location_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** PaymentRule AD_Reference_ID=195 */
- public static final int PAYMENTRULE_AD_Reference_ID=195;
- /** Cash = B */
- public static final String PAYMENTRULE_Cash = "B";
- /** Credit Card = K */
- public static final String PAYMENTRULE_CreditCard = "K";
- /** Direct Deposit = T */
- public static final String PAYMENTRULE_DirectDeposit = "T";
- /** Check = S */
- public static final String PAYMENTRULE_Check = "S";
- /** On Credit = P */
- public static final String PAYMENTRULE_OnCredit = "P";
- /** Direct Debit = D */
- public static final String PAYMENTRULE_DirectDebit = "D";
- /** Mixed = M */
- public static final String PAYMENTRULE_Mixed = "M";
- /** Set Payment Rule.
- @param PaymentRule
- How you pay the invoice
- */
- public void setPaymentRule (String PaymentRule)
- {
- if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory");
- if (PaymentRule.equals("B") || PaymentRule.equals("K") || PaymentRule.equals("T") || PaymentRule.equals("S") || PaymentRule.equals("P") || PaymentRule.equals("D") || PaymentRule.equals("M")); else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - K - T - S - P - D - M");
- if (PaymentRule.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- PaymentRule = PaymentRule.substring(0, 1);
- }
- set_Value (COLUMNNAME_PaymentRule, PaymentRule);
- }
-
- /** Get Payment Rule.
- @return How you pay the invoice
- */
- public String getPaymentRule ()
- {
- return (String)get_Value(COLUMNNAME_PaymentRule);
- }
-
- /** Set Order Reference.
- @param POReference
- Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner
- */
- public void setPOReference (String POReference)
- {
-
- if (POReference != null && POReference.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- POReference = POReference.substring(0, 20);
- }
- set_Value (COLUMNNAME_POReference, POReference);
- }
-
- /** Get Order Reference.
- @return Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner
- */
- public String getPOReference ()
- {
- return (String)get_Value(COLUMNNAME_POReference);
- }
-
- /** Set Posted.
- @param Posted
- Posting status
- */
- public void setPosted (boolean Posted)
- {
- set_Value (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;
- }
-
- /** PriorityRule AD_Reference_ID=154 */
- public static final int PRIORITYRULE_AD_Reference_ID=154;
- /** High = 3 */
- public static final String PRIORITYRULE_High = "3";
- /** Medium = 5 */
- public static final String PRIORITYRULE_Medium = "5";
- /** Low = 7 */
- public static final String PRIORITYRULE_Low = "7";
- /** Urgent = 1 */
- public static final String PRIORITYRULE_Urgent = "1";
- /** Minor = 9 */
- public static final String PRIORITYRULE_Minor = "9";
- /** Set Priority.
- @param PriorityRule
- Priority of a document
- */
- public void setPriorityRule (String PriorityRule)
- {
- if (PriorityRule == null) throw new IllegalArgumentException ("PriorityRule is mandatory");
- if (PriorityRule.equals("3") || PriorityRule.equals("5") || PriorityRule.equals("7") || PriorityRule.equals("1") || PriorityRule.equals("9")); else throw new IllegalArgumentException ("PriorityRule Invalid value - " + PriorityRule + " - Reference_ID=154 - 3 - 5 - 7 - 1 - 9");
- if (PriorityRule.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- PriorityRule = PriorityRule.substring(0, 1);
- }
- set_Value (COLUMNNAME_PriorityRule, PriorityRule);
- }
-
- /** Get Priority.
- @return Priority of a document
- */
- public String getPriorityRule ()
- {
- return (String)get_Value(COLUMNNAME_PriorityRule);
- }
-
- /** Set Processed.
- @param Processed
- The document has been processed
- */
- public void setProcessed (boolean Processed)
- {
- set_ValueNoCheck (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 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;
- }
-
- /** Ref_Order_ID AD_Reference_ID=290 */
- public static final int REF_ORDER_ID_AD_Reference_ID=290;
- /** Set Referenced Order.
- @param Ref_Order_ID
- Reference to corresponding Sales/Purchase Order
- */
- public void setRef_Order_ID (int Ref_Order_ID)
- {
- if (Ref_Order_ID < 1)
- set_Value (COLUMNNAME_Ref_Order_ID, null);
- else
- set_Value (COLUMNNAME_Ref_Order_ID, Integer.valueOf(Ref_Order_ID));
- }
-
- /** Get Referenced Order.
- @return Reference to corresponding Sales/Purchase Order
- */
- public int getRef_Order_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_Ref_Order_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** SalesRep_ID AD_Reference_ID=190 */
- public static final int SALESREP_ID_AD_Reference_ID=190;
- /** Set Sales Representative.
- @param SalesRep_ID
- Sales Representative or Company Agent
- */
- public void setSalesRep_ID (int SalesRep_ID)
- {
- if (SalesRep_ID < 1)
- throw new IllegalArgumentException ("SalesRep_ID is mandatory.");
- set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID));
- }
-
- /** Get Sales Representative.
- @return Sales Representative or Company Agent
- */
- public int getSalesRep_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Send EMail.
- @param SendEMail
- Enable sending Document EMail
- */
- public void setSendEMail (boolean SendEMail)
- {
- set_Value (COLUMNNAME_SendEMail, Boolean.valueOf(SendEMail));
- }
-
- /** Get Send EMail.
- @return Enable sending Document EMail
- */
- public boolean isSendEMail ()
- {
- Object oo = get_Value(COLUMNNAME_SendEMail);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Total Lines.
- @param TotalLines
- Total of all document lines
- */
- public void setTotalLines (BigDecimal TotalLines)
- {
- if (TotalLines == null)
- throw new IllegalArgumentException ("TotalLines is mandatory.");
- set_ValueNoCheck (COLUMNNAME_TotalLines, TotalLines);
- }
-
- /** Get Total Lines.
- @return Total of all document lines
- */
- public BigDecimal getTotalLines ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalLines);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** User1_ID AD_Reference_ID=134 */
- public static final int USER1_ID_AD_Reference_ID=134;
- /** Set User List 1.
- @param User1_ID
- User defined list element #1
- */
- public void setUser1_ID (int User1_ID)
- {
- if (User1_ID < 1)
- set_Value (COLUMNNAME_User1_ID, null);
- else
- set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID));
- }
-
- /** Get User List 1.
- @return User defined list element #1
- */
- public int getUser1_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** User2_ID AD_Reference_ID=137 */
- public static final int USER2_ID_AD_Reference_ID=137;
- /** Set User List 2.
- @param User2_ID
- User defined list element #2
- */
- public void setUser2_ID (int User2_ID)
- {
- if (User2_ID < 1)
- set_Value (COLUMNNAME_User2_ID, null);
- else
- set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID));
- }
-
- /** Get User List 2.
- @return User defined list element #2
- */
- public int getUser2_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Volume.
- @param Volume
- Volume of a product
- */
- public void setVolume (BigDecimal Volume)
- {
- set_Value (COLUMNNAME_Volume, Volume);
- }
-
- /** Get Volume.
- @return Volume of a product
- */
- public BigDecimal getVolume ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Volume);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** Set Weight.
- @param Weight
- Weight of a product
- */
- public void setWeight (BigDecimal Weight)
- {
- set_Value (COLUMNNAME_Weight, Weight);
- }
-
- /** Get Weight.
- @return Weight of a product
- */
- public BigDecimal getWeight ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Weight);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-}
\ No newline at end of file
diff --git a/posterita/posterita/src/main/org/compiere/model/X_C_Payment.java b/posterita/posterita/src/main/org/compiere/model/X_C_Payment.java
deleted file mode 100644
index 7e73a76dcc..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/X_C_Payment.java
+++ /dev/null
@@ -1,2242 +0,0 @@
-/******************************************************************************
- * Product: Adempiere ERP & CRM Smart Business Solution *
- * Copyright (C) 1999-2007 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 org.compiere.model;
-
-import java.lang.reflect.Constructor;
-import java.math.BigDecimal;
-import java.sql.ResultSet;
-import java.sql.Timestamp;
-import java.util.Properties;
-import java.util.logging.Level;
-import org.compiere.util.Env;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Model for C_Payment
- * @author Adempiere (generated)
- * @version Release 3.5.0 - $Id$ */
-public class X_C_Payment extends PO implements I_C_Payment, I_Persistent
-{
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /** Standard Constructor */
- public X_C_Payment (Properties ctx, int C_Payment_ID, String trxName)
- {
- super (ctx, C_Payment_ID, trxName);
- /** if (C_Payment_ID == 0)
- {
- setC_BPartner_ID (0);
- setC_BankAccount_ID (0);
- setC_Currency_ID (0);
- setC_DocType_ID (0);
- setC_Payment_ID (0);
- setDateAcct (new Timestamp(System.currentTimeMillis()));
-// @#Date@
- setDateTrx (new Timestamp(System.currentTimeMillis()));
-// @#Date@
- setDocAction (null);
-// CO
- setDocStatus (null);
-// DR
- setDocumentNo (null);
- setIsAllocated (false);
- setIsApproved (false);
-// N
- setIsDelayedCapture (false);
- setIsOnline (false);
- setIsOverUnderPayment (false);
-// N
- setIsPrepayment (false);
- setIsReceipt (false);
- setIsReconciled (false);
- setIsSelfService (false);
- setPayAmt (Env.ZERO);
-// 0
- setPosted (false);
-// N
- setProcessed (false);
- setTenderType (null);
-// K
- setTrxType (null);
-// S
- } */
- }
-
- /** Load Constructor */
- public X_C_Payment (Properties ctx, ResultSet rs, String trxName)
- {
- super (ctx, rs, trxName);
- }
-
- /** AccessLevel
- * @return 1 - 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_C_Payment[")
- .append(get_ID()).append("]");
- return sb.toString();
- }
-
- /** AD_OrgTrx_ID AD_Reference_ID=130 */
- public static final int AD_ORGTRX_ID_AD_Reference_ID=130;
- /** Set Trx Organization.
- @param AD_OrgTrx_ID
- Performing or initiating organization
- */
- public void setAD_OrgTrx_ID (int AD_OrgTrx_ID)
- {
- if (AD_OrgTrx_ID < 1)
- set_Value (COLUMNNAME_AD_OrgTrx_ID, null);
- else
- set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID));
- }
-
- /** Get Trx Organization.
- @return Performing or initiating organization
- */
- public int getAD_OrgTrx_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Account City.
- @param A_City
- City or the Credit Card or Account Holder
- */
- public void setA_City (String A_City)
- {
-
- if (A_City != null && A_City.length() > 60)
- {
- log.warning("Length > 60 - truncated");
- A_City = A_City.substring(0, 60);
- }
- set_Value (COLUMNNAME_A_City, A_City);
- }
-
- /** Get Account City.
- @return City or the Credit Card or Account Holder
- */
- public String getA_City ()
- {
- return (String)get_Value(COLUMNNAME_A_City);
- }
-
- /** Set Account Country.
- @param A_Country
- Country
- */
- public void setA_Country (String A_Country)
- {
-
- if (A_Country != null && A_Country.length() > 40)
- {
- log.warning("Length > 40 - truncated");
- A_Country = A_Country.substring(0, 40);
- }
- set_Value (COLUMNNAME_A_Country, A_Country);
- }
-
- /** Get Account Country.
- @return Country
- */
- public String getA_Country ()
- {
- return (String)get_Value(COLUMNNAME_A_Country);
- }
-
- /** Set Account EMail.
- @param A_EMail
- Email Address
- */
- public void setA_EMail (String A_EMail)
- {
-
- if (A_EMail != null && A_EMail.length() > 60)
- {
- log.warning("Length > 60 - truncated");
- A_EMail = A_EMail.substring(0, 60);
- }
- set_Value (COLUMNNAME_A_EMail, A_EMail);
- }
-
- /** Get Account EMail.
- @return Email Address
- */
- public String getA_EMail ()
- {
- return (String)get_Value(COLUMNNAME_A_EMail);
- }
-
- /** Set Driver License.
- @param A_Ident_DL
- Payment Identification - Driver License
- */
- public void setA_Ident_DL (String A_Ident_DL)
- {
-
- if (A_Ident_DL != null && A_Ident_DL.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- A_Ident_DL = A_Ident_DL.substring(0, 20);
- }
- set_Value (COLUMNNAME_A_Ident_DL, A_Ident_DL);
- }
-
- /** Get Driver License.
- @return Payment Identification - Driver License
- */
- public String getA_Ident_DL ()
- {
- return (String)get_Value(COLUMNNAME_A_Ident_DL);
- }
-
- /** Set Social Security No.
- @param A_Ident_SSN
- Payment Identification - Social Security No
- */
- public void setA_Ident_SSN (String A_Ident_SSN)
- {
-
- if (A_Ident_SSN != null && A_Ident_SSN.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- A_Ident_SSN = A_Ident_SSN.substring(0, 20);
- }
- set_Value (COLUMNNAME_A_Ident_SSN, A_Ident_SSN);
- }
-
- /** Get Social Security No.
- @return Payment Identification - Social Security No
- */
- public String getA_Ident_SSN ()
- {
- return (String)get_Value(COLUMNNAME_A_Ident_SSN);
- }
-
- /** Set Account Name.
- @param A_Name
- Name on Credit Card or Account holder
- */
- public void setA_Name (String A_Name)
- {
-
- if (A_Name != null && A_Name.length() > 60)
- {
- log.warning("Length > 60 - truncated");
- A_Name = A_Name.substring(0, 60);
- }
- set_Value (COLUMNNAME_A_Name, A_Name);
- }
-
- /** Get Account Name.
- @return Name on Credit Card or Account holder
- */
- public String getA_Name ()
- {
- return (String)get_Value(COLUMNNAME_A_Name);
- }
-
- /** Set Account State.
- @param A_State
- State of the Credit Card or Account holder
- */
- public void setA_State (String A_State)
- {
-
- if (A_State != null && A_State.length() > 40)
- {
- log.warning("Length > 40 - truncated");
- A_State = A_State.substring(0, 40);
- }
- set_Value (COLUMNNAME_A_State, A_State);
- }
-
- /** Get Account State.
- @return State of the Credit Card or Account holder
- */
- public String getA_State ()
- {
- return (String)get_Value(COLUMNNAME_A_State);
- }
-
- /** Set Account Street.
- @param A_Street
- Street address of the Credit Card or Account holder
- */
- public void setA_Street (String A_Street)
- {
-
- if (A_Street != null && A_Street.length() > 60)
- {
- log.warning("Length > 60 - truncated");
- A_Street = A_Street.substring(0, 60);
- }
- set_Value (COLUMNNAME_A_Street, A_Street);
- }
-
- /** Get Account Street.
- @return Street address of the Credit Card or Account holder
- */
- public String getA_Street ()
- {
- return (String)get_Value(COLUMNNAME_A_Street);
- }
-
- /** Set Account Zip/Postal.
- @param A_Zip
- Zip Code of the Credit Card or Account Holder
- */
- public void setA_Zip (String A_Zip)
- {
-
- if (A_Zip != null && A_Zip.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- A_Zip = A_Zip.substring(0, 20);
- }
- set_Value (COLUMNNAME_A_Zip, A_Zip);
- }
-
- /** Get Account Zip/Postal.
- @return Zip Code of the Credit Card or Account Holder
- */
- public String getA_Zip ()
- {
- return (String)get_Value(COLUMNNAME_A_Zip);
- }
-
- /** Set Account No.
- @param AccountNo
- Account Number
- */
- public void setAccountNo (String AccountNo)
- {
-
- if (AccountNo != null && AccountNo.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- AccountNo = AccountNo.substring(0, 20);
- }
- set_Value (COLUMNNAME_AccountNo, AccountNo);
- }
-
- /** Get Account No.
- @return Account Number
- */
- public String getAccountNo ()
- {
- return (String)get_Value(COLUMNNAME_AccountNo);
- }
-
- public I_C_Activity getC_Activity() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Activity.Table_Name);
- I_C_Activity result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Activity.
- @param C_Activity_ID
- Business Activity
- */
- public void setC_Activity_ID (int C_Activity_ID)
- {
- if (C_Activity_ID < 1)
- set_Value (COLUMNNAME_C_Activity_ID, null);
- else
- set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID));
- }
-
- /** Get Activity.
- @return Business Activity
- */
- public int getC_Activity_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_BP_BankAccount getC_BP_BankAccount() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_BP_BankAccount.Table_Name);
- I_C_BP_BankAccount result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_BP_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BP_BankAccount_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Partner Bank Account.
- @param C_BP_BankAccount_ID
- Bank Account of the Business Partner
- */
- public void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID)
- {
- if (C_BP_BankAccount_ID < 1)
- set_Value (COLUMNNAME_C_BP_BankAccount_ID, null);
- else
- set_Value (COLUMNNAME_C_BP_BankAccount_ID, Integer.valueOf(C_BP_BankAccount_ID));
- }
-
- /** Get Partner Bank Account.
- @return Bank Account of the Business Partner
- */
- public int getC_BP_BankAccount_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_BankAccount_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_BPartner getC_BPartner() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_BPartner.Table_Name);
- I_C_BPartner result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Business Partner .
- @param C_BPartner_ID
- Identifies a Business Partner
- */
- public void setC_BPartner_ID (int C_BPartner_ID)
- {
- if (C_BPartner_ID < 1)
- throw new IllegalArgumentException ("C_BPartner_ID is mandatory.");
- set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
- }
-
- /** Get Business Partner .
- @return Identifies a Business Partner
- */
- public int getC_BPartner_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_BankAccount getC_BankAccount() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_BankAccount.Table_Name);
- I_C_BankAccount result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankAccount_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Bank Account.
- @param C_BankAccount_ID
- Account at the Bank
- */
- public void setC_BankAccount_ID (int C_BankAccount_ID)
- {
- if (C_BankAccount_ID < 1)
- set_Value (COLUMNNAME_C_BankAccount_ID, null);
- else
- set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID));
- }
-
- /** Get Bank Account.
- @return Account at the Bank
- */
- public int getC_BankAccount_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Campaign getC_Campaign() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Campaign.Table_Name);
- I_C_Campaign result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Campaign.
- @param C_Campaign_ID
- Marketing Campaign
- */
- public void setC_Campaign_ID (int C_Campaign_ID)
- {
- if (C_Campaign_ID < 1)
- set_Value (COLUMNNAME_C_Campaign_ID, null);
- else
- set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID));
- }
-
- /** Get Campaign.
- @return Marketing Campaign
- */
- public int getC_Campaign_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_CashBook getC_CashBook() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_CashBook.Table_Name);
- I_C_CashBook result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_CashBook)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CashBook_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Cash Book.
- @param C_CashBook_ID
- Cash Book for recording petty cash transactions
- */
- public void setC_CashBook_ID (int C_CashBook_ID)
- {
- if (C_CashBook_ID < 1)
- set_Value (COLUMNNAME_C_CashBook_ID, null);
- else
- set_Value (COLUMNNAME_C_CashBook_ID, Integer.valueOf(C_CashBook_ID));
- }
-
- /** Get Cash Book.
- @return Cash Book for recording petty cash transactions
- */
- public int getC_CashBook_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_CashBook_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Charge getC_Charge() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Charge.Table_Name);
- I_C_Charge result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Charge.
- @param C_Charge_ID
- Additional document charges
- */
- public void setC_Charge_ID (int C_Charge_ID)
- {
- if (C_Charge_ID < 1)
- set_Value (COLUMNNAME_C_Charge_ID, null);
- else
- set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID));
- }
-
- /** Get Charge.
- @return Additional document charges
- */
- public int getC_Charge_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_ConversionType getC_ConversionType() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_ConversionType.Table_Name);
- I_C_ConversionType result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_ConversionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ConversionType_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Currency Type.
- @param C_ConversionType_ID
- Currency Conversion Rate Type
- */
- public void setC_ConversionType_ID (int C_ConversionType_ID)
- {
- if (C_ConversionType_ID < 1)
- set_Value (COLUMNNAME_C_ConversionType_ID, null);
- else
- set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID));
- }
-
- /** Get Currency Type.
- @return Currency Conversion Rate Type
- */
- public int getC_ConversionType_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Currency getC_Currency() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Currency.Table_Name);
- I_C_Currency result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Currency.
- @param C_Currency_ID
- The Currency for this record
- */
- public void setC_Currency_ID (int C_Currency_ID)
- {
- if (C_Currency_ID < 1)
- throw new IllegalArgumentException ("C_Currency_ID is mandatory.");
- set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID));
- }
-
- /** Get Currency.
- @return The Currency for this record
- */
- public int getC_Currency_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_DocType getC_DocType() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_DocType.Table_Name);
- I_C_DocType result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** 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)
- throw new IllegalArgumentException ("C_DocType_ID is mandatory.");
- set_Value (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 I_C_Invoice getC_Invoice() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Invoice.Table_Name);
- I_C_Invoice result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Invoice.
- @param C_Invoice_ID
- Invoice Identifier
- */
- public void setC_Invoice_ID (int C_Invoice_ID)
- {
- if (C_Invoice_ID < 1)
- set_Value (COLUMNNAME_C_Invoice_ID, null);
- else
- set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID));
- }
-
- /** Get Invoice.
- @return Invoice Identifier
- */
- public int getC_Invoice_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Order getC_Order() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Order.Table_Name);
- I_C_Order result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Order.
- @param C_Order_ID
- Order
- */
- public void setC_Order_ID (int C_Order_ID)
- {
- if (C_Order_ID < 1)
- set_Value (COLUMNNAME_C_Order_ID, null);
- else
- set_Value (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID));
- }
-
- /** Get Order.
- @return Order
- */
- public int getC_Order_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_PaymentBatch getC_PaymentBatch() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_PaymentBatch.Table_Name);
- I_C_PaymentBatch result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_PaymentBatch)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentBatch_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Payment Batch.
- @param C_PaymentBatch_ID
- Payment batch for EFT
- */
- public void setC_PaymentBatch_ID (int C_PaymentBatch_ID)
- {
- if (C_PaymentBatch_ID < 1)
- set_Value (COLUMNNAME_C_PaymentBatch_ID, null);
- else
- set_Value (COLUMNNAME_C_PaymentBatch_ID, Integer.valueOf(C_PaymentBatch_ID));
- }
-
- /** Get Payment Batch.
- @return Payment batch for EFT
- */
- public int getC_PaymentBatch_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentBatch_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Payment.
- @param C_Payment_ID
- Payment identifier
- */
- public void setC_Payment_ID (int C_Payment_ID)
- {
- if (C_Payment_ID < 1)
- throw new IllegalArgumentException ("C_Payment_ID is mandatory.");
- set_ValueNoCheck (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID));
- }
-
- /** Get Payment.
- @return Payment identifier
- */
- public int getC_Payment_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Project getC_Project() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Project.Table_Name);
- I_C_Project result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Project.
- @param C_Project_ID
- Financial Project
- */
- public void setC_Project_ID (int C_Project_ID)
- {
- if (C_Project_ID < 1)
- set_Value (COLUMNNAME_C_Project_ID, null);
- else
- set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID));
- }
-
- /** Get Project.
- @return Financial Project
- */
- public int getC_Project_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Charge amount.
- @param ChargeAmt
- Charge Amount
- */
- public void setChargeAmt (BigDecimal ChargeAmt)
- {
- set_Value (COLUMNNAME_ChargeAmt, ChargeAmt);
- }
-
- /** Get Charge amount.
- @return Charge Amount
- */
- public BigDecimal getChargeAmt ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeAmt);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** Set Check No.
- @param CheckNo
- Check Number
- */
- public void setCheckNo (String CheckNo)
- {
-
- if (CheckNo != null && CheckNo.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- CheckNo = CheckNo.substring(0, 20);
- }
- set_Value (COLUMNNAME_CheckNo, CheckNo);
- }
-
- /** Get Check No.
- @return Check Number
- */
- public String getCheckNo ()
- {
- return (String)get_Value(COLUMNNAME_CheckNo);
- }
-
- /** Set Exp. Month.
- @param CreditCardExpMM
- Expiry Month
- */
- public void setCreditCardExpMM (int CreditCardExpMM)
- {
- set_Value (COLUMNNAME_CreditCardExpMM, Integer.valueOf(CreditCardExpMM));
- }
-
- /** Get Exp. Month.
- @return Expiry Month
- */
- public int getCreditCardExpMM ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_CreditCardExpMM);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Exp. Year.
- @param CreditCardExpYY
- Expiry Year
- */
- public void setCreditCardExpYY (int CreditCardExpYY)
- {
- set_Value (COLUMNNAME_CreditCardExpYY, Integer.valueOf(CreditCardExpYY));
- }
-
- /** Get Exp. Year.
- @return Expiry Year
- */
- public int getCreditCardExpYY ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_CreditCardExpYY);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Number.
- @param CreditCardNumber
- Credit Card Number
- */
- public void setCreditCardNumber (String CreditCardNumber)
- {
-
- if (CreditCardNumber != null && CreditCardNumber.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- CreditCardNumber = CreditCardNumber.substring(0, 20);
- }
- set_Value (COLUMNNAME_CreditCardNumber, CreditCardNumber);
- }
-
- /** Get Number.
- @return Credit Card Number
- */
- public String getCreditCardNumber ()
- {
- return (String)get_Value(COLUMNNAME_CreditCardNumber);
- }
-
- /** CreditCardType AD_Reference_ID=149 */
- public static final int CREDITCARDTYPE_AD_Reference_ID=149;
- /** Amex = A */
- public static final String CREDITCARDTYPE_Amex = "A";
- /** MasterCard = M */
- public static final String CREDITCARDTYPE_MasterCard = "M";
- /** Visa = V */
- public static final String CREDITCARDTYPE_Visa = "V";
- /** ATM = C */
- public static final String CREDITCARDTYPE_ATM = "C";
- /** Diners = D */
- public static final String CREDITCARDTYPE_Diners = "D";
- /** Discover = N */
- public static final String CREDITCARDTYPE_Discover = "N";
- /** Purchase Card = P */
- public static final String CREDITCARDTYPE_PurchaseCard = "P";
- /** Set Credit Card.
- @param CreditCardType
- Credit Card (Visa, MC, AmEx)
- */
- public void setCreditCardType (String CreditCardType)
- {
-
- if (CreditCardType == null || CreditCardType.equals("A") || CreditCardType.equals("M") || CreditCardType.equals("V") || CreditCardType.equals("C") || CreditCardType.equals("D") || CreditCardType.equals("N") || CreditCardType.equals("P")); else throw new IllegalArgumentException ("CreditCardType Invalid value - " + CreditCardType + " - Reference_ID=149 - A - M - V - C - D - N - P");
- if (CreditCardType != null && CreditCardType.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- CreditCardType = CreditCardType.substring(0, 1);
- }
- set_Value (COLUMNNAME_CreditCardType, CreditCardType);
- }
-
- /** Get Credit Card.
- @return Credit Card (Visa, MC, AmEx)
- */
- public String getCreditCardType ()
- {
- return (String)get_Value(COLUMNNAME_CreditCardType);
- }
-
- /** Set Verification Code.
- @param CreditCardVV
- Credit Card Verification code on credit card
- */
- public void setCreditCardVV (String CreditCardVV)
- {
-
- if (CreditCardVV != null && CreditCardVV.length() > 4)
- {
- log.warning("Length > 4 - truncated");
- CreditCardVV = CreditCardVV.substring(0, 4);
- }
- set_Value (COLUMNNAME_CreditCardVV, CreditCardVV);
- }
-
- /** Get Verification Code.
- @return Credit Card Verification code on credit card
- */
- public String getCreditCardVV ()
- {
- return (String)get_Value(COLUMNNAME_CreditCardVV);
- }
-
- /** Set Account Date.
- @param DateAcct
- Accounting Date
- */
- public void setDateAcct (Timestamp DateAcct)
- {
- if (DateAcct == null)
- throw new IllegalArgumentException ("DateAcct is mandatory.");
- set_Value (COLUMNNAME_DateAcct, DateAcct);
- }
-
- /** Get Account Date.
- @return Accounting Date
- */
- public Timestamp getDateAcct ()
- {
- return (Timestamp)get_Value(COLUMNNAME_DateAcct);
- }
-
- /** Set Transaction Date.
- @param DateTrx
- Transaction Date
- */
- public void setDateTrx (Timestamp DateTrx)
- {
- if (DateTrx == null)
- throw new IllegalArgumentException ("DateTrx is mandatory.");
- set_Value (COLUMNNAME_DateTrx, DateTrx);
- }
-
- /** Get Transaction Date.
- @return Transaction Date
- */
- public Timestamp getDateTrx ()
- {
- return (Timestamp)get_Value(COLUMNNAME_DateTrx);
- }
-
- /** Set Description.
- @param Description
- Optional short description of the record
- */
- public void setDescription (String Description)
- {
-
- if (Description != null && Description.length() > 255)
- {
- log.warning("Length > 255 - truncated");
- Description = Description.substring(0, 255);
- }
- set_Value (COLUMNNAME_Description, Description);
- }
-
- /** Get Description.
- @return Optional short description of the record
- */
- public String getDescription ()
- {
- return (String)get_Value(COLUMNNAME_Description);
- }
-
- /** Set Discount Amount.
- @param DiscountAmt
- Calculated amount of discount
- */
- public void setDiscountAmt (BigDecimal DiscountAmt)
- {
- set_Value (COLUMNNAME_DiscountAmt, DiscountAmt);
- }
-
- /** Get Discount Amount.
- @return Calculated amount of discount
- */
- public BigDecimal getDiscountAmt ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DiscountAmt);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** 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)
- {
- if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");
- if (DocAction.equals("CO") || DocAction.equals("AP") || DocAction.equals("RJ") || DocAction.equals("PO") || DocAction.equals("VO") || DocAction.equals("CL") || DocAction.equals("RC") || DocAction.equals("RA") || DocAction.equals("IN") || DocAction.equals("RE") || DocAction.equals("--") || DocAction.equals("PR") || DocAction.equals("XL") || DocAction.equals("WC")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - CO - AP - RJ - PO - VO - CL - RC - RA - IN - RE - -- - PR - XL - WC");
- if (DocAction.length() > 2)
- {
- log.warning("Length > 2 - truncated");
- DocAction = DocAction.substring(0, 2);
- }
- 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)
- {
- if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");
- if (DocStatus.equals("DR") || DocStatus.equals("CO") || DocStatus.equals("AP") || DocStatus.equals("NA") || DocStatus.equals("VO") || DocStatus.equals("IN") || DocStatus.equals("RE") || DocStatus.equals("CL") || DocStatus.equals("??") || DocStatus.equals("IP") || DocStatus.equals("WP") || DocStatus.equals("WC")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - DR - CO - AP - NA - VO - IN - RE - CL - ?? - IP - WP - WC");
- if (DocStatus.length() > 2)
- {
- log.warning("Length > 2 - truncated");
- DocStatus = DocStatus.substring(0, 2);
- }
- 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)
- {
- if (DocumentNo == null)
- throw new IllegalArgumentException ("DocumentNo is mandatory.");
-
- if (DocumentNo.length() > 30)
- {
- log.warning("Length > 30 - truncated");
- DocumentNo = DocumentNo.substring(0, 30);
- }
- set_Value (COLUMNNAME_DocumentNo, DocumentNo);
- }
-
- /** Get Document No.
- @return Document sequence number of the document
- */
- public String getDocumentNo ()
- {
- return (String)get_Value(COLUMNNAME_DocumentNo);
- }
-
- /** Get Record ID/ColumnName
- @return ID/ColumnName pair
- */
- public KeyNamePair getKeyNamePair()
- {
- return new KeyNamePair(get_ID(), getDocumentNo());
- }
-
- /** Set Allocated.
- @param IsAllocated
- Indicates if the payment has been allocated
- */
- public void setIsAllocated (boolean IsAllocated)
- {
- set_Value (COLUMNNAME_IsAllocated, Boolean.valueOf(IsAllocated));
- }
-
- /** Get Allocated.
- @return Indicates if the payment has been allocated
- */
- public boolean isAllocated ()
- {
- Object oo = get_Value(COLUMNNAME_IsAllocated);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** 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 Delayed Capture.
- @param IsDelayedCapture
- Charge after Shipment
- */
- public void setIsDelayedCapture (boolean IsDelayedCapture)
- {
- set_Value (COLUMNNAME_IsDelayedCapture, Boolean.valueOf(IsDelayedCapture));
- }
-
- /** Get Delayed Capture.
- @return Charge after Shipment
- */
- public boolean isDelayedCapture ()
- {
- Object oo = get_Value(COLUMNNAME_IsDelayedCapture);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Online Access.
- @param IsOnline
- Can be accessed online
- */
- public void setIsOnline (boolean IsOnline)
- {
- set_Value (COLUMNNAME_IsOnline, Boolean.valueOf(IsOnline));
- }
-
- /** Get Online Access.
- @return Can be accessed online
- */
- public boolean isOnline ()
- {
- Object oo = get_Value(COLUMNNAME_IsOnline);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Over/Under Payment.
- @param IsOverUnderPayment
- Over-Payment (unallocated) or Under-Payment (partial payment)
- */
- public void setIsOverUnderPayment (boolean IsOverUnderPayment)
- {
- set_Value (COLUMNNAME_IsOverUnderPayment, Boolean.valueOf(IsOverUnderPayment));
- }
-
- /** Get Over/Under Payment.
- @return Over-Payment (unallocated) or Under-Payment (partial payment)
- */
- public boolean isOverUnderPayment ()
- {
- Object oo = get_Value(COLUMNNAME_IsOverUnderPayment);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Prepayment.
- @param IsPrepayment
- The Payment/Receipt is a Prepayment
- */
- public void setIsPrepayment (boolean IsPrepayment)
- {
- set_Value (COLUMNNAME_IsPrepayment, Boolean.valueOf(IsPrepayment));
- }
-
- /** Get Prepayment.
- @return The Payment/Receipt is a Prepayment
- */
- public boolean isPrepayment ()
- {
- Object oo = get_Value(COLUMNNAME_IsPrepayment);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Receipt.
- @param IsReceipt
- This is a sales transaction (receipt)
- */
- public void setIsReceipt (boolean IsReceipt)
- {
- set_Value (COLUMNNAME_IsReceipt, Boolean.valueOf(IsReceipt));
- }
-
- /** Get Receipt.
- @return This is a sales transaction (receipt)
- */
- public boolean isReceipt ()
- {
- Object oo = get_Value(COLUMNNAME_IsReceipt);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Reconciled.
- @param IsReconciled
- Payment is reconciled with bank statement
- */
- public void setIsReconciled (boolean IsReconciled)
- {
- set_Value (COLUMNNAME_IsReconciled, Boolean.valueOf(IsReconciled));
- }
-
- /** Get Reconciled.
- @return Payment is reconciled with bank statement
- */
- public boolean isReconciled ()
- {
- Object oo = get_Value(COLUMNNAME_IsReconciled);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Self-Service.
- @param IsSelfService
- This is a Self-Service entry or this entry can be changed via Self-Service
- */
- public void setIsSelfService (boolean IsSelfService)
- {
- set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService));
- }
-
- /** Get Self-Service.
- @return This is a Self-Service entry or this entry can be changed via Self-Service
- */
- public boolean isSelfService ()
- {
- Object oo = get_Value(COLUMNNAME_IsSelfService);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Micr.
- @param Micr
- Combination of routing no, account and check no
- */
- public void setMicr (String Micr)
- {
-
- if (Micr != null && Micr.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- Micr = Micr.substring(0, 20);
- }
- set_Value (COLUMNNAME_Micr, Micr);
- }
-
- /** Get Micr.
- @return Combination of routing no, account and check no
- */
- public String getMicr ()
- {
- return (String)get_Value(COLUMNNAME_Micr);
- }
-
- /** Set Online Processing.
- @param OProcessing
- This payment can be processed online
- */
- public void setOProcessing (String OProcessing)
- {
-
- if (OProcessing != null && OProcessing.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- OProcessing = OProcessing.substring(0, 1);
- }
- set_Value (COLUMNNAME_OProcessing, OProcessing);
- }
-
- /** Get Online Processing.
- @return This payment can be processed online
- */
- public String getOProcessing ()
- {
- return (String)get_Value(COLUMNNAME_OProcessing);
- }
-
- /** Set Original Transaction ID.
- @param Orig_TrxID
- Original Transaction ID
- */
- public void setOrig_TrxID (String Orig_TrxID)
- {
-
- if (Orig_TrxID != null && Orig_TrxID.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- Orig_TrxID = Orig_TrxID.substring(0, 20);
- }
- set_Value (COLUMNNAME_Orig_TrxID, Orig_TrxID);
- }
-
- /** Get Original Transaction ID.
- @return Original Transaction ID
- */
- public String getOrig_TrxID ()
- {
- return (String)get_Value(COLUMNNAME_Orig_TrxID);
- }
-
- /** Set Over/Under Payment.
- @param OverUnderAmt
- Over-Payment (unallocated) or Under-Payment (partial payment) Amount
- */
- public void setOverUnderAmt (BigDecimal OverUnderAmt)
- {
- set_Value (COLUMNNAME_OverUnderAmt, OverUnderAmt);
- }
-
- /** Get Over/Under Payment.
- @return Over-Payment (unallocated) or Under-Payment (partial payment) Amount
- */
- public BigDecimal getOverUnderAmt ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OverUnderAmt);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** Set PO Number.
- @param PONum
- Purchase Order Number
- */
- public void setPONum (String PONum)
- {
-
- if (PONum != null && PONum.length() > 60)
- {
- log.warning("Length > 60 - truncated");
- PONum = PONum.substring(0, 60);
- }
- set_Value (COLUMNNAME_PONum, PONum);
- }
-
- /** Get PO Number.
- @return Purchase Order Number
- */
- public String getPONum ()
- {
- return (String)get_Value(COLUMNNAME_PONum);
- }
-
- /** Set Payment amount.
- @param PayAmt
- Amount being paid
- */
- public void setPayAmt (BigDecimal PayAmt)
- {
- if (PayAmt == null)
- throw new IllegalArgumentException ("PayAmt is mandatory.");
- set_Value (COLUMNNAME_PayAmt, PayAmt);
- }
-
- /** Get Payment amount.
- @return Amount being paid
- */
- public BigDecimal getPayAmt ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PayAmt);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** Set Posted.
- @param Posted
- Posting status
- */
- public void setPosted (boolean Posted)
- {
- set_Value (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;
- }
-
- /** 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 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 Authorization Code.
- @param R_AuthCode
- Authorization Code returned
- */
- public void setR_AuthCode (String R_AuthCode)
- {
-
- if (R_AuthCode != null && R_AuthCode.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- R_AuthCode = R_AuthCode.substring(0, 20);
- }
- set_ValueNoCheck (COLUMNNAME_R_AuthCode, R_AuthCode);
- }
-
- /** Get Authorization Code.
- @return Authorization Code returned
- */
- public String getR_AuthCode ()
- {
- return (String)get_Value(COLUMNNAME_R_AuthCode);
- }
-
- /** Set Authorization Code (DC).
- @param R_AuthCode_DC
- Authorization Code Delayed Capture returned
- */
- public void setR_AuthCode_DC (String R_AuthCode_DC)
- {
-
- if (R_AuthCode_DC != null && R_AuthCode_DC.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- R_AuthCode_DC = R_AuthCode_DC.substring(0, 20);
- }
- set_ValueNoCheck (COLUMNNAME_R_AuthCode_DC, R_AuthCode_DC);
- }
-
- /** Get Authorization Code (DC).
- @return Authorization Code Delayed Capture returned
- */
- public String getR_AuthCode_DC ()
- {
- return (String)get_Value(COLUMNNAME_R_AuthCode_DC);
- }
-
- /** R_AvsAddr AD_Reference_ID=213 */
- public static final int R_AVSADDR_AD_Reference_ID=213;
- /** Match = Y */
- public static final String R_AVSADDR_Match = "Y";
- /** No Match = N */
- public static final String R_AVSADDR_NoMatch = "N";
- /** Unavailable = X */
- public static final String R_AVSADDR_Unavailable = "X";
- /** Set Address verified.
- @param R_AvsAddr
- This address has been verified
- */
- public void setR_AvsAddr (String R_AvsAddr)
- {
-
- if (R_AvsAddr == null || R_AvsAddr.equals("Y") || R_AvsAddr.equals("N") || R_AvsAddr.equals("X")); else throw new IllegalArgumentException ("R_AvsAddr Invalid value - " + R_AvsAddr + " - Reference_ID=213 - Y - N - X");
- if (R_AvsAddr != null && R_AvsAddr.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- R_AvsAddr = R_AvsAddr.substring(0, 1);
- }
- set_ValueNoCheck (COLUMNNAME_R_AvsAddr, R_AvsAddr);
- }
-
- /** Get Address verified.
- @return This address has been verified
- */
- public String getR_AvsAddr ()
- {
- return (String)get_Value(COLUMNNAME_R_AvsAddr);
- }
-
- /** R_AvsZip AD_Reference_ID=213 */
- public static final int R_AVSZIP_AD_Reference_ID=213;
- /** Match = Y */
- public static final String R_AVSZIP_Match = "Y";
- /** No Match = N */
- public static final String R_AVSZIP_NoMatch = "N";
- /** Unavailable = X */
- public static final String R_AVSZIP_Unavailable = "X";
- /** Set Zip verified.
- @param R_AvsZip
- The Zip Code has been verified
- */
- public void setR_AvsZip (String R_AvsZip)
- {
-
- if (R_AvsZip == null || R_AvsZip.equals("Y") || R_AvsZip.equals("N") || R_AvsZip.equals("X")); else throw new IllegalArgumentException ("R_AvsZip Invalid value - " + R_AvsZip + " - Reference_ID=213 - Y - N - X");
- if (R_AvsZip != null && R_AvsZip.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- R_AvsZip = R_AvsZip.substring(0, 1);
- }
- set_ValueNoCheck (COLUMNNAME_R_AvsZip, R_AvsZip);
- }
-
- /** Get Zip verified.
- @return The Zip Code has been verified
- */
- public String getR_AvsZip ()
- {
- return (String)get_Value(COLUMNNAME_R_AvsZip);
- }
-
- /** Set CVV Match.
- @param R_CVV2Match
- Credit Card Verification Code Match
- */
- public void setR_CVV2Match (boolean R_CVV2Match)
- {
- set_ValueNoCheck (COLUMNNAME_R_CVV2Match, Boolean.valueOf(R_CVV2Match));
- }
-
- /** Get CVV Match.
- @return Credit Card Verification Code Match
- */
- public boolean isR_CVV2Match ()
- {
- Object oo = get_Value(COLUMNNAME_R_CVV2Match);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Info.
- @param R_Info
- Response info
- */
- public void setR_Info (String R_Info)
- {
-
- if (R_Info != null && R_Info.length() > 2000)
- {
- log.warning("Length > 2000 - truncated");
- R_Info = R_Info.substring(0, 2000);
- }
- set_ValueNoCheck (COLUMNNAME_R_Info, R_Info);
- }
-
- /** Get Info.
- @return Response info
- */
- public String getR_Info ()
- {
- return (String)get_Value(COLUMNNAME_R_Info);
- }
-
- /** Set Reference.
- @param R_PnRef
- Payment reference
- */
- public void setR_PnRef (String R_PnRef)
- {
-
- if (R_PnRef != null && R_PnRef.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- R_PnRef = R_PnRef.substring(0, 20);
- }
- set_ValueNoCheck (COLUMNNAME_R_PnRef, R_PnRef);
- }
-
- /** Get Reference.
- @return Payment reference
- */
- public String getR_PnRef ()
- {
- return (String)get_Value(COLUMNNAME_R_PnRef);
- }
-
- /** Set Reference (DC).
- @param R_PnRef_DC
- Payment Reference Delayed Capture
- */
- public void setR_PnRef_DC (String R_PnRef_DC)
- {
-
- if (R_PnRef_DC != null && R_PnRef_DC.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- R_PnRef_DC = R_PnRef_DC.substring(0, 20);
- }
- set_ValueNoCheck (COLUMNNAME_R_PnRef_DC, R_PnRef_DC);
- }
-
- /** Get Reference (DC).
- @return Payment Reference Delayed Capture
- */
- public String getR_PnRef_DC ()
- {
- return (String)get_Value(COLUMNNAME_R_PnRef_DC);
- }
-
- /** Set Response Message.
- @param R_RespMsg
- Response message
- */
- public void setR_RespMsg (String R_RespMsg)
- {
-
- if (R_RespMsg != null && R_RespMsg.length() > 60)
- {
- log.warning("Length > 60 - truncated");
- R_RespMsg = R_RespMsg.substring(0, 60);
- }
- set_ValueNoCheck (COLUMNNAME_R_RespMsg, R_RespMsg);
- }
-
- /** Get Response Message.
- @return Response message
- */
- public String getR_RespMsg ()
- {
- return (String)get_Value(COLUMNNAME_R_RespMsg);
- }
-
- /** Set Result.
- @param R_Result
- Result of transmission
- */
- public void setR_Result (String R_Result)
- {
-
- if (R_Result != null && R_Result.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- R_Result = R_Result.substring(0, 20);
- }
- set_ValueNoCheck (COLUMNNAME_R_Result, R_Result);
- }
-
- /** Get Result.
- @return Result of transmission
- */
- public String getR_Result ()
- {
- return (String)get_Value(COLUMNNAME_R_Result);
- }
-
- /** Ref_Payment_ID AD_Reference_ID=343 */
- public static final int REF_PAYMENT_ID_AD_Reference_ID=343;
- /** Set Referenced Payment.
- @param Ref_Payment_ID Referenced Payment */
- public void setRef_Payment_ID (int Ref_Payment_ID)
- {
- if (Ref_Payment_ID < 1)
- set_ValueNoCheck (COLUMNNAME_Ref_Payment_ID, null);
- else
- set_ValueNoCheck (COLUMNNAME_Ref_Payment_ID, Integer.valueOf(Ref_Payment_ID));
- }
-
- /** Get Referenced Payment.
- @return Referenced Payment */
- public int getRef_Payment_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_Ref_Payment_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Routing No.
- @param RoutingNo
- Bank Routing Number
- */
- public void setRoutingNo (String RoutingNo)
- {
-
- if (RoutingNo != null && RoutingNo.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- RoutingNo = RoutingNo.substring(0, 20);
- }
- set_Value (COLUMNNAME_RoutingNo, RoutingNo);
- }
-
- /** Get Routing No.
- @return Bank Routing Number
- */
- public String getRoutingNo ()
- {
- return (String)get_Value(COLUMNNAME_RoutingNo);
- }
-
- /** Set Swipe.
- @param Swipe
- Track 1 and 2 of the Credit Card
- */
- public void setSwipe (String Swipe)
- {
-
- if (Swipe != null && Swipe.length() > 80)
- {
- log.warning("Length > 80 - truncated");
- Swipe = Swipe.substring(0, 80);
- }
- set_ValueNoCheck (COLUMNNAME_Swipe, Swipe);
- }
-
- /** Get Swipe.
- @return Track 1 and 2 of the Credit Card
- */
- public String getSwipe ()
- {
- return (String)get_Value(COLUMNNAME_Swipe);
- }
-
- /** Set Tax Amount.
- @param TaxAmt
- Tax Amount for a document
- */
- public void setTaxAmt (BigDecimal TaxAmt)
- {
- set_Value (COLUMNNAME_TaxAmt, TaxAmt);
- }
-
- /** Get Tax Amount.
- @return Tax Amount for a document
- */
- public BigDecimal getTaxAmt ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TaxAmt);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** TenderType AD_Reference_ID=214 */
- public static final int TENDERTYPE_AD_Reference_ID=214;
- /** Credit Card = C */
- public static final String TENDERTYPE_CreditCard = "C";
- /** Check = K */
- public static final String TENDERTYPE_Check = "K";
- /** Direct Deposit = A */
- public static final String TENDERTYPE_DirectDeposit = "A";
- /** Direct Debit = D */
- public static final String TENDERTYPE_DirectDebit = "D";
- /** Account = T */
- public static final String TENDERTYPE_Account = "T";
- /** Cash = X */
- public static final String TENDERTYPE_Cash = "X";
- /** Set Tender type.
- @param TenderType
- Method of Payment
- */
- public void setTenderType (String TenderType)
- {
- if (TenderType == null) throw new IllegalArgumentException ("TenderType is mandatory");
- if (TenderType.equals("C") || TenderType.equals("K") || TenderType.equals("A") || TenderType.equals("D") || TenderType.equals("T") || TenderType.equals("X")); else throw new IllegalArgumentException ("TenderType Invalid value - " + TenderType + " - Reference_ID=214 - C - K - A - D - T - X");
- if (TenderType.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- TenderType = TenderType.substring(0, 1);
- }
- set_Value (COLUMNNAME_TenderType, TenderType);
- }
-
- /** Get Tender type.
- @return Method of Payment
- */
- public String getTenderType ()
- {
- return (String)get_Value(COLUMNNAME_TenderType);
- }
-
- /** TrxType AD_Reference_ID=215 */
- public static final int TRXTYPE_AD_Reference_ID=215;
- /** Sales = S */
- public static final String TRXTYPE_Sales = "S";
- /** Delayed Capture = D */
- public static final String TRXTYPE_DelayedCapture = "D";
- /** Credit (Payment) = C */
- public static final String TRXTYPE_CreditPayment = "C";
- /** Voice Authorization = F */
- public static final String TRXTYPE_VoiceAuthorization = "F";
- /** Authorization = A */
- public static final String TRXTYPE_Authorization = "A";
- /** Void = V */
- public static final String TRXTYPE_Void = "V";
- /** Set Transaction Type.
- @param TrxType
- Type of credit card transaction
- */
- public void setTrxType (String TrxType)
- {
- if (TrxType == null) throw new IllegalArgumentException ("TrxType is mandatory");
- if (TrxType.equals("S") || TrxType.equals("D") || TrxType.equals("C") || TrxType.equals("F") || TrxType.equals("A") || TrxType.equals("V")); else throw new IllegalArgumentException ("TrxType Invalid value - " + TrxType + " - Reference_ID=215 - S - D - C - F - A - V");
- if (TrxType.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- TrxType = TrxType.substring(0, 1);
- }
- set_Value (COLUMNNAME_TrxType, TrxType);
- }
-
- /** Get Transaction Type.
- @return Type of credit card transaction
- */
- public String getTrxType ()
- {
- return (String)get_Value(COLUMNNAME_TrxType);
- }
-
- /** User1_ID AD_Reference_ID=134 */
- public static final int USER1_ID_AD_Reference_ID=134;
- /** Set User List 1.
- @param User1_ID
- User defined list element #1
- */
- public void setUser1_ID (int User1_ID)
- {
- if (User1_ID < 1)
- set_Value (COLUMNNAME_User1_ID, null);
- else
- set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID));
- }
-
- /** Get User List 1.
- @return User defined list element #1
- */
- public int getUser1_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** User2_ID AD_Reference_ID=137 */
- public static final int USER2_ID_AD_Reference_ID=137;
- /** Set User List 2.
- @param User2_ID
- User defined list element #2
- */
- public void setUser2_ID (int User2_ID)
- {
- if (User2_ID < 1)
- set_Value (COLUMNNAME_User2_ID, null);
- else
- set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID));
- }
-
- /** Get User List 2.
- @return User defined list element #2
- */
- public int getUser2_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Voice authorization code.
- @param VoiceAuthCode
- Voice Authorization Code from credit card company
- */
- public void setVoiceAuthCode (String VoiceAuthCode)
- {
-
- if (VoiceAuthCode != null && VoiceAuthCode.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- VoiceAuthCode = VoiceAuthCode.substring(0, 20);
- }
- set_Value (COLUMNNAME_VoiceAuthCode, VoiceAuthCode);
- }
-
- /** Get Voice authorization code.
- @return Voice Authorization Code from credit card company
- */
- public String getVoiceAuthCode ()
- {
- return (String)get_Value(COLUMNNAME_VoiceAuthCode);
- }
-
- /** Set Write-off Amount.
- @param WriteOffAmt
- Amount to write-off
- */
- public void setWriteOffAmt (BigDecimal WriteOffAmt)
- {
- set_Value (COLUMNNAME_WriteOffAmt, WriteOffAmt);
- }
-
- /** Get Write-off Amount.
- @return Amount to write-off
- */
- public BigDecimal getWriteOffAmt ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_WriteOffAmt);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-}
\ No newline at end of file
diff --git a/posterita/posterita/src/main/org/compiere/model/X_M_InventoryLine.java b/posterita/posterita/src/main/org/compiere/model/X_M_InventoryLine.java
deleted file mode 100644
index 88a85e30e9..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/X_M_InventoryLine.java
+++ /dev/null
@@ -1,477 +0,0 @@
-/******************************************************************************
- * Product: Adempiere ERP & CRM Smart Business Solution *
- * Copyright (C) 1999-2007 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 org.compiere.model;
-
-import java.lang.reflect.Constructor;
-import java.math.BigDecimal;
-import java.sql.ResultSet;
-import java.util.Properties;
-import java.util.logging.Level;
-import org.compiere.util.Env;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Model for M_InventoryLine
- * @author Adempiere (generated)
- * @version Release 3.4.0s - $Id$ */
-public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persistent
-{
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /** Standard Constructor */
- public X_M_InventoryLine (Properties ctx, int M_InventoryLine_ID, String trxName)
- {
- super (ctx, M_InventoryLine_ID, trxName);
- /** if (M_InventoryLine_ID == 0)
- {
- setInventoryType (null);
-// D
- setM_AttributeSetInstance_ID (0);
- setM_Inventory_ID (0);
- setM_InventoryLine_ID (0);
- setM_Locator_ID (0);
-// @M_Locator_ID@
- setM_Product_ID (0);
- setProcessed (false);
- setQtyBook (Env.ZERO);
- setQtyCount (Env.ZERO);
- setqtycsv (Env.ZERO);
- } */
- }
-
- /** Load Constructor */
- public X_M_InventoryLine (Properties ctx, ResultSet rs, String trxName)
- {
- super (ctx, rs, trxName);
- }
-
- /** AccessLevel
- * @return 1 - 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_M_InventoryLine[")
- .append(get_ID()).append("]");
- return sb.toString();
- }
-
- public I_C_Charge getC_Charge() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Charge.Table_Name);
- I_C_Charge result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Charge.
- @param C_Charge_ID
- Additional document charges
- */
- public void setC_Charge_ID (int C_Charge_ID)
- {
- if (C_Charge_ID < 1)
- set_Value (COLUMNNAME_C_Charge_ID, null);
- else
- set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID));
- }
-
- /** Get Charge.
- @return Additional document charges
- */
- public int getC_Charge_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Description.
- @param Description
- Optional short description of the record
- */
- public void setDescription (String Description)
- {
-
- if (Description != null && Description.length() > 255)
- {
- log.warning("Length > 255 - truncated");
- Description = Description.substring(0, 255);
- }
- set_Value (COLUMNNAME_Description, Description);
- }
-
- /** Get Description.
- @return Optional short description of the record
- */
- public String getDescription ()
- {
- return (String)get_Value(COLUMNNAME_Description);
- }
-
- /** InventoryType AD_Reference_ID=292 */
- public static final int INVENTORYTYPE_AD_Reference_ID=292;
- /** Inventory Difference = D */
- public static final String INVENTORYTYPE_InventoryDifference = "D";
- /** Charge Account = C */
- public static final String INVENTORYTYPE_ChargeAccount = "C";
- /** Set Inventory Type.
- @param InventoryType
- Type of inventory difference
- */
- public void setInventoryType (String InventoryType)
- {
- if (InventoryType == null) throw new IllegalArgumentException ("InventoryType is mandatory");
- if (InventoryType.equals("D") || InventoryType.equals("C")); else throw new IllegalArgumentException ("InventoryType Invalid value - " + InventoryType + " - Reference_ID=292 - D - C");
- if (InventoryType.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- InventoryType = InventoryType.substring(0, 1);
- }
- set_Value (COLUMNNAME_InventoryType, InventoryType);
- }
-
- /** Get Inventory Type.
- @return Type of inventory difference
- */
- public String getInventoryType ()
- {
- return (String)get_Value(COLUMNNAME_InventoryType);
- }
-
- /** Set Line No.
- @param Line
- Unique line for this document
- */
- public void setLine (int Line)
- {
- set_Value (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();
- }
-
- /** Get Record ID/ColumnName
- @return ID/ColumnName pair
- */
- public KeyNamePair getKeyNamePair()
- {
- return new KeyNamePair(get_ID(), String.valueOf(getLine()));
- }
-
- /** Set Attribute Set Instance.
- @param M_AttributeSetInstance_ID
- Product Attribute Set Instance
- */
- public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID)
- {
- if (M_AttributeSetInstance_ID < 0)
- throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory.");
- set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID));
- }
-
- /** Get Attribute Set Instance.
- @return Product Attribute Set Instance
- */
- public int getM_AttributeSetInstance_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_M_Inventory getM_Inventory() throws Exception
- {
- Class> clazz = MTable.getClass(I_M_Inventory.Table_Name);
- I_M_Inventory result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_M_Inventory)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Inventory_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Phys.Inventory.
- @param M_Inventory_ID
- Parameters for a Physical Inventory
- */
- public void setM_Inventory_ID (int M_Inventory_ID)
- {
- if (M_Inventory_ID < 1)
- throw new IllegalArgumentException ("M_Inventory_ID is mandatory.");
- set_ValueNoCheck (COLUMNNAME_M_Inventory_ID, Integer.valueOf(M_Inventory_ID));
- }
-
- /** Get Phys.Inventory.
- @return Parameters for a Physical Inventory
- */
- public int getM_Inventory_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_M_Inventory_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Phys.Inventory Line.
- @param M_InventoryLine_ID
- Unique line in an Inventory document
- */
- public void setM_InventoryLine_ID (int M_InventoryLine_ID)
- {
- if (M_InventoryLine_ID < 1)
- throw new IllegalArgumentException ("M_InventoryLine_ID is mandatory.");
- set_ValueNoCheck (COLUMNNAME_M_InventoryLine_ID, Integer.valueOf(M_InventoryLine_ID));
- }
-
- /** Get Phys.Inventory Line.
- @return Unique line in an Inventory document
- */
- public int getM_InventoryLine_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_M_InventoryLine_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Locator.
- @param M_Locator_ID
- Warehouse Locator
- */
- public void setM_Locator_ID (int M_Locator_ID)
- {
- if (M_Locator_ID < 1)
- throw new IllegalArgumentException ("M_Locator_ID is mandatory.");
- set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID));
- }
-
- /** Get Locator.
- @return Warehouse Locator
- */
- public int getM_Locator_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** M_Product_ID AD_Reference_ID=171 */
- public static final int M_PRODUCT_ID_AD_Reference_ID=171;
- /** Set Product.
- @param M_Product_ID
- Product, Service, Item
- */
- public void setM_Product_ID (int M_Product_ID)
- {
- if (M_Product_ID < 1)
- throw new IllegalArgumentException ("M_Product_ID is mandatory.");
- 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();
- }
-
- /** 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 Quantity book.
- @param QtyBook
- Book Quantity
- */
- public void setQtyBook (BigDecimal QtyBook)
- {
- if (QtyBook == null)
- throw new IllegalArgumentException ("QtyBook is mandatory.");
- set_ValueNoCheck (COLUMNNAME_QtyBook, QtyBook);
- }
-
- /** Get Quantity book.
- @return Book Quantity
- */
- public BigDecimal getQtyBook ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyBook);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** Set Quantity count.
- @param QtyCount
- Counted Quantity
- */
- public void setQtyCount (BigDecimal QtyCount)
- {
- if (QtyCount == null)
- throw new IllegalArgumentException ("QtyCount is mandatory.");
- set_Value (COLUMNNAME_QtyCount, QtyCount);
- }
-
- /** Get Quantity count.
- @return Counted Quantity
- */
- public BigDecimal getQtyCount ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyCount);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** Set Quantity CSV.
- @param Quantity CSV
- Quantity CSV
- */
- public void setQtyCsv (BigDecimal QtyCsv)
- {
- if (QtyCsv == null)
- throw new IllegalArgumentException ("qtycsv is mandatory.");
- set_Value (COLUMNNAME_QtyCsv, QtyCsv);
- }
-
- /** Get Quantity CSV.
- @return Quantity CSV
- */
- public BigDecimal getQtyCsv ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyCsv);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** Set Internal Use Qty.
- @param QtyInternalUse
- Internal Use Quantity removed from Inventory
- */
- public void setQtyInternalUse (BigDecimal QtyInternalUse)
- {
- set_Value (COLUMNNAME_QtyInternalUse, QtyInternalUse);
- }
-
- /** Get Internal Use Qty.
- @return Internal Use Quantity removed from Inventory
- */
- public BigDecimal getQtyInternalUse ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyInternalUse);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** Set UPC/EAN.
- @param UPC
- Bar Code (Universal Product Code or its superset European Article Number)
- */
- public void setUPC (String UPC)
- {
- throw new IllegalArgumentException ("UPC is virtual column"); }
-
- /** Get UPC/EAN.
- @return Bar Code (Universal Product Code or its superset European Article Number)
- */
- public String getUPC ()
- {
- return (String)get_Value(COLUMNNAME_UPC);
- }
-
- /** Set Search Key.
- @param Value
- Search key for the record in the format required - must be unique
- */
- public void setValue (String Value)
- {
- throw new IllegalArgumentException ("Value is virtual column"); }
-
- /** Get Search Key.
- @return Search key for the record in the format required - must be unique
- */
- public String getValue ()
- {
- return (String)get_Value(COLUMNNAME_Value);
- }
-}
\ No newline at end of file
diff --git a/posterita/posterita/src/main/org/compiere/model/X_M_PriceList.java b/posterita/posterita/src/main/org/compiere/model/X_M_PriceList.java
deleted file mode 100644
index 56e1fd22bf..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/X_M_PriceList.java
+++ /dev/null
@@ -1,388 +0,0 @@
-/******************************************************************************
- * Product: Adempiere ERP & CRM Smart Business Solution *
- * Copyright (C) 1999-2007 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 org.compiere.model;
-
-import java.lang.reflect.Constructor;
-import java.math.BigDecimal;
-import java.sql.ResultSet;
-import java.util.Properties;
-import java.util.logging.Level;
-import org.compiere.util.Env;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Model for M_PriceList
- * @author Adempiere (generated)
- * @version Release 3.3.1b - $Id$ */
-public class X_M_PriceList extends PO implements I_M_PriceList, I_Persistent
-{
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /** Standard Constructor */
- public X_M_PriceList (Properties ctx, int M_PriceList_ID, String trxName)
- {
- super (ctx, M_PriceList_ID, trxName);
- /** if (M_PriceList_ID == 0)
- {
- setC_Currency_ID (0);
- setEnforcePriceLimit (false);
- setIsDefault (false);
- setIsSOPriceList (false);
- setIsTaxIncluded (false);
- setM_PriceList_ID (0);
- setName (null);
- setPricePrecision (Env.ZERO);
-// 2
- } */
- }
-
- /** Load Constructor */
- public X_M_PriceList (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);
- return poi;
- }
-
- public String toString()
- {
- StringBuffer sb = new StringBuffer ("X_M_PriceList[")
- .append(get_ID()).append("]");
- return sb.toString();
- }
-
- /** BasePriceList_ID AD_Reference_ID=166 */
- public static final int BASEPRICELIST_ID_AD_Reference_ID=166;
- /** Set Base Pricelist.
- @param BasePriceList_ID
- Pricelist to be used, if product not found on this pricelist
- */
- public void setBasePriceList_ID (int BasePriceList_ID)
- {
- if (BasePriceList_ID <= 0)
- set_Value (COLUMNNAME_BasePriceList_ID, null);
- else
- set_Value (COLUMNNAME_BasePriceList_ID, Integer.valueOf(BasePriceList_ID));
- }
-
- /** Get Base Pricelist.
- @return Pricelist to be used, if product not found on this pricelist
- */
- public int getBasePriceList_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_BasePriceList_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_Currency getC_Currency() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_Currency.Table_Name);
- I_C_Currency result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Currency.
- @param C_Currency_ID
- The Currency for this record
- */
- public void setC_Currency_ID (int C_Currency_ID)
- {
- if (C_Currency_ID < 1)
- throw new IllegalArgumentException ("C_Currency_ID is mandatory.");
- set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID));
- }
-
- /** Get Currency.
- @return The Currency for this record
- */
- public int getC_Currency_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Description.
- @param Description
- Optional short description of the record
- */
- public void setDescription (String Description)
- {
-
- if (Description != null && Description.length() > 255)
- {
- log.warning("Length > 255 - truncated");
- Description = Description.substring(0, 255);
- }
- set_Value (COLUMNNAME_Description, Description);
- }
-
- /** Get Description.
- @return Optional short description of the record
- */
- public String getDescription ()
- {
- return (String)get_Value(COLUMNNAME_Description);
- }
-
- /** Set Enforce price limit.
- @param EnforcePriceLimit
- Do not allow prices below the limit price
- */
- public void setEnforcePriceLimit (boolean EnforcePriceLimit)
- {
- set_Value (COLUMNNAME_EnforcePriceLimit, Boolean.valueOf(EnforcePriceLimit));
- }
-
- /** Get Enforce price limit.
- @return Do not allow prices below the limit price
- */
- public boolean isEnforcePriceLimit ()
- {
- Object oo = get_Value(COLUMNNAME_EnforcePriceLimit);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Default.
- @param IsDefault
- Default value
- */
- public void setIsDefault (boolean IsDefault)
- {
- set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault));
- }
-
- /** Get Default.
- @return Default value
- */
- public boolean isDefault ()
- {
- Object oo = get_Value(COLUMNNAME_IsDefault);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Mandatory.
- @param IsMandatory
- Data entry is required in this column
- */
- public void setIsMandatory (boolean IsMandatory)
- {
- set_Value (COLUMNNAME_IsMandatory, Boolean.valueOf(IsMandatory));
- }
-
- /** Get Mandatory.
- @return Data entry is required in this column
- */
- public boolean isMandatory ()
- {
- Object oo = get_Value(COLUMNNAME_IsMandatory);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set isPresentForProduct.
- @param isPresentForProduct isPresentForProduct */
- public void setisPresentForProduct (boolean isPresentForProduct)
- {
- set_Value (COLUMNNAME_isPresentForProduct, Boolean.valueOf(isPresentForProduct));
- }
-
- /** Get isPresentForProduct.
- @return isPresentForProduct */
- public boolean isPresentForProduct ()
- {
- Object oo = get_Value(COLUMNNAME_isPresentForProduct);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Sales Price list.
- @param IsSOPriceList
- This is a Sales Price List
- */
- public void setIsSOPriceList (boolean IsSOPriceList)
- {
- set_Value (COLUMNNAME_IsSOPriceList, Boolean.valueOf(IsSOPriceList));
- }
-
- /** Get Sales Price list.
- @return This is a Sales Price List
- */
- public boolean isSOPriceList ()
- {
- Object oo = get_Value(COLUMNNAME_IsSOPriceList);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Price includes Tax.
- @param IsTaxIncluded
- Tax is included in the price
- */
- public void setIsTaxIncluded (boolean IsTaxIncluded)
- {
- set_Value (COLUMNNAME_IsTaxIncluded, Boolean.valueOf(IsTaxIncluded));
- }
-
- /** Get Price includes Tax.
- @return Tax is included in the price
- */
- public boolean isTaxIncluded ()
- {
- Object oo = get_Value(COLUMNNAME_IsTaxIncluded);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Price List.
- @param M_PriceList_ID
- Unique identifier of a Price List
- */
- public void setM_PriceList_ID (int M_PriceList_ID)
- {
- if (M_PriceList_ID < 1)
- throw new IllegalArgumentException ("M_PriceList_ID is mandatory.");
- set_ValueNoCheck (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID));
- }
-
- /** Get Price List.
- @return Unique identifier of a Price List
- */
- public int getM_PriceList_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Name.
- @param Name
- Alphanumeric identifier of the entity
- */
- public void setName (String Name)
- {
- if (Name == null)
- throw new IllegalArgumentException ("Name is mandatory.");
-
- if (Name.length() > 60)
- {
- log.warning("Length > 60 - truncated");
- Name = Name.substring(0, 60);
- }
- set_Value (COLUMNNAME_Name, Name);
- }
-
- /** Get Name.
- @return Alphanumeric identifier of the entity
- */
- public String getName ()
- {
- return (String)get_Value(COLUMNNAME_Name);
- }
-
- /** Get Record ID/ColumnName
- @return ID/ColumnName pair
- */
- public KeyNamePair getKeyNamePair()
- {
- return new KeyNamePair(get_ID(), getName());
- }
-
- /** Set Price Precision.
- @param PricePrecision
- Precision (number of decimals) for the Price
- */
- public void setPricePrecision (BigDecimal PricePrecision)
- {
- if (PricePrecision == null)
- throw new IllegalArgumentException ("PricePrecision is mandatory.");
- set_Value (COLUMNNAME_PricePrecision, PricePrecision);
- }
-
- /** Get Price Precision.
- @return Precision (number of decimals) for the Price
- */
- public BigDecimal getPricePrecision ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PricePrecision);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-}
\ No newline at end of file
diff --git a/posterita/posterita/src/main/org/compiere/model/X_M_Product.java b/posterita/posterita/src/main/org/compiere/model/X_M_Product.java
deleted file mode 100644
index df11c39fed..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/X_M_Product.java
+++ /dev/null
@@ -1,1440 +0,0 @@
-/******************************************************************************
- * Product: Adempiere ERP & CRM Smart Business Solution *
- * Copyright (C) 1999-2007 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 org.compiere.model;
-
-import java.lang.reflect.Constructor;
-import java.math.BigDecimal;
-import java.sql.ResultSet;
-import java.sql.Timestamp;
-import java.util.Properties;
-import java.util.logging.Level;
-import org.compiere.util.Env;
-import org.compiere.util.KeyNamePair;
-
-/** Generated Model for M_Product
- * @author Adempiere (generated)
- * @version Release 3.4.0s - $Id$ */
-public class X_M_Product extends PO implements I_M_Product, I_Persistent
-{
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /** Standard Constructor */
- public X_M_Product (Properties ctx, int M_Product_ID, String trxName)
- {
- super (ctx, M_Product_ID, trxName);
- /** if (M_Product_ID == 0)
- {
- setC_TaxCategory_ID (0);
- setC_UOM_ID (0);
- setIsBOM (false);
-// N
- setIsDropShip (false);
- setIsExcludeAutoDelivery (false);
-// N
- setIsInvoicePrintDetails (false);
- setIsPickListPrintDetails (false);
- setIsPurchased (true);
-// Y
- setIsSelfService (true);
-// Y
- setIsSold (true);
-// Y
- setIsStocked (true);
-// Y
- setIsSummary (false);
- setIsVerified (false);
-// N
- setIsWebStoreFeatured (false);
- setM_AttributeSetInstance_ID (0);
- setM_Product_Category_ID (0);
- setM_Product_ID (0);
- setName (null);
- setProductType (null);
-// I
- setValue (null);
- } */
- }
-
- /** Load Constructor */
- public X_M_Product (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_M_Product[")
- .append(get_ID()).append("]");
- return sb.toString();
- }
-
- /** Set Classification.
- @param Classification
- Classification for grouping
- */
- public void setClassification (String Classification)
- {
-
- if (Classification != null && Classification.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- Classification = Classification.substring(0, 1);
- }
- set_Value (COLUMNNAME_Classification, Classification);
- }
-
- /** Get Classification.
- @return Classification for grouping
- */
- public String getClassification ()
- {
- return (String)get_Value(COLUMNNAME_Classification);
- }
-
- public I_C_RevenueRecognition getC_RevenueRecognition() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_RevenueRecognition.Table_Name);
- I_C_RevenueRecognition result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_RevenueRecognition)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_RevenueRecognition_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Revenue Recognition.
- @param C_RevenueRecognition_ID
- Method for recording revenue
- */
- public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID)
- {
- if (C_RevenueRecognition_ID < 1)
- set_Value (COLUMNNAME_C_RevenueRecognition_ID, null);
- else
- set_Value (COLUMNNAME_C_RevenueRecognition_ID, Integer.valueOf(C_RevenueRecognition_ID));
- }
-
- /** Get Revenue Recognition.
- @return Method for recording revenue
- */
- public int getC_RevenueRecognition_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_RevenueRecognition_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Subscription Type.
- @param C_SubscriptionType_ID
- Type of subscription
- */
- public void setC_SubscriptionType_ID (int C_SubscriptionType_ID)
- {
- if (C_SubscriptionType_ID < 1)
- set_Value (COLUMNNAME_C_SubscriptionType_ID, null);
- else
- set_Value (COLUMNNAME_C_SubscriptionType_ID, Integer.valueOf(C_SubscriptionType_ID));
- }
-
- /** Get Subscription Type.
- @return Type of subscription
- */
- public int getC_SubscriptionType_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_SubscriptionType_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_TaxCategory getC_TaxCategory() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_TaxCategory.Table_Name);
- I_C_TaxCategory result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_TaxCategory)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_TaxCategory_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Tax Category.
- @param C_TaxCategory_ID
- Tax Category
- */
- public void setC_TaxCategory_ID (int C_TaxCategory_ID)
- {
- if (C_TaxCategory_ID < 1)
- throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory.");
- set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID));
- }
-
- /** Get Tax Category.
- @return Tax Category
- */
- public int getC_TaxCategory_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_TaxCategory_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_UOM getC_UOM() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_UOM.Table_Name);
- I_C_UOM result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set UOM.
- @param C_UOM_ID
- Unit of Measure
- */
- public void setC_UOM_ID (int C_UOM_ID)
- {
- if (C_UOM_ID < 1)
- throw new IllegalArgumentException ("C_UOM_ID is mandatory.");
- 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 Description.
- @param Description
- Optional short description of the record
- */
- public void setDescription (String Description)
- {
-
- if (Description != null && Description.length() > 255)
- {
- log.warning("Length > 255 - truncated");
- Description = Description.substring(0, 255);
- }
- set_Value (COLUMNNAME_Description, Description);
- }
-
- /** Get Description.
- @return Optional short description of the record
- */
- public String getDescription ()
- {
- return (String)get_Value(COLUMNNAME_Description);
- }
-
- /** Set Description URL.
- @param DescriptionURL
- URL for the description
- */
- public void setDescriptionURL (String DescriptionURL)
- {
-
- if (DescriptionURL != null && DescriptionURL.length() > 120)
- {
- log.warning("Length > 120 - truncated");
- DescriptionURL = DescriptionURL.substring(0, 120);
- }
- set_Value (COLUMNNAME_DescriptionURL, DescriptionURL);
- }
-
- /** Get Description URL.
- @return URL for the description
- */
- public String getDescriptionURL ()
- {
- return (String)get_Value(COLUMNNAME_DescriptionURL);
- }
-
- /** Set Discontinued.
- @param Discontinued
- This product is no longer available
- */
- public void setDiscontinued (boolean Discontinued)
- {
- set_Value (COLUMNNAME_Discontinued, Boolean.valueOf(Discontinued));
- }
-
- /** Get Discontinued.
- @return This product is no longer available
- */
- public boolean isDiscontinued ()
- {
- Object oo = get_Value(COLUMNNAME_Discontinued);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Discontinued by.
- @param DiscontinuedBy
- Discontinued By
- */
- public void setDiscontinuedBy (Timestamp DiscontinuedBy)
- {
- set_Value (COLUMNNAME_DiscontinuedBy, DiscontinuedBy);
- }
-
- /** Get Discontinued by.
- @return Discontinued By
- */
- public Timestamp getDiscontinuedBy ()
- {
- return (Timestamp)get_Value(COLUMNNAME_DiscontinuedBy);
- }
-
- /** Set Document Note.
- @param DocumentNote
- Additional information for a Document
- */
- public void setDocumentNote (String DocumentNote)
- {
-
- if (DocumentNote != null && DocumentNote.length() > 2000)
- {
- log.warning("Length > 2000 - truncated");
- DocumentNote = DocumentNote.substring(0, 2000);
- }
- set_Value (COLUMNNAME_DocumentNote, DocumentNote);
- }
-
- /** Get Document Note.
- @return Additional information for a Document
- */
- public String getDocumentNote ()
- {
- return (String)get_Value(COLUMNNAME_DocumentNote);
- }
-
- /** Set Group1.
- @param Group1 Group1 */
- public void setGroup1 (String Group1)
- {
-
- if (Group1 != null && Group1.length() > 255)
- {
- log.warning("Length > 255 - truncated");
- Group1 = Group1.substring(0, 255);
- }
- set_Value (COLUMNNAME_Group1, Group1);
- }
-
- /** Get Group1.
- @return Group1 */
- public String getGroup1 ()
- {
- return (String)get_Value(COLUMNNAME_Group1);
- }
-
- /** Set Group2.
- @param Group2 Group2 */
- public void setGroup2 (String Group2)
- {
-
- if (Group2 != null && Group2.length() > 255)
- {
- log.warning("Length > 255 - truncated");
- Group2 = Group2.substring(0, 255);
- }
- set_Value (COLUMNNAME_Group2, Group2);
- }
-
- /** Get Group2.
- @return Group2 */
- public String getGroup2 ()
- {
- return (String)get_Value(COLUMNNAME_Group2);
- }
-
- /** Set Guarantee Days.
- @param GuaranteeDays
- Number of days the product is guaranteed or available
- */
- public void setGuaranteeDays (int GuaranteeDays)
- {
- set_Value (COLUMNNAME_GuaranteeDays, Integer.valueOf(GuaranteeDays));
- }
-
- /** Get Guarantee Days.
- @return Number of days the product is guaranteed or available
- */
- public int getGuaranteeDays ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_GuaranteeDays);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Min Guarantee Days.
- @param GuaranteeDaysMin
- Minumum number of guarantee days
- */
- public void setGuaranteeDaysMin (int GuaranteeDaysMin)
- {
- set_Value (COLUMNNAME_GuaranteeDaysMin, Integer.valueOf(GuaranteeDaysMin));
- }
-
- /** Get Min Guarantee Days.
- @return Minumum number of guarantee days
- */
- public int getGuaranteeDaysMin ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_GuaranteeDaysMin);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Comment/Help.
- @param Help
- Comment or Hint
- */
- public void setHelp (String Help)
- {
-
- if (Help != null && Help.length() > 2000)
- {
- log.warning("Length > 2000 - truncated");
- Help = Help.substring(0, 2000);
- }
- set_Value (COLUMNNAME_Help, Help);
- }
-
- /** Get Comment/Help.
- @return Comment or Hint
- */
- public String getHelp ()
- {
- return (String)get_Value(COLUMNNAME_Help);
- }
-
- /** Set Image URL.
- @param ImageURL
- URL of image
- */
- public void setImageURL (String ImageURL)
- {
-
- if (ImageURL != null && ImageURL.length() > 120)
- {
- log.warning("Length > 120 - truncated");
- ImageURL = ImageURL.substring(0, 120);
- }
- set_Value (COLUMNNAME_ImageURL, ImageURL);
- }
-
- /** Get Image URL.
- @return URL of image
- */
- public String getImageURL ()
- {
- return (String)get_Value(COLUMNNAME_ImageURL);
- }
-
- /** Set Bill of Materials.
- @param IsBOM
- Bill of Materials
- */
- public void setIsBOM (boolean IsBOM)
- {
- set_Value (COLUMNNAME_IsBOM, Boolean.valueOf(IsBOM));
- }
-
- /** Get Bill of Materials.
- @return Bill of Materials
- */
- public boolean isBOM ()
- {
- Object oo = get_Value(COLUMNNAME_IsBOM);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Drop Shipment.
- @param IsDropShip
- Drop Shipments are sent from the Vendor directly to the Customer
- */
- public void setIsDropShip (boolean IsDropShip)
- {
- set_Value (COLUMNNAME_IsDropShip, Boolean.valueOf(IsDropShip));
- }
-
- /** Get Drop Shipment.
- @return Drop Shipments are sent from the Vendor directly to the Customer
- */
- public boolean isDropShip ()
- {
- Object oo = get_Value(COLUMNNAME_IsDropShip);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Exclude Auto Delivery.
- @param IsExcludeAutoDelivery
- Exclude from automatic Delivery
- */
- public void setIsExcludeAutoDelivery (boolean IsExcludeAutoDelivery)
- {
- set_Value (COLUMNNAME_IsExcludeAutoDelivery, Boolean.valueOf(IsExcludeAutoDelivery));
- }
-
- /** Get Exclude Auto Delivery.
- @return Exclude from automatic Delivery
- */
- public boolean isExcludeAutoDelivery ()
- {
- Object oo = get_Value(COLUMNNAME_IsExcludeAutoDelivery);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Print detail records on invoice .
- @param IsInvoicePrintDetails
- Print detail BOM elements on the invoice
- */
- public void setIsInvoicePrintDetails (boolean IsInvoicePrintDetails)
- {
- set_Value (COLUMNNAME_IsInvoicePrintDetails, Boolean.valueOf(IsInvoicePrintDetails));
- }
-
- /** Get Print detail records on invoice .
- @return Print detail BOM elements on the invoice
- */
- public boolean isInvoicePrintDetails ()
- {
- Object oo = get_Value(COLUMNNAME_IsInvoicePrintDetails);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Print detail records on pick list.
- @param IsPickListPrintDetails
- Print detail BOM elements on the pick list
- */
- public void setIsPickListPrintDetails (boolean IsPickListPrintDetails)
- {
- set_Value (COLUMNNAME_IsPickListPrintDetails, Boolean.valueOf(IsPickListPrintDetails));
- }
-
- /** Get Print detail records on pick list.
- @return Print detail BOM elements on the pick list
- */
- public boolean isPickListPrintDetails ()
- {
- Object oo = get_Value(COLUMNNAME_IsPickListPrintDetails);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Purchased.
- @param IsPurchased
- Organization purchases this product
- */
- public void setIsPurchased (boolean IsPurchased)
- {
- set_Value (COLUMNNAME_IsPurchased, Boolean.valueOf(IsPurchased));
- }
-
- /** Get Purchased.
- @return Organization purchases this product
- */
- public boolean isPurchased ()
- {
- Object oo = get_Value(COLUMNNAME_IsPurchased);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Self-Service.
- @param IsSelfService
- This is a Self-Service entry or this entry can be changed via Self-Service
- */
- public void setIsSelfService (boolean IsSelfService)
- {
- set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService));
- }
-
- /** Get Self-Service.
- @return This is a Self-Service entry or this entry can be changed via Self-Service
- */
- public boolean isSelfService ()
- {
- Object oo = get_Value(COLUMNNAME_IsSelfService);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Sold.
- @param IsSold
- Organization sells this product
- */
- public void setIsSold (boolean IsSold)
- {
- set_Value (COLUMNNAME_IsSold, Boolean.valueOf(IsSold));
- }
-
- /** Get Sold.
- @return Organization sells this product
- */
- public boolean isSold ()
- {
- Object oo = get_Value(COLUMNNAME_IsSold);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Stocked.
- @param IsStocked
- Organization stocks this product
- */
- public void setIsStocked (boolean IsStocked)
- {
- set_Value (COLUMNNAME_IsStocked, Boolean.valueOf(IsStocked));
- }
-
- /** Get Stocked.
- @return Organization stocks this product
- */
- public boolean isStocked ()
- {
- Object oo = get_Value(COLUMNNAME_IsStocked);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Summary Level.
- @param IsSummary
- This is a summary entity
- */
- public void setIsSummary (boolean IsSummary)
- {
- set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary));
- }
-
- /** Get Summary Level.
- @return This is a summary entity
- */
- public boolean isSummary ()
- {
- Object oo = get_Value(COLUMNNAME_IsSummary);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Verified.
- @param IsVerified
- The BOM configuration has been verified
- */
- public void setIsVerified (boolean IsVerified)
- {
- set_ValueNoCheck (COLUMNNAME_IsVerified, Boolean.valueOf(IsVerified));
- }
-
- /** Get Verified.
- @return The BOM configuration has been verified
- */
- public boolean isVerified ()
- {
- Object oo = get_Value(COLUMNNAME_IsVerified);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Featured in Web Store.
- @param IsWebStoreFeatured
- If selected, the product is displayed in the inital or any empy search
- */
- public void setIsWebStoreFeatured (boolean IsWebStoreFeatured)
- {
- set_Value (COLUMNNAME_IsWebStoreFeatured, Boolean.valueOf(IsWebStoreFeatured));
- }
-
- /** Get Featured in Web Store.
- @return If selected, the product is displayed in the inital or any empy search
- */
- public boolean isWebStoreFeatured ()
- {
- Object oo = get_Value(COLUMNNAME_IsWebStoreFeatured);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- public I_M_AttributeSet getM_AttributeSet() throws Exception
- {
- Class> clazz = MTable.getClass(I_M_AttributeSet.Table_Name);
- I_M_AttributeSet result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_M_AttributeSet)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_AttributeSet_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Attribute Set.
- @param M_AttributeSet_ID
- Product Attribute Set
- */
- public void setM_AttributeSet_ID (int M_AttributeSet_ID)
- {
- if (M_AttributeSet_ID < 0)
- set_Value (COLUMNNAME_M_AttributeSet_ID, null);
- else
- set_Value (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID));
- }
-
- /** Get Attribute Set.
- @return Product Attribute Set
- */
- public int getM_AttributeSet_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSet_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Attribute Set Instance.
- @param M_AttributeSetInstance_ID
- Product Attribute Set Instance
- */
- public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID)
- {
- if (M_AttributeSetInstance_ID < 0)
- throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory.");
- set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID));
- }
-
- /** Get Attribute Set Instance.
- @return Product Attribute Set Instance
- */
- public int getM_AttributeSetInstance_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_M_FreightCategory getM_FreightCategory() throws Exception
- {
- Class> clazz = MTable.getClass(I_M_FreightCategory.Table_Name);
- I_M_FreightCategory result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_M_FreightCategory)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_FreightCategory_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Freight Category.
- @param M_FreightCategory_ID
- Category of the Freight
- */
- public void setM_FreightCategory_ID (int M_FreightCategory_ID)
- {
- if (M_FreightCategory_ID < 1)
- set_Value (COLUMNNAME_M_FreightCategory_ID, null);
- else
- set_Value (COLUMNNAME_M_FreightCategory_ID, Integer.valueOf(M_FreightCategory_ID));
- }
-
- /** Get Freight Category.
- @return Category of the Freight
- */
- public int getM_FreightCategory_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_M_FreightCategory_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Locator.
- @param M_Locator_ID
- Warehouse Locator
- */
- public void setM_Locator_ID (int M_Locator_ID)
- {
- if (M_Locator_ID < 1)
- set_Value (COLUMNNAME_M_Locator_ID, null);
- else
- set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID));
- }
-
- /** Get Locator.
- @return Warehouse Locator
- */
- public int getM_Locator_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** M_Product_Category_ID AD_Reference_ID=163 */
- public static final int M_PRODUCT_CATEGORY_ID_AD_Reference_ID=163;
- public I_M_Product_Category getM_Product_Category() throws Exception
- {
- Class> clazz = MTable.getClass(I_M_Product_Category.Table_Name);
- I_M_Product_Category result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_M_Product_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_Category_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Product Category.
- @param M_Product_Category_ID
- Category of a Product
- */
- public void setM_Product_Category_ID (int M_Product_Category_ID)
- {
- if (M_Product_Category_ID < 1)
- throw new IllegalArgumentException ("M_Product_Category_ID is mandatory.");
- set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID));
- }
-
- /** Get Product Category.
- @return Category of a Product
- */
- public int getM_Product_Category_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_Category_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Product.
- @param M_Product_ID
- Product, Service, Item
- */
- public void setM_Product_ID (int M_Product_ID)
- {
- if (M_Product_ID < 1)
- throw new IllegalArgumentException ("M_Product_ID is mandatory.");
- set_ValueNoCheck (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();
- }
-
- /** Set Name.
- @param Name
- Alphanumeric identifier of the entity
- */
- public void setName (String Name)
- {
- if (Name == null)
- throw new IllegalArgumentException ("Name is mandatory.");
-
- if (Name.length() > 60)
- {
- log.warning("Length > 60 - truncated");
- Name = Name.substring(0, 60);
- }
- set_Value (COLUMNNAME_Name, Name);
- }
-
- /** Get Name.
- @return Alphanumeric identifier of the entity
- */
- public String getName ()
- {
- return (String)get_Value(COLUMNNAME_Name);
- }
-
- /** Get Record ID/ColumnName
- @return ID/ColumnName pair
- */
- public KeyNamePair getKeyNamePair()
- {
- return new KeyNamePair(get_ID(), getName());
- }
-
- /** 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;
- }
-
- /** ProductType AD_Reference_ID=270 */
- public static final int PRODUCTTYPE_AD_Reference_ID=270;
- /** Item = I */
- public static final String PRODUCTTYPE_Item = "I";
- /** Service = S */
- public static final String PRODUCTTYPE_Service = "S";
- /** Resource = R */
- public static final String PRODUCTTYPE_Resource = "R";
- /** Expense type = E */
- public static final String PRODUCTTYPE_ExpenseType = "E";
- /** Online = O */
- public static final String PRODUCTTYPE_Online = "O";
- /** Set Product Type.
- @param ProductType
- Type of product
- */
- public void setProductType (String ProductType)
- {
- if (ProductType == null) throw new IllegalArgumentException ("ProductType is mandatory");
- if (ProductType.equals("I") || ProductType.equals("S") || ProductType.equals("R") || ProductType.equals("E") || ProductType.equals("O")); else throw new IllegalArgumentException ("ProductType Invalid value - " + ProductType + " - Reference_ID=270 - I - S - R - E - O");
- if (ProductType.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- ProductType = ProductType.substring(0, 1);
- }
- set_Value (COLUMNNAME_ProductType, ProductType);
- }
-
- /** Get Product Type.
- @return Type of product
- */
- public String getProductType ()
- {
- return (String)get_Value(COLUMNNAME_ProductType);
- }
-
- public I_R_MailText getR_MailText() throws Exception
- {
- Class> clazz = MTable.getClass(I_R_MailText.Table_Name);
- I_R_MailText result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_R_MailText)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_MailText_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Mail Template.
- @param R_MailText_ID
- Text templates for mailings
- */
- public void setR_MailText_ID (int R_MailText_ID)
- {
- if (R_MailText_ID < 1)
- set_Value (COLUMNNAME_R_MailText_ID, null);
- else
- set_Value (COLUMNNAME_R_MailText_ID, Integer.valueOf(R_MailText_ID));
- }
-
- /** Get Mail Template.
- @return Text templates for mailings
- */
- public int getR_MailText_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_R_MailText_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** SalesRep_ID AD_Reference_ID=190 */
- public static final int SALESREP_ID_AD_Reference_ID=190;
- /** Set Sales Representative.
- @param SalesRep_ID
- Sales Representative or Company Agent
- */
- public void setSalesRep_ID (int SalesRep_ID)
- {
- if (SalesRep_ID < 1)
- set_Value (COLUMNNAME_SalesRep_ID, null);
- else
- set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID));
- }
-
- /** Get Sales Representative.
- @return Sales Representative or Company Agent
- */
- public int getSalesRep_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_S_ExpenseType getS_ExpenseType() throws Exception
- {
- Class> clazz = MTable.getClass(I_S_ExpenseType.Table_Name);
- I_S_ExpenseType result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_S_ExpenseType)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_ExpenseType_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Expense Type.
- @param S_ExpenseType_ID
- Expense report type
- */
- public void setS_ExpenseType_ID (int S_ExpenseType_ID)
- {
- if (S_ExpenseType_ID < 1)
- set_ValueNoCheck (COLUMNNAME_S_ExpenseType_ID, null);
- else
- set_ValueNoCheck (COLUMNNAME_S_ExpenseType_ID, Integer.valueOf(S_ExpenseType_ID));
- }
-
- /** Get Expense Type.
- @return Expense report type
- */
- public int getS_ExpenseType_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_S_ExpenseType_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Shelf Depth.
- @param ShelfDepth
- Shelf depth required
- */
- public void setShelfDepth (int ShelfDepth)
- {
- set_Value (COLUMNNAME_ShelfDepth, Integer.valueOf(ShelfDepth));
- }
-
- /** Get Shelf Depth.
- @return Shelf depth required
- */
- public int getShelfDepth ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_ShelfDepth);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Shelf Height.
- @param ShelfHeight
- Shelf height required
- */
- public void setShelfHeight (int ShelfHeight)
- {
- set_Value (COLUMNNAME_ShelfHeight, Integer.valueOf(ShelfHeight));
- }
-
- /** Get Shelf Height.
- @return Shelf height required
- */
- public int getShelfHeight ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_ShelfHeight);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Shelf Width.
- @param ShelfWidth
- Shelf width required
- */
- public void setShelfWidth (int ShelfWidth)
- {
- set_Value (COLUMNNAME_ShelfWidth, Integer.valueOf(ShelfWidth));
- }
-
- /** Get Shelf Width.
- @return Shelf width required
- */
- public int getShelfWidth ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_ShelfWidth);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set SKU.
- @param SKU
- Stock Keeping Unit
- */
- public void setSKU (String SKU)
- {
-
- if (SKU != null && SKU.length() > 30)
- {
- log.warning("Length > 30 - truncated");
- SKU = SKU.substring(0, 30);
- }
- set_Value (COLUMNNAME_SKU, SKU);
- }
-
- /** Get SKU.
- @return Stock Keeping Unit
- */
- public String getSKU ()
- {
- return (String)get_Value(COLUMNNAME_SKU);
- }
-
- public I_S_Resource getS_Resource() throws Exception
- {
- Class> clazz = MTable.getClass(I_S_Resource.Table_Name);
- I_S_Resource result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_S_Resource)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_Resource_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Resource.
- @param S_Resource_ID
- Resource
- */
- public void setS_Resource_ID (int S_Resource_ID)
- {
- if (S_Resource_ID < 1)
- set_ValueNoCheck (COLUMNNAME_S_Resource_ID, null);
- else
- set_ValueNoCheck (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID));
- }
-
- /** Get Resource.
- @return Resource
- */
- public int getS_Resource_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_S_Resource_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set UnitsPerPack.
- @param UnitsPerPack
- The Units Per Pack indicates the no of units of a product packed together.
- */
- public void setUnitsPerPack (int UnitsPerPack)
- {
- set_Value (COLUMNNAME_UnitsPerPack, Integer.valueOf(UnitsPerPack));
- }
-
- /** Get UnitsPerPack.
- @return The Units Per Pack indicates the no of units of a product packed together.
- */
- public int getUnitsPerPack ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_UnitsPerPack);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Units Per Pallet.
- @param UnitsPerPallet
- Units Per Pallet
- */
- public void setUnitsPerPallet (int UnitsPerPallet)
- {
- set_Value (COLUMNNAME_UnitsPerPallet, Integer.valueOf(UnitsPerPallet));
- }
-
- /** Get Units Per Pallet.
- @return Units Per Pallet
- */
- public int getUnitsPerPallet ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_UnitsPerPallet);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set UPC/EAN.
- @param UPC
- Bar Code (Universal Product Code or its superset European Article Number)
- */
- public void setUPC (String UPC)
- {
-
- if (UPC != null && UPC.length() > 30)
- {
- log.warning("Length > 30 - truncated");
- UPC = UPC.substring(0, 30);
- }
- set_Value (COLUMNNAME_UPC, UPC);
- }
-
- /** Get UPC/EAN.
- @return Bar Code (Universal Product Code or its superset European Article Number)
- */
- public String getUPC ()
- {
- return (String)get_Value(COLUMNNAME_UPC);
- }
-
- /** Set Search Key.
- @param Value
- Search key for the record in the format required - must be unique
- */
- public void setValue (String Value)
- {
- if (Value == null)
- throw new IllegalArgumentException ("Value is mandatory.");
-
- if (Value.length() > 40)
- {
- log.warning("Length > 40 - truncated");
- Value = Value.substring(0, 40);
- }
- set_Value (COLUMNNAME_Value, Value);
- }
-
- /** Get Search Key.
- @return Search key for the record in the format required - must be unique
- */
- public String getValue ()
- {
- return (String)get_Value(COLUMNNAME_Value);
- }
-
- /** Set Version No.
- @param VersionNo
- Version Number
- */
- public void setVersionNo (String VersionNo)
- {
-
- if (VersionNo != null && VersionNo.length() > 20)
- {
- log.warning("Length > 20 - truncated");
- VersionNo = VersionNo.substring(0, 20);
- }
- set_Value (COLUMNNAME_VersionNo, VersionNo);
- }
-
- /** Get Version No.
- @return Version Number
- */
- public String getVersionNo ()
- {
- return (String)get_Value(COLUMNNAME_VersionNo);
- }
-
- /** Set Volume.
- @param Volume
- Volume of a product
- */
- public void setVolume (BigDecimal Volume)
- {
- set_Value (COLUMNNAME_Volume, Volume);
- }
-
- /** Get Volume.
- @return Volume of a product
- */
- public BigDecimal getVolume ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Volume);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-
- /** Set Weight.
- @param Weight
- Weight of a product
- */
- public void setWeight (BigDecimal Weight)
- {
- set_Value (COLUMNNAME_Weight, Weight);
- }
-
- /** Get Weight.
- @return Weight of a product
- */
- public BigDecimal getWeight ()
- {
- BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Weight);
- if (bd == null)
- return Env.ZERO;
- return bd;
- }
-}
\ No newline at end of file
diff --git a/posterita/posterita/src/main/org/compiere/model/X_U_POSTerminal.java b/posterita/posterita/src/main/org/compiere/model/X_U_POSTerminal.java
deleted file mode 100644
index b7b411bd85..0000000000
--- a/posterita/posterita/src/main/org/compiere/model/X_U_POSTerminal.java
+++ /dev/null
@@ -1,774 +0,0 @@
-/******************************************************************************
- * Product: Adempiere ERP & CRM Smart Business Solution *
- * Copyright (C) 1999-2007 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 org.compiere.model;
-
-import java.lang.reflect.Constructor;
-import java.sql.ResultSet;
-import java.sql.Timestamp;
-import java.util.Properties;
-import java.util.logging.Level;
-
-/** Generated Model for U_POSTerminal
- * @author Adempiere (generated)
- * @version Release 3.4.0s - $Id$ */
-public class X_U_POSTerminal extends PO implements I_U_POSTerminal, I_Persistent
-{
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /** Standard Constructor */
- public X_U_POSTerminal (Properties ctx, int U_POSTerminal_ID, String trxName)
- {
- super (ctx, U_POSTerminal_ID, trxName);
- /** if (U_POSTerminal_ID == 0)
- {
- setAutoLock (false);
-// N
- setCashBookTransferType (null);
- setC_CashBook_ID (0);
- setC_CashBPartner_ID (0);
- setU_POSTerminal_ID (0);
- } */
- }
-
- /** Load Constructor */
- public X_U_POSTerminal (Properties ctx, ResultSet rs, String trxName)
- {
- super (ctx, rs, trxName);
- }
-
- /** AccessLevel
- * @return 1 - 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_U_POSTerminal[")
- .append(get_ID()).append("]");
- return sb.toString();
- }
-
- /** Set Auto Lock.
- @param AutoLock
- Whether to automatically lock the terminal when till is closed
- */
- public void setAutoLock (boolean AutoLock)
- {
- set_Value (COLUMNNAME_AutoLock, Boolean.valueOf(AutoLock));
- }
-
- /** Get Auto Lock.
- @return Whether to automatically lock the terminal when till is closed
- */
- public boolean isAutoLock ()
- {
- Object oo = get_Value(COLUMNNAME_AutoLock);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Card_BankAccount_ID AD_Reference_ID=52003 */
- public static final int CARD_BANKACCOUNT_ID_AD_Reference_ID=52003;
- /** Set Card Bank Account.
- @param Card_BankAccount_ID
- Bank Account on which card transactions will be processed
- */
- public void setCard_BankAccount_ID (int Card_BankAccount_ID)
- {
- if (Card_BankAccount_ID < 1)
- set_Value (COLUMNNAME_Card_BankAccount_ID, null);
- else
- set_Value (COLUMNNAME_Card_BankAccount_ID, Integer.valueOf(Card_BankAccount_ID));
- }
-
- /** Get Card Bank Account.
- @return Bank Account on which card transactions will be processed
- */
- public int getCard_BankAccount_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_Card_BankAccount_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** CardTransferBankAccount_ID AD_Reference_ID=52003 */
- public static final int CARDTRANSFERBANKACCOUNT_ID_AD_Reference_ID=52003;
- /** Set Transfer Card trx to.
- @param CardTransferBankAccount_ID
- Bank account on which to transfer Card transactions
- */
- public void setCardTransferBankAccount_ID (int CardTransferBankAccount_ID)
- {
- if (CardTransferBankAccount_ID < 1)
- set_Value (COLUMNNAME_CardTransferBankAccount_ID, null);
- else
- set_Value (COLUMNNAME_CardTransferBankAccount_ID, Integer.valueOf(CardTransferBankAccount_ID));
- }
-
- /** Get Transfer Card trx to.
- @return Bank account on which to transfer Card transactions
- */
- public int getCardTransferBankAccount_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_CardTransferBankAccount_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** CardTransferCashBook_ID AD_Reference_ID=52004 */
- public static final int CARDTRANSFERCASHBOOK_ID_AD_Reference_ID=52004;
- /** Set Transfer Card trx to.
- @param CardTransferCashBook_ID
- Cash Book on which to transfer all Card transactions
- */
- public void setCardTransferCashBook_ID (int CardTransferCashBook_ID)
- {
- if (CardTransferCashBook_ID < 1)
- set_Value (COLUMNNAME_CardTransferCashBook_ID, null);
- else
- set_Value (COLUMNNAME_CardTransferCashBook_ID, Integer.valueOf(CardTransferCashBook_ID));
- }
-
- /** Get Transfer Card trx to.
- @return Cash Book on which to transfer all Card transactions
- */
- public int getCardTransferCashBook_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_CardTransferCashBook_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** CardTransferType AD_Reference_ID=52002 */
- public static final int CARDTRANSFERTYPE_AD_Reference_ID=52002;
- /** Bank Account = B */
- public static final String CARDTRANSFERTYPE_BankAccount = "B";
- /** CashBook = C */
- public static final String CARDTRANSFERTYPE_CashBook = "C";
- /** Set Card Transfer Type.
- @param CardTransferType Card Transfer Type */
- public void setCardTransferType (String CardTransferType)
- {
-
- if (CardTransferType == null || CardTransferType.equals("B") || CardTransferType.equals("C")); else throw new IllegalArgumentException ("CardTransferType Invalid value - " + CardTransferType + " - Reference_ID=52002 - B - C");
- if (CardTransferType != null && CardTransferType.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- CardTransferType = CardTransferType.substring(0, 1);
- }
- set_Value (COLUMNNAME_CardTransferType, CardTransferType);
- }
-
- /** Get Card Transfer Type.
- @return Card Transfer Type */
- public String getCardTransferType ()
- {
- return (String)get_Value(COLUMNNAME_CardTransferType);
- }
-
- /** CashBookTransferType AD_Reference_ID=52002 */
- public static final int CASHBOOKTRANSFERTYPE_AD_Reference_ID=52002;
- /** Bank Account = B */
- public static final String CASHBOOKTRANSFERTYPE_BankAccount = "B";
- /** CashBook = C */
- public static final String CASHBOOKTRANSFERTYPE_CashBook = "C";
- /** Set Cash Book Transfer Type.
- @param CashBookTransferType
- Where the money in the cash book should be transfered to. Either a Bank Account or another Cash Book
- */
- public void setCashBookTransferType (String CashBookTransferType)
- {
- if (CashBookTransferType == null) throw new IllegalArgumentException ("CashBookTransferType is mandatory");
- if (CashBookTransferType.equals("B") || CashBookTransferType.equals("C")); else throw new IllegalArgumentException ("CashBookTransferType Invalid value - " + CashBookTransferType + " - Reference_ID=52002 - B - C");
- if (CashBookTransferType.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- CashBookTransferType = CashBookTransferType.substring(0, 1);
- }
- set_Value (COLUMNNAME_CashBookTransferType, CashBookTransferType);
- }
-
- /** Get Cash Book Transfer Type.
- @return Where the money in the cash book should be transfered to. Either a Bank Account or another Cash Book
- */
- public String getCashBookTransferType ()
- {
- return (String)get_Value(COLUMNNAME_CashBookTransferType);
- }
-
- /** CashTransferBankAccount_ID AD_Reference_ID=52003 */
- public static final int CASHTRANSFERBANKACCOUNT_ID_AD_Reference_ID=52003;
- /** Set Transfer Cash trx to.
- @param CashTransferBankAccount_ID
- Bank Account on which to transfer all Cash transactions
- */
- public void setCashTransferBankAccount_ID (int CashTransferBankAccount_ID)
- {
- if (CashTransferBankAccount_ID < 1)
- set_Value (COLUMNNAME_CashTransferBankAccount_ID, null);
- else
- set_Value (COLUMNNAME_CashTransferBankAccount_ID, Integer.valueOf(CashTransferBankAccount_ID));
- }
-
- /** Get Transfer Cash trx to.
- @return Bank Account on which to transfer all Cash transactions
- */
- public int getCashTransferBankAccount_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_CashTransferBankAccount_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** CashTransferCashBook_ID AD_Reference_ID=52004 */
- public static final int CASHTRANSFERCASHBOOK_ID_AD_Reference_ID=52004;
- /** Set Transfer Cash trx to.
- @param CashTransferCashBook_ID
- Cash Book on which to transfer all Cash transactions
- */
- public void setCashTransferCashBook_ID (int CashTransferCashBook_ID)
- {
- if (CashTransferCashBook_ID < 1)
- set_Value (COLUMNNAME_CashTransferCashBook_ID, null);
- else
- set_Value (COLUMNNAME_CashTransferCashBook_ID, Integer.valueOf(CashTransferCashBook_ID));
- }
-
- /** Get Transfer Cash trx to.
- @return Cash Book on which to transfer all Cash transactions
- */
- public int getCashTransferCashBook_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_CashTransferCashBook_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_C_CashBook getC_CashBook() throws Exception
- {
- Class> clazz = MTable.getClass(I_C_CashBook.Table_Name);
- I_C_CashBook result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_C_CashBook)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CashBook_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** Set Cash Book.
- @param C_CashBook_ID
- Cash Book for recording petty cash transactions
- */
- public void setC_CashBook_ID (int C_CashBook_ID)
- {
- if (C_CashBook_ID < 1)
- throw new IllegalArgumentException ("C_CashBook_ID is mandatory.");
- set_Value (COLUMNNAME_C_CashBook_ID, Integer.valueOf(C_CashBook_ID));
- }
-
- /** Get Cash Book.
- @return Cash Book for recording petty cash transactions
- */
- public int getC_CashBook_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_CashBook_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** C_CashBPartner_ID AD_Reference_ID=173 */
- public static final int C_CASHBPARTNER_ID_AD_Reference_ID=173;
- /** Set Cash BPartner.
- @param C_CashBPartner_ID
- BPartner to be used for Cash transactions
- */
- public void setC_CashBPartner_ID (int C_CashBPartner_ID)
- {
- if (C_CashBPartner_ID < 1)
- throw new IllegalArgumentException ("C_CashBPartner_ID is mandatory.");
- set_Value (COLUMNNAME_C_CashBPartner_ID, Integer.valueOf(C_CashBPartner_ID));
- }
-
- /** Get Cash BPartner.
- @return BPartner to be used for Cash transactions
- */
- public int getC_CashBPartner_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_CashBPartner_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Check_BankAccount_ID AD_Reference_ID=52003 */
- public static final int CHECK_BANKACCOUNT_ID_AD_Reference_ID=52003;
- /** Set Check Bank Account.
- @param Check_BankAccount_ID
- Bank Account to be used for processing Check transactions
- */
- public void setCheck_BankAccount_ID (int Check_BankAccount_ID)
- {
- if (Check_BankAccount_ID < 1)
- set_Value (COLUMNNAME_Check_BankAccount_ID, null);
- else
- set_Value (COLUMNNAME_Check_BankAccount_ID, Integer.valueOf(Check_BankAccount_ID));
- }
-
- /** Get Check Bank Account.
- @return Bank Account to be used for processing Check transactions
- */
- public int getCheck_BankAccount_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_Check_BankAccount_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** CheckTransferBankAccount_ID AD_Reference_ID=52003 */
- public static final int CHECKTRANSFERBANKACCOUNT_ID_AD_Reference_ID=52003;
- /** Set Tranfer Check trx to.
- @param CheckTransferBankAccount_ID
- Bank account on which to transfer Check transactions
- */
- public void setCheckTransferBankAccount_ID (int CheckTransferBankAccount_ID)
- {
- if (CheckTransferBankAccount_ID < 1)
- set_Value (COLUMNNAME_CheckTransferBankAccount_ID, null);
- else
- set_Value (COLUMNNAME_CheckTransferBankAccount_ID, Integer.valueOf(CheckTransferBankAccount_ID));
- }
-
- /** Get Tranfer Check trx to.
- @return Bank account on which to transfer Check transactions
- */
- public int getCheckTransferBankAccount_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_CheckTransferBankAccount_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** CheckTransferCashBook_ID AD_Reference_ID=52004 */
- public static final int CHECKTRANSFERCASHBOOK_ID_AD_Reference_ID=52004;
- /** Set Transfer Check trx to.
- @param CheckTransferCashBook_ID
- Cash Book on which to transfer all Check transactions
- */
- public void setCheckTransferCashBook_ID (int CheckTransferCashBook_ID)
- {
- if (CheckTransferCashBook_ID < 1)
- set_Value (COLUMNNAME_CheckTransferCashBook_ID, null);
- else
- set_Value (COLUMNNAME_CheckTransferCashBook_ID, Integer.valueOf(CheckTransferCashBook_ID));
- }
-
- /** Get Transfer Check trx to.
- @return Cash Book on which to transfer all Check transactions
- */
- public int getCheckTransferCashBook_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_CheckTransferCashBook_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** CheckTransferType AD_Reference_ID=52002 */
- public static final int CHECKTRANSFERTYPE_AD_Reference_ID=52002;
- /** Bank Account = B */
- public static final String CHECKTRANSFERTYPE_BankAccount = "B";
- /** CashBook = C */
- public static final String CHECKTRANSFERTYPE_CashBook = "C";
- /** Set Check Transfer Type.
- @param CheckTransferType Check Transfer Type */
- public void setCheckTransferType (String CheckTransferType)
- {
-
- if (CheckTransferType == null || CheckTransferType.equals("B") || CheckTransferType.equals("C")); else throw new IllegalArgumentException ("CheckTransferType Invalid value - " + CheckTransferType + " - Reference_ID=52002 - B - C");
- if (CheckTransferType != null && CheckTransferType.length() > 1)
- {
- log.warning("Length > 1 - truncated");
- CheckTransferType = CheckTransferType.substring(0, 1);
- }
- set_Value (COLUMNNAME_CheckTransferType, CheckTransferType);
- }
-
- /** Get Check Transfer Type.
- @return Check Transfer Type */
- public String getCheckTransferType ()
- {
- return (String)get_Value(COLUMNNAME_CheckTransferType);
- }
-
- /** C_TemplateBPartner_ID AD_Reference_ID=173 */
- public static final int C_TEMPLATEBPARTNER_ID_AD_Reference_ID=173;
- /** Set Template BPartner.
- @param C_TemplateBPartner_ID
- BPartner that is to be used as template when new customers are created
- */
- public void setC_TemplateBPartner_ID (int C_TemplateBPartner_ID)
- {
- if (C_TemplateBPartner_ID < 1)
- set_Value (COLUMNNAME_C_TemplateBPartner_ID, null);
- else
- set_Value (COLUMNNAME_C_TemplateBPartner_ID, Integer.valueOf(C_TemplateBPartner_ID));
- }
-
- /** Get Template BPartner.
- @return BPartner that is to be used as template when new customers are created
- */
- public int getC_TemplateBPartner_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_C_TemplateBPartner_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Description.
- @param Description
- Optional short description of the record
- */
- public void setDescription (String Description)
- {
-
- if (Description != null && Description.length() > 255)
- {
- log.warning("Length > 255 - truncated");
- Description = Description.substring(0, 255);
- }
- set_Value (COLUMNNAME_Description, Description);
- }
-
- /** Get Description.
- @return Optional short description of the record
- */
- public String getDescription ()
- {
- return (String)get_Value(COLUMNNAME_Description);
- }
-
- /** Set Comment/Help.
- @param Help
- Comment or Hint
- */
- public void setHelp (String Help)
- {
-
- if (Help != null && Help.length() > 2000)
- {
- log.warning("Length > 2000 - truncated");
- Help = Help.substring(0, 2000);
- }
- set_Value (COLUMNNAME_Help, Help);
- }
-
- /** Get Comment/Help.
- @return Comment or Hint
- */
- public String getHelp ()
- {
- return (String)get_Value(COLUMNNAME_Help);
- }
-
- /** Set Last Lock Time.
- @param LastLockTime
- Last time at which the terminal was locked
- */
- public void setLastLockTime (Timestamp LastLockTime)
- {
- set_Value (COLUMNNAME_LastLockTime, LastLockTime);
- }
-
- /** Get Last Lock Time.
- @return Last time at which the terminal was locked
- */
- public Timestamp getLastLockTime ()
- {
- return (Timestamp)get_Value(COLUMNNAME_LastLockTime);
- }
-
- /** Set Locked.
- @param Locked
- Whether the terminal is locked
- */
- public void setLocked (boolean Locked)
- {
- set_Value (COLUMNNAME_Locked, Boolean.valueOf(Locked));
- }
-
- /** Get Locked.
- @return Whether the terminal is locked
- */
- public boolean isLocked ()
- {
- Object oo = get_Value(COLUMNNAME_Locked);
- if (oo != null)
- {
- if (oo instanceof Boolean)
- return ((Boolean)oo).booleanValue();
- return "Y".equals(oo);
- }
- return false;
- }
-
- /** Set Lock Time.
- @param LockTime
- Time in minutes the terminal should be kept in a locked state.
- */
- public void setLockTime (int LockTime)
- {
- set_Value (COLUMNNAME_LockTime, Integer.valueOf(LockTime));
- }
-
- /** Get Lock Time.
- @return Time in minutes the terminal should be kept in a locked state.
- */
- public int getLockTime ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_LockTime);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- public I_M_Warehouse getM_Warehouse() throws Exception
- {
- Class> clazz = MTable.getClass(I_M_Warehouse.Table_Name);
- I_M_Warehouse result = null;
- try {
- Constructor> constructor = null;
- constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
- result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()});
- } catch (Exception e) {
- log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
- log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
- throw e;
- }
- return result;
- }
-
- /** 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_Value (COLUMNNAME_M_Warehouse_ID, null);
- else
- set_Value (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();
- }
-
- /** Set Name.
- @param Name
- Alphanumeric identifier of the entity
- */
- public void setName (String Name)
- {
-
- if (Name != null && Name.length() > 60)
- {
- log.warning("Length > 60 - truncated");
- Name = Name.substring(0, 60);
- }
- set_Value (COLUMNNAME_Name, Name);
- }
-
- /** Get Name.
- @return Alphanumeric identifier of the entity
- */
- public String getName ()
- {
- return (String)get_Value(COLUMNNAME_Name);
- }
-
- /** PO_PriceList_ID AD_Reference_ID=166 */
- public static final int PO_PRICELIST_ID_AD_Reference_ID=166;
- /** Set Purchase Pricelist.
- @param PO_PriceList_ID
- Price List used by this Business Partner
- */
- public void setPO_PriceList_ID (int PO_PriceList_ID)
- {
- if (PO_PriceList_ID < 1)
- set_Value (COLUMNNAME_PO_PriceList_ID, null);
- else
- set_Value (COLUMNNAME_PO_PriceList_ID, Integer.valueOf(PO_PriceList_ID));
- }
-
- /** Get Purchase Pricelist.
- @return Price List used by this Business Partner
- */
- public int getPO_PriceList_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_PO_PriceList_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set Printer Name.
- @param PrinterName
- Name of the Printer
- */
- public void setPrinterName (String PrinterName)
- {
-
- if (PrinterName != null && PrinterName.length() > 60)
- {
- log.warning("Length > 60 - truncated");
- PrinterName = PrinterName.substring(0, 60);
- }
- set_Value (COLUMNNAME_PrinterName, PrinterName);
- }
-
- /** Get Printer Name.
- @return Name of the Printer
- */
- public String getPrinterName ()
- {
- return (String)get_Value(COLUMNNAME_PrinterName);
- }
-
- /** SalesRep_ID AD_Reference_ID=316 */
- public static final int SALESREP_ID_AD_Reference_ID=316;
- /** Set Sales Representative.
- @param SalesRep_ID
- Sales Representative or Company Agent
- */
- public void setSalesRep_ID (int SalesRep_ID)
- {
- if (SalesRep_ID < 1)
- set_Value (COLUMNNAME_SalesRep_ID, null);
- else
- set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID));
- }
-
- /** Get Sales Representative.
- @return Sales Representative or Company Agent
- */
- public int getSalesRep_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** SO_PriceList_ID AD_Reference_ID=166 */
- public static final int SO_PRICELIST_ID_AD_Reference_ID=166;
- /** Set Sales Pricelist.
- @param SO_PriceList_ID Sales Pricelist */
- public void setSO_PriceList_ID (int SO_PriceList_ID)
- {
- if (SO_PriceList_ID < 1)
- set_Value (COLUMNNAME_SO_PriceList_ID, null);
- else
- set_Value (COLUMNNAME_SO_PriceList_ID, Integer.valueOf(SO_PriceList_ID));
- }
-
- /** Get Sales Pricelist.
- @return Sales Pricelist */
- public int getSO_PriceList_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_SO_PriceList_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-
- /** Set UnlockingTime.
- @param UnlockingTime
- Time at which the terminal should be unlocked
- */
- public void setUnlockingTime (Timestamp UnlockingTime)
- {
- set_Value (COLUMNNAME_UnlockingTime, UnlockingTime);
- }
-
- /** Get UnlockingTime.
- @return Time at which the terminal should be unlocked
- */
- public Timestamp getUnlockingTime ()
- {
- return (Timestamp)get_Value(COLUMNNAME_UnlockingTime);
- }
-
- /** Set POS Terminal.
- @param U_POSTerminal_ID POS Terminal */
- public void setU_POSTerminal_ID (int U_POSTerminal_ID)
- {
- if (U_POSTerminal_ID < 1)
- throw new IllegalArgumentException ("U_POSTerminal_ID is mandatory.");
- set_ValueNoCheck (COLUMNNAME_U_POSTerminal_ID, Integer.valueOf(U_POSTerminal_ID));
- }
-
- /** Get POS Terminal.
- @return POS Terminal */
- public int getU_POSTerminal_ID ()
- {
- Integer ii = (Integer)get_Value(COLUMNNAME_U_POSTerminal_ID);
- if (ii == null)
- return 0;
- return ii.intValue();
- }
-}
\ No newline at end of file