Class MPaymentAllocate

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

public class MPaymentAllocate extends X_C_PaymentAllocate
Payment Allocate Model. Process to create allocation records (C_AllocationHdr and C_AllocationLine)
Version:
$Id: MPaymentAllocate.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MPaymentAllocate

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

      public MPaymentAllocate(Properties ctx, int C_PaymentAllocate_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      C_PaymentAllocate_ID - id
      trxName - trx
    • MPaymentAllocate

      public MPaymentAllocate(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
      Parameters:
      ctx - context
      rs - result set
      trxName - trx
  • Method Details

    • get

      public static MPaymentAllocate[] get(MPayment parent)
      Get active Payment Allocation of Payment
      Parameters:
      parent - payment
      Returns:
      array of payment allocations
    • setC_Invoice_ID

      public void setC_Invoice_ID(int C_Invoice_ID)
      Set C_Invoice_ID
      Specified by:
      setC_Invoice_ID in interface I_C_PaymentAllocate
      Overrides:
      setC_Invoice_ID in class X_C_PaymentAllocate
      Parameters:
      C_Invoice_ID - id
    • getInvoice

      public MInvoice getInvoice()
      Get Invoice
      Returns:
      invoice
    • getC_BPartner_ID

      public int getC_BPartner_ID()
      Get BPartner of Invoice
      Returns:
      bp
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Before Save
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - new
      Returns:
      true