Class MDunningRun

    • Constructor Detail

      • MDunningRun

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

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

      • getLevels

        public MDunningLevel[] getLevels()
        Get Dunning Levels
        Returns:
        array of level
      • getEntries

        public MDunningRunEntry[] getEntries​(boolean requery)
        Get Entries
        Parameters:
        requery - requery
        Returns:
        entries
      • getEntries

        public MDunningRunEntry[] getEntries​(boolean requery,
                                             boolean onlyInvoices)
        Get Entries
        Parameters:
        requery - requery requery
        onlyInvoices - only invoices
        Returns:
        entries
      • deleteEntries

        public boolean deleteEntries​(boolean force)
        Delete all Entries
        Parameters:
        force - delete also processed records
        Returns:
        true if deleted
      • getEntry

        public MDunningRunEntry getEntry​(int C_BPartner_ID,
                                         int C_Currency_ID,
                                         int SalesRep_ID,
                                         int C_DunningLevel_ID)
        Get/Create Entry for BPartner
        Parameters:
        C_BPartner_ID - business partner
        C_Currency_ID - currency
        SalesRep_ID - sales rep
        C_DunningLevel_ID - dunning level
        Returns:
        entry