OrderEntry shows Charge ID is like MiscChrg.MiscCode. Any chance the code you’re entering isn’t in setup in Misc Charge Maintenance? Also, are you setting the description? I’ve had to do that with BPM’s that set a value from a dropdown (i.e. set the code and the description).
I’m not a proficient coder, so can’t help you there. Good luck!
Yes both code exist, if I enter both misc charges manually, everything fine!!!
The problem seem to come from ChangeMscCode method. I think the method always look for the first rowmod <> “” in the dataset which mean if I have 2 rowmod = “A”, only the first one will be take in consideration.