We use a dataport import object to import Payroll Journal Lines (employee no., hours, tips and other Payroll Journal Line items). The dataport makes the proper entries into the Payroll Journal and everything looks fine. However, the dataport does not properly populate the Payroll Journal header (the "Bank Payment Type" field is missing). This dataport object worked fine in Navision 5.0 and was converted for use with NAV 2009. But it does not work in NAV 2009 because the Payroll Journal Header is not properly populated. The Bank Payment Type is properly populated in the Payroll Journal but no in the Payroll Journal Header. The dataport incldues a VALIDATE statement for the "Employee No." field. How do I get the Payroll Journal Header to populate correctly?
*This post is locked for comments
Rashed, thank you!
The Payroll Journal Header appears to properly populate for each record if I add the follwoing code to the "OnAfterImportRecord" trigger:
"Payroll Journal Line".InsertHeader
There is a function on Payroll journal called insertHeader.
You need to call it after you insert the the journalline.
journalline.insertheader;
André Arnaud de Cal...
292,162
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156