class report feature modified: if subledger id null fetch all sub ledger of ledger