|
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_C_AllocationHdr
org.compiere.model.MAllocationHdr
public final class MAllocationHdr
Payment Allocation Model. Allocation Trigger update C_BPartner
| 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 | |
|---|---|
MAllocationHdr(Ctx ctx,
boolean IsManual,
Timestamp DateTrx,
int C_Currency_ID,
String description,
String trxName)
Mandatory New Constructor |
|
MAllocationHdr(Ctx ctx,
int C_AllocationHdr_ID,
String trxName)
Standard Constructor |
|
MAllocationHdr(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
void |
addDescription(String description)
Add to Description |
protected boolean |
afterSave(boolean newRecord,
boolean success)
After Save |
boolean |
approveIt()
Approve Document |
protected boolean |
beforeDelete()
Before Delete. |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
boolean |
closeIt()
Close Document. |
String |
completeIt()
Complete Document |
static MAllocationHdr |
copyFrom(MAllocationHdr from,
Timestamp dateAcct,
Timestamp dateTrx,
String trxName)
Create new Allocation by copying |
int |
copyLinesFrom(MAllocationHdr otherAllocation)
Copy Lines From other Allocation. |
File |
createPDF()
Create PDF |
File |
createPDF(File file)
Create PDF file |
int |
getDoc_User_ID()
Get Document Owner (Responsible) |
String |
getDocumentInfo()
Get Document Info |
MAllocationLine[] |
getLines(boolean requery)
Get Lines |
static MAllocationHdr[] |
getOfInvoice(Ctx ctx,
int C_Invoice_ID,
String trxName)
Get Allocations of Invoice |
static MAllocationHdr[] |
getOfPayment(Ctx ctx,
int C_Payment_ID,
String trxName)
Get Allocations of Payment |
String |
getProcessMsg()
Get Process Message |
String |
getSummary()
Get Summary |
boolean |
invalidateIt()
Invalidate Document |
String |
prepareIt()
Prepare Document |
boolean |
processIt(String processAction)
Process document |
boolean |
reActivateIt()
Re-activate |
boolean |
rejectIt()
Reject Approval |
boolean |
reverseAccrualIt()
Reverse Accrual - none |
boolean |
reverseCorrectIt()
Reverse Correction |
void |
setProcessed(boolean processed)
Set Processed |
String |
toString()
String Representation |
boolean |
unlockIt()
Unlock Document. |
boolean |
voidIt()
Void Document. |
| Methods inherited from class org.compiere.model.X_C_AllocationHdr |
|---|
get_AccessLevel, getApprovalAmt, getC_AllocationHdr_ID, getC_Currency_ID, getDateAcct, getDateTrx, getDescription, getDocAction, getDocStatus, getDocumentNo, getKeyNamePair, initPO, isApproved, isDocActionValid, isDocStatusValid, isManual, isPosted, isProcessed, isProcessing, setApprovalAmt, setC_AllocationHdr_ID, setC_Currency_ID, setDateAcct, setDateTrx, setDescription, setDocAction, setDocStatus, setDocumentNo, setIsApproved, setIsManual, setPosted, setProcessing |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.compiere.process.DocAction |
|---|
get_ID, get_Logger, get_Table_ID, get_TrxName, getAD_Client_ID, getAD_Org_ID, getApprovalAmt, getC_Currency_ID, getCtx, getDocAction, getDocStatus, getDocumentNo, save, setDocStatus |
| Constructor Detail |
|---|
public MAllocationHdr(Ctx ctx,
int C_AllocationHdr_ID,
String trxName)
ctx - contextC_AllocationHdr_ID - idtrxName - transaction
public MAllocationHdr(Ctx ctx,
boolean IsManual,
Timestamp DateTrx,
int C_Currency_ID,
String description,
String trxName)
ctx - contextIsManual - manual trxDateTrx - date (if null today)C_Currency_ID - currencydescription - descriptiontrxName - transaction
public MAllocationHdr(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public static MAllocationHdr[] getOfPayment(Ctx ctx,
int C_Payment_ID,
String trxName)
ctx - contextC_Payment_ID - paymenttrxName - transaction
public static MAllocationHdr[] getOfInvoice(Ctx ctx,
int C_Invoice_ID,
String trxName)
ctx - contextC_Invoice_ID - paymenttrxName - transaction
public MAllocationLine[] getLines(boolean requery)
requery - if true requery
public static MAllocationHdr copyFrom(MAllocationHdr from,
Timestamp dateAcct,
Timestamp dateTrx,
String trxName)
from - allocationdateAcct - date of the document accounting datedateTrx - date of the document transaction.trxName - trx
public int copyLinesFrom(MAllocationHdr otherAllocation)
otherAllocation - allocation
public void addDescription(String description)
description - textpublic void setProcessed(boolean processed)
setProcessed in class X_C_AllocationHdrprocessed - Processedprotected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord -
protected boolean beforeDelete()
beforeDelete in class PO
protected boolean afterSave(boolean newRecord,
boolean success)
afterSave in class POnewRecord - success -
public boolean processIt(String processAction)
processIt in interface DocActionprocessAction - document action
public boolean unlockIt()
unlockIt in interface DocActionpublic boolean invalidateIt()
invalidateIt in interface DocActionpublic String prepareIt()
prepareIt in interface DocActionpublic boolean approveIt()
approveIt in interface DocActionpublic boolean rejectIt()
rejectIt in interface DocActionpublic String completeIt()
completeIt in interface DocActionpublic boolean voidIt()
voidIt in interface DocActionpublic boolean closeIt()
closeIt in interface DocActionpublic boolean reverseCorrectIt()
reverseCorrectIt in interface DocActionpublic boolean reverseAccrualIt()
reverseAccrualIt in interface DocActionpublic boolean reActivateIt()
reActivateIt in interface DocActionpublic String toString()
toString in class X_C_AllocationHdrpublic String getDocumentInfo()
getDocumentInfo in interface DocActionpublic File createPDF()
createPDF in interface DocActionpublic File createPDF(File file)
file - output file
public String getSummary()
getSummary in interface DocActionpublic String getProcessMsg()
getProcessMsg in interface DocActionpublic int getDoc_User_ID()
getDoc_User_ID in interface DocAction
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||