How Burson EzyParts Ordering Works
Source: burson_ezyparts_controller.rb
- Production mode is only active when the Rails environment is production AND the user is not a superuser AND the company is not a demo account
- Items in the order that lack a bursons_product_sku are flagged with "NBP" (No Bursons Product) failure status and cannot be ordered
- Insufficient quantity is determined by checking if available stock minus requested quantity is less than or equal to zero, resulting in an "IQA" (Insufficient Quantity Available) error
Support scenarios
- "Some items in my EzyParts order failed with 'NBP'" → These items do not have a Bursons product SKU assigned. The product records need to have their bursons_product_sku field populated before they can be ordered through EzyParts.
- "Order shows 'IQA' error on some items" → The requested quantity exceeds available stock at Bursons. The workshop needs to either reduce the quantity or source from a different supplier.
- "EzyParts orders work in staging but not in production" → Production mode applies additional restrictions (non-superuser, non-demo). Verify the account is not flagged as superuser or demo.