|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.acct.Fact
public final class Fact
Accounting Fact
| Nested Class Summary | |
|---|---|
class |
Fact.Balance
Fact Balance Utility |
| Field Summary | |
|---|---|
static String |
POST_Actual
Actual Balance Type |
static String |
POST_Budget
Budget Balance Type |
static String |
POST_Commitment
Encumbrance Posting |
static String |
POST_Reservation
Encumbrance Posting |
| Constructor Summary | |
|---|---|
Fact(Doc document,
MAcctSchema acctSchema,
String defaultPostingType)
Constructor |
|
| Method Summary | |
|---|---|
FactLine |
balanceAccounting()
Balance Accounting Currency. |
void |
balanceSegments()
Balance all segments |
FactLine |
balanceSource()
Create Source Line for Suspense Balancing. |
boolean |
checkAccounts()
Check Accounts of Fact Lines |
FactLine |
createLine(DocLine docLine,
MAccount account,
int C_Currency_ID,
BigDecimal Amt)
Create and convert Fact Line. |
FactLine |
createLine(DocLine docLine,
MAccount account,
int C_Currency_ID,
BigDecimal debitAmt,
BigDecimal creditAmt)
Create and convert Fact Line. |
FactLine |
createLine(DocLine docLine,
MAccount account,
int C_Currency_ID,
BigDecimal debitAmt,
BigDecimal creditAmt,
boolean createZero)
Create and convert Fact Line. |
FactLine |
createLine(DocLine docLine,
MAccount accountDr,
MAccount accountCr,
int C_Currency_ID,
BigDecimal Amt)
Create and convert Fact Line. |
void |
dispose()
Dispose |
boolean |
distribute()
GL Distribution of Fact Lines |
String |
get_TrxName()
Get Transaction |
protected BigDecimal |
getAcctBalance()
Return Accounting Balance |
MAcctSchema |
getAcctSchema()
Get AcctSchema |
FactLine[] |
getLines()
Get Lines |
protected BigDecimal |
getSourceBalance()
Return Source Balance |
boolean |
isAcctBalanced()
Are the lines Accounting Balanced |
boolean |
isConverted()
Is converted |
boolean |
isPostingType(String PostingType)
Is Posting Type |
boolean |
isSegmentBalanced()
Are all segments balanced |
boolean |
isSegmentBalanced(String segmentType)
Is Source Segment balanced. |
boolean |
isSourceBalanced()
Are the lines Source Balanced |
boolean |
save(String trxName)
Save Fact |
String |
toString()
String representation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String POST_Actual
public static final String POST_Budget
public static final String POST_Commitment
public static final String POST_Reservation
| Constructor Detail |
|---|
public Fact(Doc document,
MAcctSchema acctSchema,
String defaultPostingType)
document - pointer to documentacctSchema - Account Schema to create accountsdefaultPostingType - the default Posting type (actual,..) for this posting| Method Detail |
|---|
public void dispose()
public FactLine createLine(DocLine docLine,
MAccount account,
int C_Currency_ID,
BigDecimal debitAmt,
BigDecimal creditAmt)
docLine - the document line or nullaccount - if null, line is not createdC_Currency_ID - the currencydebitAmt - debit amount, can be nullcreditAmt - credit amount, can be null
public FactLine createLine(DocLine docLine,
MAccount account,
int C_Currency_ID,
BigDecimal debitAmt,
BigDecimal creditAmt,
boolean createZero)
docLine - the document line or nullaccount - if null, line is not createdC_Currency_ID - the currencydebitAmt - debit amount, can be nullcreditAmt - credit amount, can be nullcreateZero - boolean - if true, allow creation of zero line when no suspense balancing
public FactLine createLine(DocLine docLine,
MAccount accountDr,
MAccount accountCr,
int C_Currency_ID,
BigDecimal Amt)
docLine - Document Line or nullaccountDr - Account to be used if Amt is DR balanceaccountCr - Account to be used if Amt is CR balanceC_Currency_ID - CurrencyAmt - if negative Cr else Dr
public FactLine createLine(DocLine docLine,
MAccount account,
int C_Currency_ID,
BigDecimal Amt)
docLine - Document line or nullaccount - Account to be usedC_Currency_ID - CurrencyAmt - if negative Cr else Dr
public boolean isPostingType(String PostingType)
PostingType - - see POST_*
public boolean isConverted()
public MAcctSchema getAcctSchema()
public boolean isSourceBalanced()
protected BigDecimal getSourceBalance()
public FactLine balanceSource()
public boolean isSegmentBalanced()
public boolean isSegmentBalanced(String segmentType)
segmentType - - see AcctSchemaElement.SEGMENT_*
Implemented only for Org
Other sensible candidates are Project, User1/2
public void balanceSegments()
public boolean isAcctBalanced()
protected BigDecimal getAcctBalance()
public FactLine balanceAccounting()
public boolean checkAccounts()
public boolean distribute()
public String toString()
toString in class Objectpublic FactLine[] getLines()
public boolean save(String trxName)
trxName - transaction
public String get_TrxName()
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||