Update purchase_model.php