Class MCharge

    • Constructor Detail

      • MCharge

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

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

        public MCharge​(MCharge copy)
        Parameters:
        copy -
      • MCharge

        public MCharge​(Properties ctx,
                       MCharge copy)
        Parameters:
        ctx -
        copy -
    • Method Detail

      • getAccount

        public static MAccount getAccount​(int C_Charge_ID,
                                          MAcctSchema as,
                                          BigDecimal amount)
        Deprecated.
        use getAccount(Charge, as) instead
        Get Charge Account
        Parameters:
        C_Charge_ID - charge
        as - account schema
        amount - amount NOT USED
        Returns:
        Charge Account or null
      • getAccount

        public static MAccount getAccount​(int C_Charge_ID,
                                          MAcctSchema as)
        Get Charge Account
        Parameters:
        C_Charge_ID - charge
        as - account schema
        Returns:
        Charge Account or null
      • get

        public static MCharge get​(int C_Charge_ID)
        Get MCharge from Cache (immutable)
        Parameters:
        C_Charge_ID - id
        Returns:
        MCharge
      • get

        public static MCharge get​(Properties ctx,
                                  int C_Charge_ID)
        Get MCharge from Cache (immutable)
        Parameters:
        ctx - context
        C_Charge_ID - id
        Returns:
        MCharge
      • getCopy

        public static MCharge getCopy​(Properties ctx,
                                      int C_Charge_ID,
                                      String trxName)
        Get updateable copy of MCharge from cache
        Parameters:
        ctx -
        C_Charge_ID -
        trxName -
        Returns:
        MCharge
      • afterSave

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