Class MBankStatementLine

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

    public class MBankStatementLine
    extends X_C_BankStatementLine
    Bank Statement Line Model
    Version:
    $Id: MBankStatementLine.java,v 1.3 2006/07/30 00:51:02 jjanke Exp $ Carlos Ruiz - globalqss - integrate bug fixing from Teo Sarca [ 1619076 ] Bank statement's StatementDifference becames NULL
    Author:
    Eldir Tomassen/Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
  • BF [ 1896880 ] Unlink Payment if TrxAmt is zero
  • BF [ 1896885 ] BS Line: don't update header if after save/delete fails
  • See Also:
    Serialized Form
    • Constructor Detail

      • MBankStatementLine

        public MBankStatementLine​(Properties ctx,
                                  int C_BankStatementLine_ID,
                                  String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        C_BankStatementLine_ID - id
        trxName - transaction
      • MBankStatementLine

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

        public MBankStatementLine​(MBankStatement statement)
        Parent Constructor
        Parameters:
        statement - Bank Statement that the line is part of
      • MBankStatementLine

        public MBankStatementLine​(MBankStatement statement,
                                  int lineNo)
        Parent Constructor
        Parameters:
        statement - Bank Statement that the line is part of
        lineNo - position of the line within the statement
    • Method Detail

      • setPayment

        public void setPayment​(MPayment payment)
        Set Payment
        Parameters:
        payment - payment
      • addDescription

        public void addDescription​(String description)
        Add to Description
        Parameters:
        description - text
      • beforeSave

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

        public MBankStatement getParent()
        Get Parent
        Returns:
        parent
      • afterSave

        protected boolean afterSave​(boolean newRecord,
                                    boolean success)
        After Save
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new
        success - success
        Returns:
        success
      • afterDelete

        protected boolean afterDelete​(boolean success)
        After Delete
        Overrides:
        afterDelete in class PO
        Parameters:
        success - success
        Returns:
        success
      • updateHeader

        protected boolean updateHeader()
        Update Header