I am trying to implement some piece rate functionality and I am having an issue with a BPM.
First off two custom fields were added - Piece Rate (decimal) and Piece Rate Y/N (checkbox).
If the checkbox is checked for yes but the Piece Rate box has the default value of 0.0000 it will pop up with an error message saying it is required.
The issue I am having is that my agency would also like to use the Analysis Code in conjunction with the piece rate to basically add a job code. I have tried everything I can think of to create a BPM that says if the box if checked the Analysis Code cannot be blank, or even if the Piece Rate is not equal to 0.0000 then it cannot be blank. Nothing works.
Am I missing something with the Analysis Code box?
Sometimes it helps if you write it out a different way; then work with the BPM options to bend it to your will
If (PieceRate Y/N == true)
{
if (PieceRate != 0.0000 && AnalysisCode != “”)
{ //conditions pass }
else
{ //fail }
}
if psuedocode above is correct - the problem just may be as simple as the selections in your Condition 0 which currently says PieceRate != 0.0000 && AnalysisCode == ""
Trinity, I couldn’t get that to work so I kept playing with it and I finally got it to work. Basically there are 2 BPMs, both of which look at PieceRateYN and if its true it triggers PieceRate cannot be equal to 0.0000 and AnalysisCode cannot be null.