Previews or prints from the defined Work order position
Parameters: DocEntry,[LineNumber ,print,printername,setprintFlag]
DocEntry = Work order number
LineNumber = Work order position, if not defined, then all Work order positions
print = emtpy/not defined=view, print=print to printer
printername = name of the printer
setprintFlag = true=set Work order and Work order position as printed
Example: Preview with BeasScript for a Work order with all positions
Note: The system opens a single view for every work order position.
beasFunction=PrintWorkorder=600344
Prints with Boyum Usability Package
beasFunction(PrintWorkorder|600344|10|print);
Prints on Printer HS-30421 with BUP
beasFunction(PrintWorkorder|600344|10|print|HS-30421);
Prints and sets Work order as printed
beasFunction(PrintWorkorder|600344|10|print|HS-30421|true);