   - first of all, this program is incomplete, but usable 
   - this programme has almost no error handling 
   - It was made and tested solely for my personal use.
   
[07.11.2026]
using to test new gb.xml2

[01.07.2026]
	- checking Attachments and signal when not found.
	
[23.05.2026]
3 new Parameter but  you can only change in the config-file, here the default Values
		InvoiceFormat="zf"
		ZUGFeRDversion="2"
		ZUGFeRDprofile="E"
		renamed useLib to useLib4PDF

[21.05.2026]
- now multiple Attachments  are possible
- Parameter useLib became useLib4PDF

[19.05.2026]
- use now the DBMessage Class from Bruce Steers for the Dbus-Messages

15.05.2026
 - possibility to create only the factur-x.xml (without including into a PDF)
 
[16.04.2026]
added a Dbus-Message,  is only executed if this is enabled.

[24.02.2026]
 - add a check Button to the dialogue to check the parameters

[19.02.2026] 
 - check if gs and/or java is on the box
  
[15.02.2026]
 - sub initLogging() from DemoStarter is moved to _modSettings, a sub with redirection still exists in DemoStarter
 
[14.02.2026]
 - add a dialogue for settings (just call frmSettings.Run() in you App)
 
[12.02.2026]
 - made R202412-00092_TMMH.pXML now also works with Mustang-CLI-2.16.5.jar Lib.
 - now the example work again
  
[28.07.2025]
 - added TypeCode to createinvoice, default is 380 for invoice
   
[19.06.2025] => (Version 1.5.42)
 - save settings
 - a little more error handling
    
[13.06.2025]
 - using Mustang-CLI-2.x.x Lib to embed invoice.xml in a *.PDF
 - with Mustang-CLI-2.x.x Lib you can also embed other files in that *.PDF now.   
 - _modSettings for all settings
 - Mustang-CLI-2.16.5 Lib is packed with

[04.05.2025]
 - Modifications in DemoStarter and modPDFmaker
 - addtradepaymentterms.class finished dueDate works now
 - a little more error handling
   
[02.05.2025]
 - Mustang-CLI-2.16.4 Lib replaces Mustang-CLI-2.16.3 Lib to validat XML

[15.04.2025]
 - gb.logging can now be fully used again. Requirement that the gambas3 version is newer than 15.04.2025
   
[08.04.2025]
 - started to use gb.logging (stopped due to an error in gb.logging)
 
 - this is the current log output of a run

[04/08/2025 15:37:16.716] [DEBUG] create the (test)R202412-00092_TMMH.pXML
[04/08/2025 15:37:16.717] [DEBUG] check if file (test)R202412-00092_TMMH.pXML exists
[04/08/2025 15:37:16.717] [DEBUG] create a (test)R202412-00092_TMMH.XML
[04/08/2025 15:37:16.737] [DEBUG] check if folder /zugferd-util exists
[04/08/2025 15:37:16.737] [DEBUG] check if the XML (test)R202412-00092_TMMH.XML is well formed
[04/08/2025 15:37:16.749] [DEBUG] check if the XML (test)R202412-00092_TMMH.XML is  a valid E-Invoice XML
[04/08/2025 15:37:20.837] [DEBUG] check if (test)R202412-00092_TMMH.XML and (test)R202412-00092_TMMH.pdf exists
[04/08/2025 15:37:20.837] [DEBUG] create (test)R202412-00092_TMMH.pdf with embedded factur-x.xml
[04/08/2025 15:38:07.730] [DEBUG] '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

[31.03.2025]
  - checking XML if wellformed with xmllint
  - If xmllint is not found, the xml file signed as Ok.
  
[30.03.2025]
  - a simple check against the Mustang-CLI-2.16.3 Lib to validat XML
  - so you need java on your box
    
[22.03.2025]
 The embedding of the XML in the PDF invoice is now realised with the help of ghostscript.
  - the graphical user interface has been removed.
  - it is a component now.
  - it has been extended and can now also embed the XML in a PDF.
  - to use the embedding, there must be a *.pdf of the same name next to the *.XML.
  - you need Ghostscript > 9.54.0
  - the directory /zugferd-util contains the files required for integration with ghostscript
   
[20.01.2025] 
   - it uses a *.pXML file to create an *.XML file that corresponds to ZUGFeRD version 2.3, in ZUGFeRD format CII. 
   - the output *.XML has the same name as the input *.pXML 

  A short explanations: 
   - all parameters are in single quotes, separated by commas 
   - the first parameter is the KEYWORD (keywords are NOT case sensitive)  
   - Keywords beginning with “add” are lists of this type of entry, so they can occur more than once. 
   - read the comments in the 'modpXMLreader/switch2XML' function and/or littleHelper.pdf 
 
  for testing the output use 'Quba' or 'OpenXRechnungToolbox'
  'Quba' shows better the field names
  with 'OpenXRechnungToolbox' you can test whether your *.XML is valid 

   - I found everything about in the C# library “ZUGFeRD-csharp” by Stephan stephanstapel on github.com. 
   - https://github.com/stephanstapel/ZUGFeRD-csharp 
   - you can look up all the enums and  lists there 

  this is an example of a *.pXML The example shown is included (a short explanation below) 
 
  'CreateInvoice','2024-0042','31.12.2024','EUR','2024/12-28/00092' 
  'Name','2024-12#28/00092' 
  'ReferenceOrderNo','Auftrag/Bericht/Akti Nr: 2024-12#28/00092' 
  'AddNote','Herzlichen Dank für Ihren Auftrag. Für meine Lieferung/Leistungen,erlauben ich mir wie folgt zu berechnen.' 
  'AddNote','Wir wünschen ein gutes, gesundes und erfolgreiches Jahr 2025' 
  'SetSeller','Computer, Software & Service','98989','MeineStadt','Apfelstraße 69','DE','4711-0815' 
  'AddSellerTaxRegistration','DE 421218209','VA' 
  'AddSellerTaxRegistration','260/123-456-52','FC' 
  'SetSellerContact','Herr B.W Stronz','','info@CSandS.de','+49 691 53 545 323','' 
  'AddCreditorFinancialAccount','DE05 3901 0105 0101 6359 53','xxGxKDEXY','','','BigMonky-Bank','Computer, Software & Service' 
  'SetPaymentMeans','42' 
  'SetBuyer','Hals-Nasen-Ohrenheilkunde','98998','MeineStadt','Birnenweg 43','DE','0088' 
  'AddBuyerTaxRegistration','','' 
  'SetBuyerContact','Frau T.Maiermüllerhuber','','info@HNO-Maiermüllerhuber.de','066115 016 059','' 
  'AddTradeLineItem','HNO-Praxissoftware-Update','- neues HNO-Praxissoftware-Update (02.12.2024) herunter geladen und installiert. - das TerminBuch + OTM  danach wieder gestartet.','HUR','1','113.05','95','0.42','39.9','VAT','S','19' 
  'AddTradeLineItem','HNO-Praxissoftware-Update','- neues HNO-Praxissoftware-Update  (07.12.2024) herunter geladen und installiert. - das TerminBuch + OTM  danach wieder gestartet.','HUR','1','113.05','95','0.42','39.9','VAT','S','19' 
  'AddTradeLineItem','Windows Updates','- Windows Updates mit Serverneustart- überprüfen ob der Terminalserver erreichbar ist- das TerminBuch + OTM  danach wieder gestartet.','HUR','1','113.05','95','1','95','VAT','S','19' 
  'AddTradeLineItem','HNO-Praxissoftware-Update','- neues HNO-Praxissoftware-Update (20.12.2024) herunter geladen und installiert. - das TerminBuch + OTM  danach wieder gestartet.','HUR','1','113.05','95','0.42','39.9','VAT','S','19' 
  'AddTradeLineItem','Jahres-Gesamtsicherung','- vorbereiten der Server Jahres-Gesamtsicherung- starten der Server Sicherung als Image','HUR','1','113.05','95','1','95','VAT','S','19' 
  'SetTotals','309.7','0','0','309.7','58.843','368.543','0','368.543' 
  'ActualDeliveryDate','01.01.2025' 
  'AddApplicableTradeTax','309.7','19','58.843','VAT','S' 
  'AddTradePaymentTerms','Der Gesamtbetrag ist ohne Abzug sofort fällig.','02.01.2025' 
 
 The integration into the PDF invoice must be done with ghostscript (I haven't tried it yet)
 see here : https://www.ghostscript.com/blog/zugferd.html
