Coding of AddPurchase complete.