Class MRfQResponse

    • Constructor Detail

      • MRfQResponse

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

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

        public MRfQResponse​(MRfQ rfq,
                            MRfQTopicSubscriber subscriber)
        Parent Constructor
        Parameters:
        rfq - rfq
        subscriber - subscriber
      • MRfQResponse

        public MRfQResponse​(MRfQ rfq,
                            MBPartner partner)
        Parent Constructor
        Parameters:
        rfq - rfq
        partner - web response
      • MRfQResponse

        public MRfQResponse​(MRfQ rfq,
                            MRfQTopicSubscriber subscriber,
                            int C_BPartner_ID,
                            int C_BPartner_Location_ID,
                            int AD_User_ID)
        Parent Constructor. Automatically saved if lines were created Saved automatically
        Parameters:
        rfq - rfq
        subscriber - optional subscriber
        C_BPartner_ID - bpartner
        C_BPartner_Location_ID - bpartner location
        AD_User_ID - bpartner user
    • Method Detail

      • getLines

        public MRfQResponseLine[] getLines​(boolean requery)
        Get Response Lines
        Parameters:
        requery - requery
        Returns:
        array of Response Lines
      • getLines

        public MRfQResponseLine[] getLines()
        Get Response Lines (no requery)
        Returns:
        array of Response Lines
      • getRfQ

        public MRfQ getRfQ()
        Get RfQ
        Returns:
        rfq
      • sendRfQ

        public boolean sendRfQ()
        Send RfQ
        Returns:
        true if RfQ is sent per email.
      • createPDF

        public File createPDF()
        Create PDF
        Returns:
        File or null
      • createPDF

        public File createPDF​(File file)
        Create PDF file
        Parameters:
        file - output file
        Returns:
        File or null
      • checkComplete

        public String checkComplete()
        Check if Response is Complete
        Returns:
        null if complere - error message otherwise
      • isQuoteTotalAmtOnly

        public boolean isQuoteTotalAmtOnly()
        Is Quote Total Amt Only
        Returns:
        true if only Total
      • beforeSave

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