I have a client that wants to require his customer records to have a payment terms code defined in the same way that Navision requires a customer record to have posting groups defined before you can fill out an order card.
I have tried using the debugger to follow the code on the order card from the point where it throws errors for missing posting groups, but when the error is thrown it pretty well makes hash of the debugger as well.
I'm assuming all I really need is to find the right spot to insert a TESTFIELD call- can anyone give me a gentle application of ye olde clewbat?
Thanks
0
Comments
Bill-to Customer No. - OnValidate()
AND
Sell-to Customer No. - OnValidate()
and add
Cust.TESTFIELD("Payment Terms Code");
On trigger "Bill-to Customer No."-OnValidate :
GetCust("Bill-to Customer No.");
Cust.TESTFIELD(Blocked,FALSE);
Cust.TESTFIELD("Customer Posting Group");
Cust.TESTFIELD("Gen. Bus. Posting Group");
Here is the place where you can add your test :
Cust.TESTFIELD("Payment Terms Code");
Hope can help ...
You put answers quicker than me !