Class MReportLine

    • Constructor Detail

      • MReportLine

        public MReportLine​(Properties ctx,
                           int PA_ReportLine_ID,
                           String trxName)
        Constructor
        Parameters:
        ctx - context
        PA_ReportLine_ID - id
        trxName - transaction
      • MReportLine

        public MReportLine​(Properties ctx,
                           ResultSet rs,
                           String trxName)
        Constructor
        Parameters:
        ctx - context
        rs - ResultSet to load from
        trxName - transaction
    • Method Detail

      • getSources

        public MReportSource[] getSources()
        Get Sources
        Returns:
        sources
      • list

        public void list()
        List Info
      • getSourceColumnName

        public String getSourceColumnName()
        Get Source Column Name
        Returns:
        Source ColumnName
      • getSourceValueQuery

        public String getSourceValueQuery()
        Get Value Query for Segment Type
        Returns:
        Query for first source element or null
      • getSelectClause

        public String getSelectClause​(boolean withSum)
        Get SQL Select Clause.
        Parameters:
        withSum - with SUM() function
        Returns:
        select clause - AmtAcctCR+AmtAcctDR/etc or "null" if not defined
      • isPeriod

        public boolean isPeriod()
        Is it Period ?
        Returns:
        true if Period Amount Type
      • isYear

        public boolean isYear()
        Is it Year ?
        Returns:
        true if Year Amount Type
      • isTotal

        public boolean isTotal()
        Is it Total ?
        Returns:
        true if Year Amount Type
      • isNatural

        public boolean isNatural()
        Is it natural balance ? Natural balance means year balance for profit and loss a/c, total balance for balance sheet account
        Returns:
        true if Natural Balance Amount Type
      • getWhereClause

        public String getWhereClause​(int PA_Hierarchy_ID)
        Get SQL where clause (sources, posting type)
        Parameters:
        PA_Hierarchy_ID - hierarchy
        Returns:
        where clause
      • isPostingType

        public boolean isPostingType()
        Has Posting Type
        Returns:
        true if posting
      • isLineTypeCalculation

        public boolean isLineTypeCalculation()
        Line Type Calculation
        Returns:
        true if calculation
      • isLineTypeSegmentValue

        public boolean isLineTypeSegmentValue()
        Line Type Segment Value
        Returns:
        true if segment value
      • isLineTypeBlankLine

        public boolean isLineTypeBlankLine()
        Line Type Blank Line
        Returns:
        true if Blank Line
      • isCalculationTypeRange

        public boolean isCalculationTypeRange()
        Calculation Type Range
        Returns:
        true if range
      • isCalculationTypeAdd

        public boolean isCalculationTypeAdd()
        Calculation Type Add
        Returns:
        true if add
      • isCalculationTypeSubtract

        public boolean isCalculationTypeSubtract()
        Calculation Type Subtract
        Returns:
        true if subtract
      • isCalculationTypePercent

        public boolean isCalculationTypePercent()
        Calculation Type Percent
        Returns:
        true if percent
      • beforeSave

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

        public static MReportLine copy​(Properties ctx,
                                       int AD_Client_ID,
                                       int AD_Org_ID,
                                       int PA_ReportLineSet_ID,
                                       MReportLine source,
                                       String trxName)
        Copy
        Parameters:
        ctx - context
        AD_Client_ID - parent
        AD_Org_ID - parent
        PA_ReportLineSet_ID - parent
        source - copy source
        trxName - transaction
        Returns:
        Report Line
      • getOverline

        public int getOverline()
        Get overline style 0 - none, 1 - single, 2 - double
        Returns:
        int - Style No
      • getOverlineStroke

        public Stroke getOverlineStroke​(BigDecimal stroke)
        Get OverLine Stroke
        Returns:
        line based on line (1/2 of) width and stroke (default dotted 1/2p
      • getUnderline

        public int getUnderline()
        Get underline style 0 - none 1 - single 2 - double
        Returns:
        int - Style No
      • getUnderlineStroke

        public Stroke getUnderlineStroke​(BigDecimal stroke)
        Get UnderLine Stroke
        Returns:
        line based on line (1/2 of) width and stroke (default dotted 1/2p