Class MRMALine

    • Field Detail

      • m_ioLine

        protected MInOutLine m_ioLine
        Shipment Line
      • m_product

        protected MProduct m_product
        Product
      • m_charge

        protected MCharge m_charge
        Charge
      • m_tax

        protected MTax m_tax
        Tax
      • m_parent

        protected MRMA m_parent
        Parent
      • precision

        protected int precision
      • taxId

        protected int taxId
    • Constructor Detail

      • MRMALine

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

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

      • init

        protected void init()
        Initialise parameters that are required
      • getParent

        public MRMA getParent()
        Get Parent
        Returns:
        parent
      • getShipLine

        public MInOutLine getShipLine()
        Get Ship Line
        Returns:
        ship line
      • getInvoiceLineId

        protected int getInvoiceLineId()
        Retrieves the invoiceLine Id associated with the Shipment/Receipt Line
        Returns:
        Invoice Line ID
      • getUnitAmt

        public BigDecimal getUnitAmt()
        Calculates the unit amount for the product/charge
        Returns:
        Unit Amount
      • getTotalAmt

        public BigDecimal getTotalAmt()
        Get Total Amt for the line including tax
        Returns:
        amt
      • isShipLineInvoiced

        public boolean isShipLineInvoiced()
        Get whether the Ship line has been invoiced
        Returns:
        true if invoiced
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Description copied from class: PO
        Called before Save for Pre-Save Operation
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new record
        Returns:
        true if record can be saved
      • checkQty

        public boolean checkQty()
      • updateOrderTax

        protected boolean updateOrderTax​(boolean oldTax)
      • afterSave

        protected boolean afterSave​(boolean newRecord,
                                    boolean success)
        Description copied from class: PO
        Called after Save for Post-Save Operation
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new record
        success - true if save operation was success
        Returns:
        if save was a success
      • afterDelete

        protected boolean afterDelete​(boolean success)
        Description copied from class: PO
        Executed after Delete operation.
        Overrides:
        afterDelete in class PO
        Parameters:
        success - true if record deleted
        Returns:
        true if delete is a success
      • updateHeaderAmt

        public boolean updateHeaderAmt()
        Update Amount on Header
        Returns:
        true if header updated
      • addDescription

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

        public int getPrecision()
        Get precision Based on Invoice if the shipment was invoiced, on Order otherwise
      • getC_UOM_ID

        public int getC_UOM_ID()
        Get UOM Based on Shipment line if present Default to Each (100) for charge
        Returns:
        UOM if based on shipment line and 100 for charge based
      • getProduct

        public MProduct getProduct()
        Get Product
        Returns:
        product or null
      • getCharge

        public MCharge getCharge()
        Get Charge
        Returns:
        product or null
      • getTax

        protected MTax getTax()
        Get Tax (immutable)
        Returns:
        tax
      • getC_Project_ID

        public int getC_Project_ID()
        Get Project
        Returns:
        project if based on shipment line and 0 for charge based
      • getC_ProjectPhase_ID

        public int getC_ProjectPhase_ID()
        Get Project Phase
        Returns:
        project phase if based on shipment line and 0 for charge based
      • getC_ProjectTask_ID

        public int getC_ProjectTask_ID()
        Get Project Task
        Returns:
        project task if based on shipment line and 0 for charge based
      • getC_Activity_ID

        public int getC_Activity_ID()
        Get Activity
        Returns:
        project phase if based on shipment line and 0 for charge based
      • getC_Campaign_ID

        public int getC_Campaign_ID()
        Get Campaign
        Returns:
        campaign if based on shipment line and 0 for charge based
      • getAD_OrgTrx_ID

        public int getAD_OrgTrx_ID()
        Get Org Trx
        Returns:
        Org Trx if based on shipment line and 0 for charge based
      • getUser1_ID

        public int getUser1_ID()
        Get User1
        Returns:
        user1 if based on shipment line and 0 for charge based
      • getUser2_ID

        public int getUser2_ID()
        Get User2
        Returns:
        user2 if based on shipment line and 0 for charge based
      • getM_AttributeSetInstance_ID

        public int getM_AttributeSetInstance_ID()
        Get Attribute Set Instance
        Returns:
        ASI if based on shipment line and 0 for charge based
      • getM_Locator_ID

        public int getM_Locator_ID()
        Get Locator
        Returns:
        locator if based on shipment line and 0 for charge based
      • clearParent

        public void clearParent()