Compiere 3.1

org.compiere.model
Class MInvoice

java.lang.Object
  extended by org.compiere.framework.PO
      extended by org.compiere.model.X_C_Invoice
          extended by org.compiere.model.MInvoice
All Implemented Interfaces:
Serializable, Cloneable, Comparator<PO>, DocAction, Evaluatee

public class MInvoice
extends X_C_Invoice
implements DocAction

Invoice Model. Please do not set DocStatus and C_DocType_ID directly. They are set in the process() method. Use DocAction and C_DocTypeTarget_ID instead.

Version:
$Id: MInvoice.java,v 1.2 2006/07/30 00:51:02 jjanke Exp $
Author:
Jorg Janke
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.compiere.model.X_C_Invoice
accessLevel, AD_ORGTRX_ID_AD_Reference_ID, C_CHARGE_ID_AD_Reference_ID, C_DOCTYPETARGET_ID_AD_Reference_ID, DOCACTION_AD_Reference_ID, DOCACTION_Approve, DOCACTION_Close, DOCACTION_Complete, DOCACTION_Invalidate, DOCACTION_None, DOCACTION_Post, DOCACTION_Prepare, DOCACTION_Re_Activate, DOCACTION_Reject, DOCACTION_Reverse_Accrual, DOCACTION_Reverse_Correct, DOCACTION_Unlock, DOCACTION_Void, DOCACTION_WaitComplete, DOCSTATUS_AD_Reference_ID, DOCSTATUS_Approved, DOCSTATUS_Closed, DOCSTATUS_Completed, DOCSTATUS_Drafted, DOCSTATUS_InProgress, DOCSTATUS_Invalid, DOCSTATUS_NotApproved, DOCSTATUS_Reversed, DOCSTATUS_Unknown, DOCSTATUS_Voided, DOCSTATUS_WaitingConfirmation, DOCSTATUS_WaitingPayment, INVOICECOLLECTIONTYPE_AD_Reference_ID, INVOICECOLLECTIONTYPE_CollectionAgency, INVOICECOLLECTIONTYPE_Dunning, INVOICECOLLECTIONTYPE_LegalProcedure, INVOICECOLLECTIONTYPE_Uncollectable, MATCHREQUIREMENTI_AD_Reference_ID, MATCHREQUIREMENTI_None, MATCHREQUIREMENTI_PurchaseOrder, MATCHREQUIREMENTI_PurchaseOrderAndReceipt, MATCHREQUIREMENTI_Receipt, Model, PAYMENTRULE_AD_Reference_ID, PAYMENTRULE_Cash, PAYMENTRULE_Check, PAYMENTRULE_CreditCard, PAYMENTRULE_DirectDebit, PAYMENTRULE_DirectDeposit, PAYMENTRULE_OnCredit, SALESREP_ID_AD_Reference_ID, Table_ID, Table_Name, updatedMS, USER1_ID_AD_Reference_ID, USER2_ID_AD_Reference_ID
 
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
 
Fields inherited from interface org.compiere.process.DocAction
ACTION_Approve, ACTION_Close, ACTION_Complete, ACTION_Invalidate, ACTION_None, ACTION_Post, ACTION_Prepare, ACTION_ReActivate, ACTION_Reject, ACTION_ReOpen, ACTION_Reverse_Accrual, ACTION_Reverse_Correct, ACTION_Unlock, ACTION_Void, ACTION_WaitComplete, STATUS_Approved, STATUS_Closed, STATUS_Completed, STATUS_Drafted, STATUS_InProgress, STATUS_Invalid, STATUS_NotApproved, STATUS_Reversed, STATUS_Unknown, STATUS_Voided, STATUS_WaitingConfirmation, STATUS_WaitingPayment
 
Constructor Summary
MInvoice(Ctx ctx, int C_Invoice_ID, String trxName)
          Invoice Constructor
MInvoice(Ctx ctx, ResultSet rs, String trxName)
          Load Constructor
MInvoice(MInOut ship, Timestamp invoiceDate)
          Create Invoice from Shipment
MInvoice(MInvoiceBatch batch, MInvoiceBatchLine line)
          Create Invoice from Batch Line
MInvoice(MOrder order, int C_DocTypeTarget_ID, Timestamp invoiceDate)
          Create Invoice from Order
 
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 MInvoice copyFrom(MInvoice from, Timestamp dateDoc, int C_DocTypeTarget_ID, boolean counter, String trxName, boolean setOrder)
          Create new Invoice by copying
 int copyLinesFrom(MInvoice otherInvoice, boolean counter, boolean setOrder)
          Copy Lines From other Invoice.
 File createPDF()
          Create PDF
 File createPDF(File file)
          Create PDF file
static MInvoice get(Ctx ctx, int C_Invoice_ID)
          Get MInvoice from Cache
 BigDecimal getAllocatedAmt()
          Get Allocated Amt in Invoice Currency
 BigDecimal getApprovalAmt()
          Get Document Approval Amount
 String getCurrencyISO()
          Get ISO Code of Currency
 int getDoc_User_ID()
          Get Document Owner (Responsible)
 String getDocStatusName()
          Get Document Status
 String getDocumentInfo()
          Get Document Info
 BigDecimal getGrandTotal(boolean creditMemoAdjusted)
          Get Grand Total
 MInvoiceLine[] getLines()
          Get Lines of Invoice
 MInvoiceLine[] getLines(boolean requery)
          Get Invoice Lines
static MInvoice[] getOfBPartner(Ctx ctx, int C_BPartner_ID, String trxName)
          Get Payments Of BPartner
 BigDecimal getOpenAmt()
          Get Open Amount.
 BigDecimal getOpenAmt(boolean creditMemoAdjusted, Timestamp paymentDate)
          Get Open Amount
 String getPDFFileName(String documentDir)
          Get PDF File Name
static String getPDFFileName(String documentDir, int C_Invoice_ID)
          Get PDF File Name
 int getPrecision()
          Get Currency Precision
 String getProcessMsg()
          Get Process Message
 String getSummary()
          Get Summary
 MInvoiceTax[] getTaxes(boolean requery)
          Get Taxes
 boolean invalidateIt()
          Invalidate Document
 boolean isCreditMemo()
          Is it a Credit Memo?
 String prepareIt()
          Prepare Document
 boolean processIt(String processAction)
          Process document
 boolean reActivateIt()
          Re-activate
 boolean rejectIt()
          Reject Approval
 void renumberLines(int step)
          Renumber Lines
 boolean reverseAccrualIt()
          Reverse Accrual - none
 boolean reverseCorrectIt()
          Reverse Correction - same date
 void setBPartner(MBPartner bp)
          Set Business Partner Defaults & Details
 void setC_BPartner_ID(String oldC_BPartner_ID, String newC_BPartner_ID, int WindowNo)
          Invoice Header- BPartner
 void setC_DocTypeTarget_ID()
          Set Target Document Type.
 void setC_DocTypeTarget_ID(int C_DocTypeTarget_ID, boolean setReturnTrx)
          Set Target Document Type
 void setC_DocTypeTarget_ID(String DocBaseType)
          Set Target Document Type
 void setC_DocTypeTarget_ID(String oldC_DocTypeTarget_ID, String newC_DocTypeTarget_ID, int WindowNo)
          Invoice Header - DocType
 void setC_PaymentTerm_ID(String oldC_PaymentTerm_ID, String newC_PaymentTerm_ID, int windowNo)
           
 void setClientOrg(int AD_Client_ID, int AD_Org_ID)
          Overwrite Client/Org if required
 void setDateInvoiced(String oldDateInvoiced, String newDateInvoiced, int windowNo)
          Set DateInvoiced - Callout
static void setIsPaid(Ctx ctx, int C_BPartner_ID, String trxName)
          Set Paid Flag for invoices
 void setM_PriceList_ID(int M_PriceList_ID)
          Set Price List (and Currency) when valid
 void setM_PriceList_ID(String oldM_PriceList_ID, String newM_PriceList_ID, int windowNo)
          Set Price List - Callout
 void setOrder(MOrder order)
          Set Order References
 void setPriceListVersion(int windowNo)
           
 void setProcessed(boolean processed)
          Set Processed.
 void setShipment(MInOut ship)
          Set Shipment References
 boolean testAllocation()
          Test Allocation (and set paid flag)
 String toString()
          String Representation
 boolean unlockIt()
          Unlock Document.
 boolean validatePaySchedule()
          Validate Invoice Pay Schedule
 boolean voidIt()
          Void Document.
 
Methods inherited from class org.compiere.model.X_C_Invoice
get_AccessLevel, getAD_OrgTrx_ID, getAD_User_ID, getC_Activity_ID, getC_BP_BankAccount_ID, getC_BPartner_ID, getC_BPartner_Location_ID, getC_Campaign_ID, getC_CashLine_ID, getC_Charge_ID, getC_ConversionType_ID, getC_Currency_ID, getC_DocType_ID, getC_DocTypeTarget_ID, getC_Invoice_ID, getC_Order_ID, getC_Payment_ID, getC_PaymentTerm_ID, getC_Project_ID, getChargeAmt, getCopyFrom, getCreateFrom, getDateAcct, getDateInvoiced, getDateOrdered, getDatePrinted, getDescription, getDocAction, getDocStatus, getDocumentNo, getGenerateTo, getGrandTotal, getInvoiceCollectionType, getKeyNamePair, getM_PriceList_ID, getMatchRequirementI, getPaymentRule, getPOReference, getRef_Invoice_ID, getSalesRep_ID, getTotalLines, getUser1_ID, getUser2_ID, initPO, isApproved, isDiscountPrinted, isDocActionValid, isDocStatusValid, isInDispute, isInvoiceCollectionTypeValid, isMatchRequirementIValid, isPaid, isPaymentRuleValid, isPayScheduleValid, isPosted, isPrinted, isProcessed, isProcessing, isReturnTrx, isSelfService, isSendEMail, isSOTrx, isTaxIncluded, isTransferred, setAD_OrgTrx_ID, setAD_User_ID, setC_Activity_ID, setC_BP_BankAccount_ID, setC_BPartner_ID, setC_BPartner_Location_ID, setC_Campaign_ID, setC_CashLine_ID, setC_Charge_ID, setC_ConversionType_ID, setC_Currency_ID, setC_DocType_ID, setC_DocTypeTarget_ID, setC_Invoice_ID, setC_Order_ID, setC_Payment_ID, setC_PaymentTerm_ID, setC_Project_ID, setChargeAmt, setCopyFrom, setCreateFrom, setDateAcct, setDateInvoiced, setDateOrdered, setDatePrinted, setDescription, setDocAction, setDocStatus, setDocumentNo, setGenerateTo, setGrandTotal, setInvoiceCollectionType, setIsApproved, setIsDiscountPrinted, setIsInDispute, setIsPaid, setIsPayScheduleValid, setIsPrinted, setIsReturnTrx, setIsSelfService, setIsSOTrx, setIsTaxIncluded, setIsTransferred, setMatchRequirementI, setPaymentRule, setPOReference, setPosted, setProcessing, setRef_Invoice_ID, setSalesRep_ID, setSendEMail, setTotalLines, setUser1_ID, setUser2_ID
 
Methods inherited from class org.compiere.framework.PO
addAttachment, addAttachment, addError, afterDelete, compare, convertToBigDecimal, convertToBoolean, convertToInt, convertToTimestamp, copy, copyValues, copyValues, createAttachment, delete_Accounting, delete, delete, dump, dump, equals, get_ChangeVO, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_EntityType, get_HashMap, get_ID, get_IDOld, get_Info, get_KeyColumns, get_Logger, get_Table_ID, get_Table_ID, get_TableName, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_ValuesAsString, get_WhereClause, get_xmlDocument, get_xmlString, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, getVO, hashCode, insert_Accounting, is_Changed, is_KeyColumn, is_new, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, load, load, load, load, loadComplete, loadDefaults, loadSpecial, lock, save, save, saveNew_getID, saveNewInsertSQL, saveNewSpecial, saveUpdate, set_ChangeVO, set_ColumnUpdateable, set_CustomColumn, set_TrxName, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueString, setAD_Client_ID, setAD_Org_ID, setClientOrg, setContext, setCtx, setDocWorkflowMgr, setIsActive, setStandardDefaults, setUpdateable, setUpdatedBy, toStringX, unlock, update
 
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, getC_Currency_ID, getCtx, getDocAction, getDocStatus, getDocumentNo, save, setDocStatus
 

Constructor Detail

MInvoice

public MInvoice(Ctx ctx,
                int C_Invoice_ID,
                String trxName)
Invoice Constructor

Parameters:
ctx - context
C_Invoice_ID - invoice or 0 for new
trxName - trx name

MInvoice

public MInvoice(Ctx ctx,
                ResultSet rs,
                String trxName)
Load Constructor

Parameters:
ctx - context
rs - result set record
trxName - transaction

MInvoice

public MInvoice(MOrder order,
                int C_DocTypeTarget_ID,
                Timestamp invoiceDate)
Create Invoice from Order

Parameters:
order - order
C_DocTypeTarget_ID - target document type
invoiceDate - date or null

MInvoice

public MInvoice(MInOut ship,
                Timestamp invoiceDate)
Create Invoice from Shipment

Parameters:
ship - shipment
invoiceDate - date or null

MInvoice

public MInvoice(MInvoiceBatch batch,
                MInvoiceBatchLine line)
Create Invoice from Batch Line

Parameters:
batch - batch
line - batch line
Method Detail

getOfBPartner

public static MInvoice[] getOfBPartner(Ctx ctx,
                                       int C_BPartner_ID,
                                       String trxName)
Get Payments Of BPartner

Parameters:
ctx - context
C_BPartner_ID - id
trxName - transaction
Returns:
array

copyFrom

public static MInvoice copyFrom(MInvoice from,
                                Timestamp dateDoc,
                                int C_DocTypeTarget_ID,
                                boolean counter,
                                String trxName,
                                boolean setOrder)
Create new Invoice by copying

Parameters:
from - invoice
dateDoc - date of the document date
C_DocTypeTarget_ID - target doc type
isSOTrx - sales order
counter - create counter links
trxName - trx
setOrder - set Order links
Returns:
Invoice

getPDFFileName

public static String getPDFFileName(String documentDir,
                                    int C_Invoice_ID)
Get PDF File Name

Parameters:
documentDir - directory
C_Invoice_ID - invoice
Returns:
file name

get

public static MInvoice get(Ctx ctx,
                           int C_Invoice_ID)
Get MInvoice from Cache

Parameters:
ctx - context
C_Invoice_ID - id
Returns:
MInvoice

setClientOrg

public void setClientOrg(int AD_Client_ID,
                         int AD_Org_ID)
Overwrite Client/Org if required

Overrides:
setClientOrg in class PO
Parameters:
AD_Client_ID - client
AD_Org_ID - org

setBPartner

public void setBPartner(MBPartner bp)
Set Business Partner Defaults & Details

Parameters:
bp - business partner

setOrder

public void setOrder(MOrder order)
Set Order References

Parameters:
order - order

setShipment

public void setShipment(MInOut ship)
Set Shipment References

Parameters:
ship - shipment

setC_DocTypeTarget_ID

public void setC_DocTypeTarget_ID(String DocBaseType)
Set Target Document Type

Parameters:
DocBaseType - doc type MDocBaseType.DOCBASETYPE_

setC_DocTypeTarget_ID

public void setC_DocTypeTarget_ID()
Set Target Document Type. Based on SO flag AP/AP Invoice


setC_DocTypeTarget_ID

public void setC_DocTypeTarget_ID(int C_DocTypeTarget_ID,
                                  boolean setReturnTrx)
Set Target Document Type

Parameters:
C_DocTypeTarget_ID - id
setReturnTrx - if true set ReturnTrx and SOTrx

getGrandTotal

public BigDecimal getGrandTotal(boolean creditMemoAdjusted)
Get Grand Total

Parameters:
creditMemoAdjusted - adjusted for CM (negative)
Returns:
grand total

getLines

public MInvoiceLine[] getLines(boolean requery)
Get Invoice Lines

Parameters:
requery -
Returns:
lines

getLines

public MInvoiceLine[] getLines()
Get Lines of Invoice

Returns:
lines

renumberLines

public void renumberLines(int step)
Renumber Lines

Parameters:
step - start and step

copyLinesFrom

public int copyLinesFrom(MInvoice otherInvoice,
                         boolean counter,
                         boolean setOrder)
Copy Lines From other Invoice.

Parameters:
otherInvoice - invoice
counter - create counter links
setOrder - set order links
Returns:
number of lines copied

getTaxes

public MInvoiceTax[] getTaxes(boolean requery)
Get Taxes

Parameters:
requery - requery
Returns:
array of taxes

addDescription

public void addDescription(String description)
Add to Description

Parameters:
description - text

isCreditMemo

public boolean isCreditMemo()
Is it a Credit Memo?

Returns:
true if CM

setProcessed

public void setProcessed(boolean processed)
Set Processed. Propergate to Lines/Taxes

Overrides:
setProcessed in class X_C_Invoice
Parameters:
processed - processed

validatePaySchedule

public boolean validatePaySchedule()
Validate Invoice Pay Schedule

Returns:
pay schedule is valid

beforeSave

protected boolean beforeSave(boolean newRecord)
Before Save

Overrides:
beforeSave in class PO
Parameters:
newRecord - new
Returns:
true

beforeDelete

protected boolean beforeDelete()
Before Delete

Overrides:
beforeDelete in class PO
Returns:
true if it can be deleted

toString

public String toString()
String Representation

Overrides:
toString in class X_C_Invoice
Returns:
info

getDocumentInfo

public String getDocumentInfo()
Get Document Info

Specified by:
getDocumentInfo in interface DocAction
Returns:
document info (untranslated)

afterSave

protected boolean afterSave(boolean newRecord,
                            boolean success)
After Save

Overrides:
afterSave in class PO
Parameters:
newRecord - new
success - success
Returns:
success

setM_PriceList_ID

public void setM_PriceList_ID(int M_PriceList_ID)
Set Price List (and Currency) when valid

Overrides:
setM_PriceList_ID in class X_C_Invoice
Parameters:
M_PriceList_ID - price list

getAllocatedAmt

public BigDecimal getAllocatedAmt()
Get Allocated Amt in Invoice Currency

Returns:
pos/neg amount or null

testAllocation

public boolean testAllocation()
Test Allocation (and set paid flag)

Returns:
true if updated

setIsPaid

public static void setIsPaid(Ctx ctx,
                             int C_BPartner_ID,
                             String trxName)
Set Paid Flag for invoices

Parameters:
ctx - context
C_BPartner_ID - if 0 all
trxName - transaction

getOpenAmt

public BigDecimal getOpenAmt()
Get Open Amount. Used by web interface

Returns:
Open Amt

getOpenAmt

public BigDecimal getOpenAmt(boolean creditMemoAdjusted,
                             Timestamp paymentDate)
Get Open Amount

Parameters:
creditMemoAdjusted - adjusted for CM (negative)
paymentDate - ignored Payment Date
Returns:
Open Amt

getDocStatusName

public String getDocStatusName()
Get Document Status

Returns:
Document Status Clear Text

createPDF

public File createPDF()
Create PDF

Specified by:
createPDF in interface DocAction
Returns:
File or null

createPDF

public File createPDF(File file)
Create PDF file

Parameters:
file - output file
Returns:
file if success

getPDFFileName

public String getPDFFileName(String documentDir)
Get PDF File Name

Parameters:
documentDir - directory
Returns:
file name

getCurrencyISO

public String getCurrencyISO()
Get ISO Code of Currency

Returns:
Currency ISO

getPrecision

public int getPrecision()
Get Currency Precision

Returns:
precision

processIt

public boolean processIt(String processAction)
Process document

Specified by:
processIt in interface DocAction
Parameters:
processAction - document action
Returns:
true if performed

unlockIt

public boolean unlockIt()
Unlock Document.

Specified by:
unlockIt in interface DocAction
Returns:
true if success

invalidateIt

public boolean invalidateIt()
Invalidate Document

Specified by:
invalidateIt in interface DocAction
Returns:
true if success

prepareIt

public String prepareIt()
Prepare Document

Specified by:
prepareIt in interface DocAction
Returns:
new status (In Progress or Invalid)

approveIt

public boolean approveIt()
Approve Document

Specified by:
approveIt in interface DocAction
Returns:
true if success

rejectIt

public boolean rejectIt()
Reject Approval

Specified by:
rejectIt in interface DocAction
Returns:
true if success

completeIt

public String completeIt()
Complete Document

Specified by:
completeIt in interface DocAction
Returns:
new status (Complete, In Progress, Invalid, Waiting ..)

voidIt

public boolean voidIt()
Void Document.

Specified by:
voidIt in interface DocAction
Returns:
true if success

closeIt

public boolean closeIt()
Close Document.

Specified by:
closeIt in interface DocAction
Returns:
true if success

reverseCorrectIt

public boolean reverseCorrectIt()
Reverse Correction - same date

Specified by:
reverseCorrectIt in interface DocAction
Returns:
true if success

reverseAccrualIt

public boolean reverseAccrualIt()
Reverse Accrual - none

Specified by:
reverseAccrualIt in interface DocAction
Returns:
false

reActivateIt

public boolean reActivateIt()
Re-activate

Specified by:
reActivateIt in interface DocAction
Returns:
false

getSummary

public String getSummary()
Get Summary

Specified by:
getSummary in interface DocAction
Returns:
Summary of Document

getProcessMsg

public String getProcessMsg()
Get Process Message

Specified by:
getProcessMsg in interface DocAction
Returns:
clear text error message

getDoc_User_ID

public int getDoc_User_ID()
Get Document Owner (Responsible)

Specified by:
getDoc_User_ID in interface DocAction
Returns:
AD_User_ID

getApprovalAmt

public BigDecimal getApprovalAmt()
Get Document Approval Amount

Specified by:
getApprovalAmt in interface DocAction
Returns:
amount

setM_PriceList_ID

@UICallout
public void setM_PriceList_ID(String oldM_PriceList_ID,
                                        String newM_PriceList_ID,
                                        int windowNo)
                       throws Exception
Set Price List - Callout

Parameters:
oldM_PriceList_ID - old value
newM_PriceList_ID - new value
windowNo - window
Throws:
Exception

setC_PaymentTerm_ID

@UICallout
public void setC_PaymentTerm_ID(String oldC_PaymentTerm_ID,
                                          String newC_PaymentTerm_ID,
                                          int windowNo)
                         throws Exception
Parameters:
oldC_PaymentTerm_ID -
newC_PaymentTerm_ID -
windowNo -
Throws:
Exception

setC_DocTypeTarget_ID

@UICallout
public void setC_DocTypeTarget_ID(String oldC_DocTypeTarget_ID,
                                            String newC_DocTypeTarget_ID,
                                            int WindowNo)
                           throws Exception
Invoice Header - DocType. - PaymentRule - temporary Document Context: - DocSubTypeSO - HasCharges - (re-sets Business Partner info of required)

Parameters:
ctx - context
WindowNo - window no
mTab - tab
mField - field
value - value
Throws:
Exception

setC_BPartner_ID

@UICallout
public void setC_BPartner_ID(String oldC_BPartner_ID,
                                       String newC_BPartner_ID,
                                       int WindowNo)
                      throws Exception
Invoice Header- BPartner. - M_PriceList_ID (+ Context) - C_BPartner_Location_ID - AD_User_ID - POReference - SO_Description - IsDiscountPrinted - PaymentRule - C_PaymentTerm_ID

Parameters:
ctx - context
WindowNo - window no
mTab - tab
mField - field
value - value
Throws:
Exception

setDateInvoiced

@UICallout
public void setDateInvoiced(String oldDateInvoiced,
                                      String newDateInvoiced,
                                      int windowNo)
                     throws Exception
Set DateInvoiced - Callout

Parameters:
oldDateInvoiced - old
newDateInvoiced - new
windowNo - window no
Throws:
Exception

setPriceListVersion

public void setPriceListVersion(int windowNo)

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.