Version 3.5: XML-Highlighting und Cron-Fixes
- Einkaufspreise aller Lieferanten bei zugeordneten Produkten - XML Syntax-Highlighting auf Detailseite - Cron: Frequenz-Check entfernt, IMAP nur bei Konfiguration Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
92287dc4d7
commit
1e1d6cab20
3 changed files with 20 additions and 3 deletions
10
ChangeLog.md
10
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
|
||||
|
|
|
|||
11
card.php
11
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<span style="color:#2271b1;font-weight:bold;">$2</span>', $highlightedXml);
|
||||
// Attribut-Namen und -Werte
|
||||
$highlightedXml = preg_replace('/ ([\w:.-]+)(=)(")(.*?)(")/', ' <span style="color:#a83a32;">$1</span>$2<span style="color:#2e7d32;">$3$4$5</span>', $highlightedXml);
|
||||
|
||||
print '<br>';
|
||||
print '<div class="div-table-responsive-no-min">';
|
||||
print '<table class="noborder centpercent">';
|
||||
|
|
@ -254,8 +261,8 @@ if (!empty($object->xml_content)) {
|
|||
print '<td colspan="2">';
|
||||
print '<a href="#" onclick="jQuery(\'#xmlcontent\').toggle(); return false;" class="butAction">'.$langs->trans('ClickToExpand').'</a>';
|
||||
print '<div id="xmlcontent" style="display: none; margin-top: 10px;">';
|
||||
print '<pre style="max-height: 500px; overflow: auto; background: #f5f5f5; padding: 10px; font-size: 11px; white-space: pre-wrap; word-wrap: break-word;">';
|
||||
print dol_escape_htmltag($formattedXml);
|
||||
print '<pre style="max-height: 600px; overflow: auto; background: #f8f9fa; padding: 12px; border: 1px solid #dee2e6; border-radius: 4px; font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word;">';
|
||||
print $highlightedXml;
|
||||
print '</pre>';
|
||||
print '</div>';
|
||||
print '</td>';
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue