Class MFactAcct

    • Constructor Detail

      • MFactAcct

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

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

      • delete

        public static int delete​(int AD_Table_ID,
                                 int Record_ID,
                                 String trxName)
        Deprecated.
        Since ADempiere 3.5.2a; please use deleteEx(int, int, String) instead.
        Delete Accounting
        Parameters:
        AD_Table_ID - table
        Record_ID - record
        trxName - transaction
        Returns:
        number of rows or -1 for error
      • deleteEx

        public static int deleteEx​(int AD_Table_ID,
                                   int Record_ID,
                                   String trxName)
                            throws DBException
        Delete Accounting
        Parameters:
        AD_Table_ID - table
        Record_ID - record
        trxName - transaction
        Returns:
        number of rows deleted
        Throws:
        DBException - on database exception
      • getMAccount

        public MAccount getMAccount()
        Derive MAccount from record
        Returns:
        Valid Account Combination