Soak beans overnight. Cook them in water until soft.
Process or mash half of cooked beans.
Sauté, in a large skillet with oil: onion, garlic and aji until cooked.
Brown bacon until crispy. Drain on paper towel. Chop and set aside. Reserve fat.
Add brown sugar to fat, together with ketchup, beans (both whole and mashed) and half of bacon. Combine well and bring to a boil for a few minutes. Season.
Transfer this mixture to a baking dish.
Cover with rest of bacon, croutons and chopped parsley.
Place in oven to broil.
Serve with white rice.