Class MDepreciationExp

    • Constructor Detail

      • MDepreciationExp

        public MDepreciationExp​(Properties ctx,
                                int A_Depreciation_Exp_ID,
                                String trxName)
        Standard Constructor
    • Method Detail

      • get

        public static MDepreciationExp get​(Properties ctx,
                                           int A_Depreciation_Exp_ID)
        Gets depreciation expense
        Parameters:
        ctx - context
        A_Depreciation_Exp_ID - depreciation expense id
        Returns:
        depreciation expense or null if A_Depreciation_Exp_ID=0 or not found
      • updateFrom

        public void updateFrom​(MDepreciationWorkfile wk)
        Update fields from asset workfile
        Parameters:
        wk - asset workfile
      • process

        public void process()
        Process this entry and save the modified workfile.
      • beforeDelete

        protected boolean beforeDelete()
        Description copied from class: PO
        Executed before Delete operation.
        Overrides:
        beforeDelete in class PO
        Returns:
        true if record can be deleted
      • 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
      • isPosted

        protected boolean isPosted()
      • checkExistsNotProcessedEntries

        public static void checkExistsNotProcessedEntries​(Properties ctx,
                                                          int A_Asset_ID,
                                                          Timestamp dateAcct,
                                                          String postingType,
                                                          String trxName)