Purchase Return Order Line Insert Issue: falls into a loop

fazlehasan
fazlehasan Member Posts: 71
edited 2025-10-14 in NAV Three Tier
If “Tax Area Code” is mentioned, even if there is 0 tax, when user tries to insert a purchase return line (strangely the issue only starts at 4th line), the underlying code starts from OnNewRecord Trigger, then after some time control goes to OnAfterGetCurrentRecord, here code attempts to modify existing purchase lines in an attempt to redistribute tax among them; but when Purchase lines are modified, eventually OnAfterGetRecord Trigger gets triggered, so the process falls into a loop, between OnAfterGetRecord and OnNewRecord. When Tax Area Code in Purchase Return Order was made blank, the 4th line could be entered without any issue.
This I saw through debugger. Client is using Nav 2018.
This seems very strange to me. Have anyone came across this kind of issue. It doesn’t look like issue from any customization.

Comments