dragotin / kraft

Kraft helps to handle your daily quotes and invoices in your small business.
http://volle-kraft-voraus.de
GNU General Public License v2.0
58 stars 18 forks source link

Follow-up document: data in header and footer are not taken over #91

Closed rzlbrmft closed 3 years ago

rzlbrmft commented 3 years ago

While creating a Follow-up document (Nachfolgedokument) with Ctrl+F (Strg+F) the data in header area (Kopfbereich) and footer area (Fußbereich) are not taken over from the predecessor.

dragotin commented 3 years ago

Which version are you using? This was fixed in Version 0.90: https://volle-kraft-voraus.de/Main/Changelog090 first line.

Please reopen if it still does not work for you.

rzlbrmft commented 3 years ago

I use Version 0.95 - but I cannot reopen this issue.

dragotin commented 3 years ago

I will check again.

dragotin commented 3 years ago

I have investigated. The new document gets the standard text for footer and header of the target document type.

For example: You create an invoice as follow up document of an offer. The new document gets the standard texts of the invoice, not just the text that the offer had. That is probably the best approach.

How is the standard text for a document type defined? Text templates for header and footer can be entered in the doc editor, when templates are on display. Just name one of the templates standard and that will be the default text for that doc type.

ksnip_20201213-212438

dragotin commented 3 years ago

Added a patch that if the standard text of the new doc is empty, the text from the source document is used.