Class MDistributionLine

    • Constructor Detail

      • MDistributionLine

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

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

        public MDistributionLine​(MDistributionLine copy)
        Parameters:
        copy -
    • Method Detail

      • getParent

        public MDistribution getParent()
        Get Parent
        Returns:
        Returns the parent.
      • setParent

        public void setParent​(MDistribution parent)
        Set Parent
        Parameters:
        parent - The parent to set.
      • setAccount

        public void setAccount​(MAccount acct)
        Set Account
        Parameters:
        acct - account
      • getAccount

        public MAccount getAccount()
        Get Account Combination based on Account and Overwrite
        Returns:
        account
      • getAmt

        public BigDecimal getAmt()
        Get Distribution Amount
        Returns:
        Returns the amt.
      • setAmt

        public void setAmt​(BigDecimal amt)
        Set Distribution Amount
        Parameters:
        amt - The amt to set.
      • getQty

        public BigDecimal getQty()
        Get Distribution Quantity
        Returns:
        Returns the qty.
      • setQty

        public void setQty​(BigDecimal qty)
        Set Distribution Quantity
        Parameters:
        qty - The qty to set.
      • calculateAmt

        public void calculateAmt​(BigDecimal amt,
                                 int precision)
        Set Distribution Amount
        Parameters:
        amt - The amt to set to be multiplied by percent.
        precision - precision
      • calculateQty

        public void calculateQty​(BigDecimal qty)
        Set Distribution Quantity
        Parameters:
        qty - The qty to set to be multiplied by percent.
      • beforeSave

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

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