Fehler in den widgets korrigiert

This commit is contained in:
Eduard Wisch 2026-02-02 08:53:59 +01:00
parent cb6bb87d60
commit 489dd2e099
5 changed files with 30 additions and 15 deletions

View file

@ -920,7 +920,7 @@ class ActionsImportZugferd
$response->label = $langs->trans("NewProductsToReview"); $response->label = $langs->trans("NewProductsToReview");
$response->labelShort = $langs->trans("NewProductsToReview"); $response->labelShort = $langs->trans("NewProductsToReview");
$response->url = dol_buildpath('/importzugferd/new_products.php', 1); $response->url = dol_buildpath('/importzugferd/new_products.php', 1);
$response->img = img_picto('', 'product'); $response->img = 'product';
$response->nbtodo = $count; $response->nbtodo = $count;
$response->nbtodolate = 0; $response->nbtodolate = 0;

View file

@ -6,7 +6,7 @@ class box_new_products extends ModeleBoxes
public $boxcode = "newproductsreview"; public $boxcode = "newproductsreview";
public $boximg = "product"; public $boximg = "product";
public $boxlabel = "BoxNewProductsToReview"; public $boxlabel = "BoxNewProductsToReview";
public $depends = array("product"); public $depends = array("product", "importzugferd");
public function __construct($db, $param = '') public function __construct($db, $param = '')
{ {

View file

@ -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' $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' // Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated', 'experimental_deprecated' or a version string like 'x.y.z'
$this->version = '2.1'; $this->version = '2.3';
// Url to the file with your last numberversion of this module // Url to the file with your last numberversion of this module
//$this->url_last_version = 'http://www.example.com/versionmodule.txt'; //$this->url_last_version = 'http://www.example.com/versionmodule.txt';
@ -111,7 +111,7 @@ class modImportZugferd extends DolibarrModules
'theme' => 0, 'theme' => 0,
// Set this to relative path of css file if module has its own css file // Set this to relative path of css file if module has its own css file
'css' => array( 'css' => array(
// '/importzugferd/css/importzugferd.css.php', '/importzugferd/css/importzugferd.css.php',
), ),
// Set this to relative path of js file if module must load a js on all pages // Set this to relative path of js file if module must load a js on all pages
'js' => array( 'js' => array(
@ -120,11 +120,11 @@ class modImportZugferd extends DolibarrModules
// Set here all hooks context managed by module. To find available hook context, make a "grep -r '>initHooks(' *" on source code. You can also set hook context to 'all' // Set here all hooks context managed by module. To find available hook context, make a "grep -r '>initHooks(' *" on source code. You can also set hook context to 'all'
/* BEGIN MODULEBUILDER HOOKSCONTEXTS */ /* BEGIN MODULEBUILDER HOOKSCONTEXTS */
'hooks' => array( 'hooks' => array(
// 'data' => array( 'data' => array(
// 'hookcontext1', 'index',
// 'hookcontext2', 'opensurveypollindex',
// ), ),
// 'entity' => '0', 'entity' => '0',
), ),
/* END MODULEBUILDER HOOKSCONTEXTS */ /* END MODULEBUILDER HOOKSCONTEXTS */
// Set this to 1 if features of module are opened to external users // Set this to 1 if features of module are opened to external users
@ -254,12 +254,11 @@ class modImportZugferd extends DolibarrModules
// Add here list of php file(s) stored in importzugferd/core/boxes that contains a class to show a widget. // Add here list of php file(s) stored in importzugferd/core/boxes that contains a class to show a widget.
/* BEGIN MODULEBUILDER WIDGETS */ /* BEGIN MODULEBUILDER WIDGETS */
$this->boxes = array( $this->boxes = array(
// 0 => array( 0 => array(
// 'file' => 'importzugferdwidget1.php@importzugferd', 'file' => 'box_new_products.php@importzugferd',
// 'note' => 'Widget provided by ImportZugferd', 'note' => 'Widget showing new products to review',
// 'enabledbydefaulton' => 'Home', 'enabledbydefaulton' => 'Home',
// ), ),
// ...
); );
/* END MODULEBUILDER WIDGETS */ /* END MODULEBUILDER WIDGETS */

View file

@ -423,3 +423,11 @@ Kupfergehalt = Kupfergehalt (kg/km)
KupfergehaltHelp = Kupfergewicht pro Kilometer Kabel (konstant je Kabeltyp) KupfergehaltHelp = Kupfergewicht pro Kilometer Kabel (konstant je Kabeltyp)
CopperSurchargeFromInvoice = Kupferzuschlag aus Rechnung CopperSurchargeFromInvoice = Kupferzuschlag aus Rechnung
CopperSurchargePerUnit = Kupferzuschlag/Einheit CopperSurchargePerUnit = Kupferzuschlag/Einheit
#
# Widget / Dashboard Box
#
BoxNewProductsToReview = Neue Produkte prüfen
NewProductsToReview = Neue Produkte prüfen
NoNewProductsToReview = Keine neuen Produkte zur Überprüfung
ShowAll = Alle anzeigen

View file

@ -354,3 +354,11 @@ Preiseinheit = Price Unit
PreiseinheitHelp = Number of units per price (e.g. 100 = price per 100 pieces) PreiseinheitHelp = Number of units per price (e.g. 100 = price per 100 pieces)
MetalSurchargeDetected = Metal surcharge detected MetalSurchargeDetected = Metal surcharge detected
MetalSurchargeUpdated = Metal surcharge updated to %s €/unit MetalSurchargeUpdated = Metal surcharge updated to %s €/unit
#
# Widget / Dashboard Box
#
BoxNewProductsToReview = New Products to Review
NewProductsToReview = New Products to Review
NoNewProductsToReview = No new products to review
ShowAll = Show all