diff --git a/ChangeLog.md b/ChangeLog.md index 4e00490..2067905 100755 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,15 @@ # CHANGELOG MODULE IMPORTZUGFERD FOR [DOLIBARR ERP CRM](https://www.dolibarr.org) +## 3.5 + +### Verbesserungen +- Einkaufspreise aller Lieferanten bei zugeordneten Produkten anzeigen (Rechnungslieferant fett hervorgehoben) +- XML Syntax-Highlighting auf Detailseite (Tag-Namen, Attribute, Werte farblich hervorgehoben) + +### Bugfixes +- Cron-Import: Frequenz-Check entfernt, Dolibarr steuert Ausfuehrungszeitpunkt +- Cron-Import: IMAP-Abruf nur wenn IMAP-Host konfiguriert ist + ## 3.4 ### Bugfixes diff --git a/card.php b/card.php index 73e7e95..2279d9c 100755 --- a/card.php +++ b/card.php @@ -244,6 +244,13 @@ if (!empty($object->xml_content)) { // Format XML for better readability using class method $formattedXml = ZugferdImport::formatXmlForDisplay($object->xml_content); + // XML Syntax-Highlighting + $highlightedXml = dol_escape_htmltag($formattedXml); + // Tag-Namen (oeffnend und schliessend) + $highlightedXml = preg_replace('/(<\/?)([\w:.-]+)/', '$1$2', $highlightedXml); + // Attribut-Namen und -Werte + $highlightedXml = preg_replace('/ ([\w:.-]+)(=)(")(.*?)(")/', ' $1$2$3$4$5', $highlightedXml); + print '
'; print '
'; print ''; @@ -254,8 +261,8 @@ if (!empty($object->xml_content)) { print ''; diff --git a/core/modules/modImportZugferd.class.php b/core/modules/modImportZugferd.class.php index f4e8d9a..eb56629 100755 --- a/core/modules/modImportZugferd.class.php +++ b/core/modules/modImportZugferd.class.php @@ -76,7 +76,7 @@ class modImportZugferd extends DolibarrModules $this->editor_squarred_logo = ''; // Must be image filename into the module/img directory followed with @modulename. Example: 'myimage.png@importzugferd' // Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated', 'experimental_deprecated' or a version string like 'x.y.z' - $this->version = '3.4'; + $this->version = '3.5'; // Url to the file with your last numberversion of this module //$this->url_last_version = 'http://www.example.com/versionmodule.txt';
'; print ''.$langs->trans('ClickToExpand').''; print ''; print '