I am trying to create a new BPM that compares the cost variance between rcvdetail and podetail. We want to make sure there is not more than a $500 or 5%.
I am trying to create a dataview so i can pull in the extcost from the PODetail. I am getting this error. I do not see a reference that I am missing. I am wondering if my syntax is wrong.
We do not want users to receive something that is more than 500 or 5% of the original PO. We have had some users not realize something was in inches and then they enter it in feet. resulting in 500 ft instead of 500 in. Throwing everything completely off. It is usually not caught until accounting goes to pay.
@jrhodesMVP I do this pre processing on UpdateMaster because for us since we are lot tracked the overage would be on the last lot and I have to take into account all of the other lots already received.
This is in code, but you could also do in a widget. You also want to check that RowMod is not D so you donât stop deletions.
if(((ttRcvDtlRow.ReceivedQty + ttRcvDtlRow.ThisTranQty) * ttRcvDtlRow.OurUnitCost) - (ttRcvDtlRow.OrderQty * ttRcvDtlRow.OurUnitCost) >= 500)
{
Msg = "Release Quantity is " + ttRcvDtlRow.OrderQty.ToString("#0.##") + "\nRemaining Quantity is " + ttRcvDtlRow.OurRemQty.ToString("#0.##") +
"\nThis Receipt of " + ttRcvDtlRow.InputOurQty.ToString("#0.##") + " is more then $500 over and not allowed. Check Count or have buyer change PO";
CallContext.Current.ExceptionManager.AddBLException(Msg);
}