Solubility of calcium oxalate is decreased in the presence of ammonium oxalate because of common ion effect.
CaC2O4→Ca2++C2O2−4
(NH4)2C2O4→2NH+4+C2O2−4
Calcium ion dissociates to a small extent but ammonium oxalate completely dissociates and provides oxalate ions that are common ions. These oxlate ions shift the equilibrium for the dissociation of calcium oxalate towards left. This suppresses the dissociation of calcium oxalate.