Posterita model files - ver. 1.7.3
This commit is contained in:
parent
2a7b15b1e5
commit
808c9d95b1
|
@ -121,6 +121,19 @@ public interface I_AD_OrgInfo
|
|||
*/
|
||||
public int getParent_Org_ID();
|
||||
|
||||
/** Column name ReceiptFooterMsg */
|
||||
public static final String COLUMNNAME_ReceiptFooterMsg = "ReceiptFooterMsg";
|
||||
|
||||
/** Set ReceiptFooterMsg.
|
||||
* This message will be displayed at the bottom of a receipt when doing a sales or purchase
|
||||
*/
|
||||
public void setReceiptFooterMsg (String ReceiptFooterMsg);
|
||||
|
||||
/** Get ReceiptFooterMsg.
|
||||
* 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";
|
||||
|
||||
|
@ -146,4 +159,26 @@ public interface I_AD_OrgInfo
|
|||
* 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();
|
||||
}
|
||||
|
|
|
@ -340,6 +340,24 @@ public interface I_AD_Role
|
|||
*/
|
||||
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";
|
||||
|
||||
|
|
|
@ -170,6 +170,19 @@ public interface I_C_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";
|
||||
|
||||
|
|
|
@ -271,6 +271,21 @@ public interface I_C_Payment
|
|||
|
||||
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";
|
||||
|
||||
|
|
|
@ -212,6 +212,15 @@ public interface I_M_InventoryLine
|
|||
*/
|
||||
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";
|
||||
|
||||
|
|
|
@ -119,6 +119,32 @@ public interface I_M_PriceList
|
|||
*/
|
||||
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.
|
||||
* Price List appears in Product Screen
|
||||
*/
|
||||
public void setisPresentForProduct (boolean isPresentForProduct);
|
||||
|
||||
/** Get isPresentForProduct.
|
||||
* Price List appears in Product Screen
|
||||
*/
|
||||
public boolean isPresentForProduct();
|
||||
|
||||
/** Column name IsSOPriceList */
|
||||
public static final String COLUMNNAME_IsSOPriceList = "IsSOPriceList";
|
||||
|
||||
|
|
|
@ -418,10 +418,10 @@ public interface I_M_Product
|
|||
/** Column name LowLevel */
|
||||
public static final String COLUMNNAME_LowLevel = "LowLevel";
|
||||
|
||||
/** Set LowLevel */
|
||||
/** Set Low Level */
|
||||
public void setLowLevel (int LowLevel);
|
||||
|
||||
/** Get LowLevel */
|
||||
/** Get Low Level */
|
||||
public int getLowLevel();
|
||||
|
||||
/** Column name M_AttributeSet_ID */
|
||||
|
@ -653,6 +653,19 @@ public interface I_M_Product
|
|||
|
||||
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";
|
||||
|
||||
|
|
|
@ -0,0 +1,342 @@
|
|||
/**********************************************************************
|
||||
* 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 Adempiere (generated)
|
||||
* @version Release 3.5.2a
|
||||
*/
|
||||
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 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 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 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();
|
||||
}
|
|
@ -40,6 +40,8 @@ public class X_AD_OrgInfo extends PO implements I_AD_OrgInfo, I_Persistent
|
|||
/** if (AD_OrgInfo_ID == 0)
|
||||
{
|
||||
setDUNS (null);
|
||||
setReceiptFooterMsg (null);
|
||||
// 1
|
||||
setTaxID (null);
|
||||
} */
|
||||
}
|
||||
|
@ -217,6 +219,25 @@ public class X_AD_OrgInfo extends PO implements I_AD_OrgInfo, I_Persistent
|
|||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set ReceiptFooterMsg.
|
||||
@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)
|
||||
throw new IllegalArgumentException ("ReceiptFooterMsg is mandatory.");
|
||||
set_Value (COLUMNNAME_ReceiptFooterMsg, ReceiptFooterMsg);
|
||||
}
|
||||
|
||||
/** Get ReceiptFooterMsg.
|
||||
@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.
|
||||
|
@ -260,4 +281,51 @@ public class X_AD_OrgInfo extends PO implements I_AD_OrgInfo, I_Persistent
|
|||
{
|
||||
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();
|
||||
}
|
||||
}
|
|
@ -43,6 +43,32 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent
|
|||
/** if (AD_Role_ID == 0)
|
||||
{
|
||||
setAD_Role_ID (0);
|
||||
setAllow_Info_Account (false);
|
||||
// N
|
||||
setAllow_Info_Asset (false);
|
||||
// N
|
||||
setAllow_Info_BPartner (false);
|
||||
// N
|
||||
setAllow_Info_CashJournal (false);
|
||||
// N
|
||||
setAllow_Info_CRP (true);
|
||||
// Y
|
||||
setAllow_Info_InOut (false);
|
||||
// N
|
||||
setAllow_Info_Invoice (false);
|
||||
// N
|
||||
setAllow_Info_MRP (true);
|
||||
// Y
|
||||
setAllow_Info_Order (false);
|
||||
// N
|
||||
setAllow_Info_Payment (false);
|
||||
// N
|
||||
setAllow_Info_Product (true);
|
||||
// Y
|
||||
setAllow_Info_Resource (false);
|
||||
// N
|
||||
setAllow_Info_Schedule (false);
|
||||
// N
|
||||
setConfirmQueryRecords (0);
|
||||
// 0
|
||||
setIsAccessAllOrgs (false);
|
||||
|
@ -54,6 +80,8 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent
|
|||
// Y
|
||||
setIsChangeLog (false);
|
||||
// N
|
||||
setIsDiscountAllowedOnTotal (false);
|
||||
setIsDiscountUptoLimitPrice (false);
|
||||
setIsManual (false);
|
||||
setIsPersonalAccess (false);
|
||||
// N
|
||||
|
@ -692,6 +720,48 @@ public class X_AD_Role extends PO implements I_AD_Role, I_Persistent
|
|||
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
|
||||
|
|
|
@ -50,6 +50,8 @@ public class X_C_Currency extends PO implements I_C_Currency, I_Persistent
|
|||
setIsEuro (false);
|
||||
// N
|
||||
setISO_Code (null);
|
||||
setRoundOffFactor (Env.ZERO);
|
||||
// 1
|
||||
setStdPrecision (0);
|
||||
// 2
|
||||
} */
|
||||
|
@ -273,6 +275,28 @@ public class X_C_Currency extends PO implements I_C_Currency, I_Persistent
|
|||
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
|
||||
|
|
|
@ -1422,6 +1422,8 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent
|
|||
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
|
||||
|
@ -1429,7 +1431,7 @@ public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent
|
|||
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")); else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - K - T - S - P - D"); set_Value (COLUMNNAME_PaymentRule, PaymentRule);
|
||||
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"); set_Value (COLUMNNAME_PaymentRule, PaymentRule);
|
||||
}
|
||||
|
||||
/** Get Payment Rule.
|
||||
|
|
|
@ -1741,6 +1741,8 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent
|
|||
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
|
||||
|
@ -1748,7 +1750,7 @@ public class X_C_Order extends PO implements I_C_Order, I_Persistent
|
|||
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")); else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - K - T - S - P - D"); set_Value (COLUMNNAME_PaymentRule, PaymentRule);
|
||||
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"); set_Value (COLUMNNAME_PaymentRule, PaymentRule);
|
||||
}
|
||||
|
||||
/** Get Payment Rule.
|
||||
|
|
|
@ -43,7 +43,6 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent
|
|||
super (ctx, C_Payment_ID, trxName);
|
||||
/** if (C_Payment_ID == 0)
|
||||
{
|
||||
setC_BankAccount_ID (0);
|
||||
setC_BPartner_ID (0);
|
||||
setC_Currency_ID (0);
|
||||
setC_DocType_ID (0);
|
||||
|
@ -364,9 +363,10 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent
|
|||
*/
|
||||
public void setC_BankAccount_ID (int C_BankAccount_ID)
|
||||
{
|
||||
if (C_BankAccount_ID < 1)
|
||||
throw new IllegalArgumentException ("C_BankAccount_ID is mandatory.");
|
||||
set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(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.
|
||||
|
@ -496,6 +496,45 @@ public class X_C_Payment extends PO implements I_C_Payment, I_Persistent
|
|||
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);
|
||||
|
|
|
@ -45,14 +45,15 @@ public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persis
|
|||
setInventoryType (null);
|
||||
// D
|
||||
setM_AttributeSetInstance_ID (0);
|
||||
setM_InventoryLine_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);
|
||||
} */
|
||||
}
|
||||
|
||||
|
@ -388,6 +389,25 @@ public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persis
|
|||
return bd;
|
||||
}
|
||||
|
||||
/** Set QtyCsv.
|
||||
@param QtyCsv QtyCsv */
|
||||
public void setQtyCsv (BigDecimal QtyCsv)
|
||||
{
|
||||
if (QtyCsv == null)
|
||||
throw new IllegalArgumentException ("QtyCsv is mandatory.");
|
||||
set_Value (COLUMNNAME_QtyCsv, QtyCsv);
|
||||
}
|
||||
|
||||
/** Get QtyCsv.
|
||||
@return QtyCsv */
|
||||
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
|
||||
|
|
|
@ -210,6 +210,54 @@ public class X_M_PriceList extends PO implements I_M_PriceList, I_Persistent
|
|||
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
|
||||
Price List appears in Product Screen
|
||||
*/
|
||||
public void setisPresentForProduct (boolean isPresentForProduct)
|
||||
{
|
||||
set_Value (COLUMNNAME_isPresentForProduct, Boolean.valueOf(isPresentForProduct));
|
||||
}
|
||||
|
||||
/** Get isPresentForProduct.
|
||||
@return Price List appears in Product Screen
|
||||
*/
|
||||
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
|
||||
|
|
|
@ -64,6 +64,8 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
|
|||
setIsVerified (false);
|
||||
// N
|
||||
setIsWebStoreFeatured (false);
|
||||
setLowLevel (0);
|
||||
// 0
|
||||
setM_AttributeSetInstance_ID (0);
|
||||
setM_Product_Category_ID (0);
|
||||
setM_Product_ID (0);
|
||||
|
@ -739,15 +741,15 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
|
|||
return false;
|
||||
}
|
||||
|
||||
/** Set LowLevel.
|
||||
@param LowLevel LowLevel */
|
||||
/** Set Low Level.
|
||||
@param LowLevel Low Level */
|
||||
public void setLowLevel (int LowLevel)
|
||||
{
|
||||
set_Value (COLUMNNAME_LowLevel, Integer.valueOf(LowLevel));
|
||||
}
|
||||
|
||||
/** Get LowLevel.
|
||||
@return LowLevel */
|
||||
/** Get Low Level.
|
||||
@return Low Level */
|
||||
public int getLowLevel ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_LowLevel);
|
||||
|
@ -1230,6 +1232,26 @@ public class X_M_Product extends PO implements I_M_Product, I_Persistent
|
|||
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
|
||||
|
|
|
@ -0,0 +1,607 @@
|
|||
/******************************************************************************
|
||||
* 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.5.2a - $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;
|
||||
}
|
||||
|
||||
/** 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"); 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"); 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);
|
||||
}
|
||||
|
||||
/** 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();
|
||||
}
|
||||
|
||||
/** 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"); 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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue