v3.26.1
Schedule II - Valuations and Qualifying Accounts (Details) - USD ($)
$ in Millions
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Jun. 30, 2023
SEC Schedule, 12-09, Valuation and Qualifying Accounts Disclosure [Line Items]        
Allowance for doubtful accounts $ 538 $ 662 $ 677 $ 720
SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward]        
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Cost and Expense 1,911 2,246 2,317  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Other Account 1 1 0  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Deduction 2,036 2,262 2,360  
Pricing Disputes [Member]        
SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward]        
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Cost and Expense 40 38    
SEC Schedule, 12-09, Allowance, Credit Loss [Member]        
SEC Schedule, 12-09, Valuation and Qualifying Accounts Disclosure [Line Items]        
Allowance for doubtful accounts 201 213 233 240
SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward]        
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Cost and Expense 101 88 108  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Other Account 1 1 0  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Deduction 114 109 115  
SEC Schedule, 12-09, Allowance, Loss on Finance Receivable [Member]        
SEC Schedule, 12-09, Valuation and Qualifying Accounts Disclosure [Line Items]        
Allowance for doubtful accounts 7 2 3 6
SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward]        
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Cost and Expense 13 3 2  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Other Account 0 0 0  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Deduction 8 4 5  
Sales Returns and Allowances [Member]        
SEC Schedule, 12-09, Valuation and Qualifying Accounts Disclosure [Line Items]        
Allowance for doubtful accounts 330 447 441 $ 474
SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward]        
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Cost and Expense 1,797 2,155 2,207  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Other Account 0 0 0  
SEC Schedule, 12-09, Valuation Allowances and Reserves, Deduction $ 1,914 $ 2,149 2,240  
Disputes        
SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward]        
SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Cost and Expense     $ 74