Hey,
I would like to build a custombutton that shows a dialog in which you can choose between functions like x- or z-report. If the user chooses one of these, I have to manually generate that report from source.
How can I do this? I can change the transactiontype to 16 (x-report) but nothing happens at the pos. Only in the left top corner I can see that the transactiontype has changed correctly but how can I post my action?
Please don't ask me why I m not using the F5 at the pos, I have to avoid this by security. I m searching for the possibility to call z- or x- report via a com-component on a custombutton.
thx
*This post is locked for comments
I have the same question (0)x-report should be too hard. You will have to generate the report and then hook the printer and output the report.
Z-report is much harder because it closes the batch, resets the current totals, updates the daily tables for the daily sales reports, and prints the report.
Why not just put security on the F5 button. By not allowing the other options does this meet your goals? Because you can block the other options.
You can try the FireEvent PrintZReport and PrintXReport as a function of a custom button.
put that in the command field. Then you can set security on the buttons individually.
Thanks
Ed Boyer