Annual report pursuant to Section 13 and 15(d)

1. ORGANIZATION AND BASIS OF PRESENTATION (Details-Concentration sales)

v2.4.1.9
1. ORGANIZATION AND BASIS OF PRESENTATION (Details-Concentration sales) (USD $)
In Thousands, unless otherwise specified
12 Months Ended
Dec. 31, 2014
Dec. 31, 2013
Dec. 31, 2012
Sales [Member] | Customer A [Member]      
Concentration risk percentage 20.00%us-gaap_ConcentrationRiskPercentage1
/ us-gaap_ConcentrationRiskByBenchmarkAxis
= us-gaap_SalesMember
/ us-gaap_MajorCustomersAxis
= peix_CustomeraMember
23.00%us-gaap_ConcentrationRiskPercentage1
/ us-gaap_ConcentrationRiskByBenchmarkAxis
= us-gaap_SalesMember
/ us-gaap_MajorCustomersAxis
= peix_CustomeraMember
21.00%us-gaap_ConcentrationRiskPercentage1
/ us-gaap_ConcentrationRiskByBenchmarkAxis
= us-gaap_SalesMember
/ us-gaap_MajorCustomersAxis
= peix_CustomeraMember
Sales [Member] | Customer B [Member]      
Concentration risk percentage 20.00%us-gaap_ConcentrationRiskPercentage1
/ us-gaap_ConcentrationRiskByBenchmarkAxis
= us-gaap_SalesMember
/ us-gaap_MajorCustomersAxis
= peix_CustomerbMember
17.00%us-gaap_ConcentrationRiskPercentage1
/ us-gaap_ConcentrationRiskByBenchmarkAxis
= us-gaap_SalesMember
/ us-gaap_MajorCustomersAxis
= peix_CustomerbMember
16.00%us-gaap_ConcentrationRiskPercentage1
/ us-gaap_ConcentrationRiskByBenchmarkAxis
= us-gaap_SalesMember
/ us-gaap_MajorCustomersAxis
= peix_CustomerbMember
Sales [Member] | Customer C [Member]      
Concentration risk percentage 8.00%us-gaap_ConcentrationRiskPercentage1
/ us-gaap_ConcentrationRiskByBenchmarkAxis
= us-gaap_SalesMember
/ us-gaap_MajorCustomersAxis
= peix_CustomercMember
12.00%us-gaap_ConcentrationRiskPercentage1
/ us-gaap_ConcentrationRiskByBenchmarkAxis
= us-gaap_SalesMember
/ us-gaap_MajorCustomersAxis
= peix_CustomercMember
12.00%us-gaap_ConcentrationRiskPercentage1
/ us-gaap_ConcentrationRiskByBenchmarkAxis
= us-gaap_SalesMember
/ us-gaap_MajorCustomersAxis
= peix_CustomercMember
Sales [Member] | Customer D [Member]      
Concentration risk percentage 11.00%us-gaap_ConcentrationRiskPercentage1
/ us-gaap_ConcentrationRiskByBenchmarkAxis
= us-gaap_SalesMember
/ us-gaap_MajorCustomersAxis
= peix_CustomerDMember
6.00%us-gaap_ConcentrationRiskPercentage1
/ us-gaap_ConcentrationRiskByBenchmarkAxis
= us-gaap_SalesMember
/ us-gaap_MajorCustomersAxis
= peix_CustomerDMember
2.00%us-gaap_ConcentrationRiskPercentage1
/ us-gaap_ConcentrationRiskByBenchmarkAxis
= us-gaap_SalesMember
/ us-gaap_MajorCustomersAxis
= peix_CustomerDMember
Accounts Receivable [Member] | Customers A B C D [Member]      
Concentration risk percentage 59.00%us-gaap_ConcentrationRiskPercentage1
/ us-gaap_ConcentrationRiskByBenchmarkAxis
= us-gaap_AccountsReceivableMember
/ us-gaap_MajorCustomersAxis
= peix_CustomersABCDMember
50.00%us-gaap_ConcentrationRiskPercentage1
/ us-gaap_ConcentrationRiskByBenchmarkAxis
= us-gaap_AccountsReceivableMember
/ us-gaap_MajorCustomersAxis
= peix_CustomersABCDMember
 
Accounts receivable 20,706us-gaap_AccountsReceivableGross
/ us-gaap_ConcentrationRiskByBenchmarkAxis
= us-gaap_AccountsReceivableMember
/ us-gaap_MajorCustomersAxis
= peix_CustomersABCDMember
17,513us-gaap_AccountsReceivableGross
/ us-gaap_ConcentrationRiskByBenchmarkAxis
= us-gaap_AccountsReceivableMember
/ us-gaap_MajorCustomersAxis
= peix_CustomersABCDMember