Hi Guys
I have created a custom field on purchase line table - say U_TaxAmout . Now I want to calculate and update this field when Amount field is validated. However if I modify "Amount" field and use OnAfterValidate trigger, my user field does not get populated. But if I trigger on "Direct Unit Cost" or Quantity it works. Trying to understand why certain fields cannot be used to trigger inserting values to other fields. Does this mean Amount or Amount Including VAT fields do not have triggers?
0
Answers
This way you can write code in the OnBeforeValidate or OnAfterValidate field Amount and you will not have this trigger triggered. Bad pratices... ;-)
Much of the core functionality of the product was designed many years ago. Long before Microsoft was involved or transaction automation became a common thing. The product was designed around the basic idea that a user was sitting at their computer and typing information into a screen (form\page). There are product features that function only thru manual data entry because their logic is on the form\page and not the table(s). One example is the "auto-reserve" functionality.
Assignments to certain fields are not validated simply because it was not required to deliver the needed functionality.