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