I created a plugin for a child entity, which takes a decimal value from a field and updates a field with the same value in the parent entity. Most of the time I test it, the parent entity field value, I see multiplied by 100 . That is for example, 12,45 changes to 1245. But sometimes it shows correct format as well. I have checked the settings and set decimal points as comma instead of point.
foreach (XmlNode x in xmlFetch) // fetch from child entity
{ decimal.TryParse(x["new_pz"].InnerText,NumberStyles.Any,System.Globalization.CultureInfo.InvariantCulture, out pz);
pzSumme += pz;
}
DynamicEntity result = new DynamicEntity();
result.Name = "new_test"; //ax_bestellung
Key sKey = new Key(guid);
result.Properties["new_pzSumme"] = new CrmDecimal(pzSumme);
I don't understand what I am missing.