it is possible the template is using fields that are added in a beforeLoad user event, which is working normally for the print event, but not the edit event trigered by the map/reduce script
check the template for the part where it displays the shipping item