XML 59 R47.htm IDEA: XBRL DOCUMENT v3.22.2
Allowance for Doubtful Accounts (Detail) - Allowance for doubtful accounts - USD ($)
$ in Millions
12 Months Ended
Jun. 30, 2022
Jun. 30, 2021
Jun. 30, 2020
Valuation And Qualifying Accounts Disclosure [Line Items]      
Balance, beginning of period $ 798 $ 816 $ 434
Charged to costs and other 157 234 560
Write-offs (245) (252) (178)
Balance, end of period 710 798 816
Accounts receivable, net of allowance for doubtful accounts      
Valuation And Qualifying Accounts Disclosure [Line Items]      
Balance, beginning of period 751 788  
Balance, end of period 633 751 788
Other Long-term Assets      
Valuation And Qualifying Accounts Disclosure [Line Items]      
Balance, beginning of period 47 28  
Balance, end of period $ 77 $ 47 $ 28