|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.framework.PO
org.compiere.model.X_GL_Distribution
org.compiere.model.MDistribution
public class MDistribution
GL Distribution Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.framework.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_changeVO, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MDistribution(Ctx ctx,
int GL_Distribution_ID,
String trxName)
Standard Constructor |
|
MDistribution(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
beforeSave(boolean newRecord)
Before Save |
void |
distribute(MAccount acct,
BigDecimal Amt,
int C_Currency_ID)
Distribute Amount to Lines |
static MDistribution[] |
get(Ctx ctx,
int Account_ID)
Get Distributions for Account |
static MDistribution[] |
get(Ctx ctx,
int C_AcctSchema_ID,
String PostingType,
int C_DocType_ID,
int AD_Org_ID,
int Account_ID,
int M_Product_ID,
int C_BPartner_ID,
int C_Project_ID,
int C_Campaign_ID,
int C_Activity_ID,
int AD_OrgTrx_ID,
int C_SalesRegion_ID,
int C_LocTo_ID,
int C_LocFrom_ID,
int User1_ID,
int User2_ID)
Get Distributions for combination |
static MDistribution[] |
get(MAccount acct,
String PostingType,
int C_DocType_ID)
Get Distribution for combination |
MDistributionLine[] |
getLines(boolean reload)
Get Lines and calculate total |
String |
validate()
Validate Distribution |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MDistribution(Ctx ctx,
int GL_Distribution_ID,
String trxName)
ctx - contextGL_Distribution_ID - idtrxName - transaction
public MDistribution(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public static MDistribution[] get(MAccount acct,
String PostingType,
int C_DocType_ID)
acct - account (ValidCombination)PostingType - only posting typeC_DocType_ID - only document type
public static MDistribution[] get(Ctx ctx,
int C_AcctSchema_ID,
String PostingType,
int C_DocType_ID,
int AD_Org_ID,
int Account_ID,
int M_Product_ID,
int C_BPartner_ID,
int C_Project_ID,
int C_Campaign_ID,
int C_Activity_ID,
int AD_OrgTrx_ID,
int C_SalesRegion_ID,
int C_LocTo_ID,
int C_LocFrom_ID,
int User1_ID,
int User2_ID)
ctx - contextC_AcctSchema_ID - schemaPostingType - posting typeC_DocType_ID - document typeAD_Org_ID - orgAccount_ID - accountM_Product_ID - productC_BPartner_ID - partnerC_Project_ID - projectC_Campaign_ID - campaignC_Activity_ID - activityAD_OrgTrx_ID - trx orgC_SalesRegion_ID - C_LocTo_ID - location toC_LocFrom_ID - location fromUser1_ID - user 1User2_ID - user 2
public static MDistribution[] get(Ctx ctx,
int Account_ID)
ctx - contextAccount_ID - id
public MDistributionLine[] getLines(boolean reload)
reload - reload data
public String validate()
public void distribute(MAccount acct,
BigDecimal Amt,
int C_Currency_ID)
acct - accountAmt - amountC_Currency_ID - currencyprotected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||