I'm trying to close SysPrintForm form during the invoice printing process.
I've been trying this.finalize() in the SysPrintForm methods, but this call
closes the entire client application! this.close() doesn't work for me, as
every time I close the form this way the invoice is printed, which is
something I'd like to disable. Any suggestions on how I can close the form
without triggering the printing process would be greatly appreciated.