Class MDepositBatch

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_C_DepositBatch, I_Persistent, Evaluatee

public class MDepositBatch extends X_C_DepositBatch
Deposit Batch Model
Version:
$Id: MDepositBatch.java,v 1.3 2007/06/28 00:51:03 afalcone Exp $
Author:
Alejandro Falcone
See Also:
  • Constructor Details

    • MDepositBatch

      public MDepositBatch(Properties ctx, String C_DepositBatch_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      C_DepositBatch_UU - UUID key
      trxName - Transaction
    • MDepositBatch

      public MDepositBatch(Properties ctx, int C_DepositBatch_ID, String trxName)
      Create and Load existing Persistent Object
      Parameters:
      ctx - context
      C_DepositBatch_ID - The unique ID of the object
      trxName - transaction name
    • MDepositBatch

      public MDepositBatch(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
      Parameters:
      ctx - context
      rs - result set
      trxName - transaction
    • MDepositBatch

      public MDepositBatch(MDepositBatch original)
      Create new deposit batch from original.
      Copy over ad_client_id, ad_org_id, c_depositbatch_id, description, c_doctype_id, datedoc, datedeposit and depositamt.
      Parameters:
      original - original
  • Method Details

    • 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
    • setDateAcct

      public void setDateAcct(Timestamp DateAcct)
      Set Date Deposit
      Parameters:
      DateAcct - date
    • unlockIt

      @Deprecated public boolean unlockIt()
      Deprecated.
      incomplete/abandon implementation of DocAction interface
      Unlock Document.
      Returns:
      true if success
    • invalidateIt

      @Deprecated public boolean invalidateIt()
      Deprecated.
      incomplete/abandon implementation of DocAction interface
      Invalidate Document
      Returns:
      true if success
    • voidIt

      @Deprecated public boolean voidIt()
      Deprecated.
      incomplete/abandon implementation of DocAction interface
      Void Document.
      Returns:
      false
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_C_DepositBatch
      Returns:
      info
    • getDocumentInfo

      @Deprecated public String getDocumentInfo()
      Deprecated.
      incomplete/abandon implementation of DocAction interface
      Get Document Info
      Returns:
      document info (untranslated)
    • createPDF

      @Deprecated public File createPDF()
      Deprecated.
      incomplete/abandon implementation of DocAction interface
      Create PDF
      Returns:
      File or null
    • createPDF

      @Deprecated public File createPDF(File file)
      Deprecated.
      incomplete/abandon implementation of DocAction interface
      Create PDF file
      Parameters:
      file - output file
      Returns:
      file if success
    • getProcessMsg

      @Deprecated public String getProcessMsg()
      Deprecated.
      incomplete/abandon implementation of DocAction interface
      Get Process Message
      Returns:
      clear text error message
    • getDoc_User_ID

      @Deprecated public int getDoc_User_ID()
      Deprecated.
      incomplete/abandon implementation of DocAction interface
      Get Document Owner (Responsible)
      Returns:
      AD_User_ID (Created By)
    • getApprovalAmt

      @Deprecated public BigDecimal getApprovalAmt()
      Deprecated.
      incomplete/abandon implementation of DocAction interface
      Get Document Approval Amount
      Returns:
      DR amount
    • afterDelete

      protected boolean afterDelete(boolean success)
      Description copied from class: PO
      Execute after Delete operations.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      afterDelete in class PO
      Parameters:
      success - true if record deleted
      Returns:
      true if delete is a success
    • getLines

      public MDepositBatchLine[] getLines()
      Get Deposit Batch Lines
      Returns:
      Array of lines (MDepositBatchLine)
    • isComplete

      @Deprecated public boolean isComplete()
      Deprecated.
      incomplete/abandon implementation of DocAction interface
      Document Status is Complete or Closed
      Returns:
      true if CO, CL or RE