In order to allow me to focus on Consulting (click here) and Courses (click here), I continue to review all posts here in the Forums, but, in general, I'm only personally responding to posts that I mark as #AcumaticaTnT (click here). For Questions (click here), others may respond, or you can post over at Community.Acumatica.com (click here).
Questions SOLine - Margin i %
I am making a Generic Inquiry were I want to show the Margin i %.
When I try to ad this code and runs the Generic Inquiry I get Divide by zero error encountered error.
Does anyone has any ideas?
You'll need to check for 0s when you do division. Also, you'll probably want to use [SOLine.CuryExtCost] instead of [SOLine.CuryLineCost].