XML 52 R43.htm IDEA: XBRL DOCUMENT v3.22.2.2
Accounts Receivable, net - Revenue reserve (Details) - USD ($)
$ in Thousands
3 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Accounts receivable, net    
Balance at the beginning of the period $ 163,585 $ 158,761
Current period provision 119,817 184,904
Credits issued during the period (136,918) (174,011)
Balance at the end of the period 146,484 169,654
Chargebacks    
Accounts receivable, net    
Balance at the beginning of the period 54,501 69,564
Current period provision 86,149 131,195
Credits issued during the period (96,591) (128,952)
Balance at the end of the period 44,059 71,807
Rebates    
Accounts receivable, net    
Balance at the beginning of the period 48,489 35,297
Current period provision 21,575 28,760
Credits issued during the period (19,636) (21,640)
Balance at the end of the period 50,428 42,417
Returns    
Accounts receivable, net    
Balance at the beginning of the period 46,478 38,395
Current period provision 5,347 5,939
Credits issued during the period (12,531) (7,872)
Balance at the end of the period 39,294 36,462
Other.    
Accounts receivable, net    
Balance at the beginning of the period 14,117 15,505
Current period provision 6,746 19,010
Credits issued during the period (8,160) (15,547)
Balance at the end of the period $ 12,703 $ 18,968