My manager just sent me a mail and he wants me to implement something for him right away. But I am sorta lost. I am not sure how to begin.
*****Modify the No. Series table to include a new boolean field called "Used for Fixed Assets". Also, modify the Purchase Header table to include the same boolean field "Used for Fixed Assets". *****When a user selects a No. Series that has "Used for Fixed Assets" checked, then transfer the checkmark to the Purchase Header as well. If a checkmark appears in this field on the purchase header, then the purchase documents (quotes, invoices, orders) that use the No. Series that has the checkmark will be limited to selecting Fixed Asset as the line type in the line section of the document
The part in '*****' was straight forward and I completed it. I am having trouble with the part after this:
Wrote it initally in OnOpenForm(), which I later realized didnt make sense because user has to select the No. series first and once his selection is done, then i have to look if the Used for fixed asset for that no. series is checked or not. So I ended up moving it to: OnAfterGetRecord on the form (no. series), which doesnt seem to do anything (the "Used for fixed assets" does not get checked even if the no. series is checked for that field.
IF "Used for Fixed Assets" = TRUE THEN
PurchaseHeader."Used for Fixed Assets" = TRUE;
I am pretty sure I am missing something very stupid...