XML 55 R45.htm IDEA: XBRL DOCUMENT v3.21.2
Accounts Receivable, net - Revenue reserve (Details) - USD ($)
$ in Thousands
3 Months Ended
Sep. 30, 2021
Sep. 30, 2020
Accounts receivable, net    
Balance at the beginning of the period $ 158,761 $ 182,941
Current period provision 184,904 243,884
Credits issued during the period (174,011) (244,534)
Balance at the end of the period 169,654 182,291
Chargebacks    
Accounts receivable, net    
Balance at the beginning of the period 69,564 61,877
Current period provision 131,195 188,297
Credits issued during the period (128,952) (179,737)
Balance at the end of the period 71,807 70,437
Rebates    
Accounts receivable, net    
Balance at the beginning of the period 35,297 62,711
Current period provision 28,760 34,280
Credits issued during the period (21,640) (42,269)
Balance at the end of the period 42,417 54,722
Returns    
Accounts receivable, net    
Balance at the beginning of the period 38,395 40,796
Current period provision 5,939 5,526
Credits issued during the period (7,872) (5,787)
Balance at the end of the period 36,462 40,535
Other    
Accounts receivable, net    
Balance at the beginning of the period 15,505 17,557
Current period provision 19,010 15,781
Credits issued during the period (15,547) (16,741)
Balance at the end of the period $ 18,968 $ 16,597