MT#7867 InvoiceTemplate API draft.
MT#5879 Fix multi-undo functionality.

Call setCurrentLayer => draw.setCurrentLayer only on initialization stages.