Potasium and ammonium salts of fatty acids are used as pesticidal soaps because they are safer for plants than sodium soaps:
"Soap salts include the two pesticide active ingredients potassium salts of fatty acids (including potassium laurate, potassium myristate, potassium
oleate and potassium ricinoleate), and ammonium salts of fatty acids (ammonium oleate).
Potassium salts of fatty acids are used as
insecticides, acaricides,
herbicides and algaecides. They are used to control a variety of insects and
mosses, algae, lichens, liverworts and other weeds, in or on many food and
feed crops, ornamental flower beds, house plants, trees, shrubs, walks and
driveways, and on dogs, puppies and cats.
Ammonium salts of fatty acids are used as a rabbit and deer repellent
on forage and grain crops, on vegetables and field crops, in orchards, and
on nursery stock, ornamentals, flowers, lawns, turf, vines, shrubs and trees."
Thats what i found this topic. And yes amonia pretty nice act on fats to soaps