Fehler in den widgets korrigiert
This commit is contained in:
parent
cb6bb87d60
commit
489dd2e099
5 changed files with 30 additions and 15 deletions
|
|
@ -920,7 +920,7 @@ class ActionsImportZugferd
|
|||
$response->label = $langs->trans("NewProductsToReview");
|
||||
$response->labelShort = $langs->trans("NewProductsToReview");
|
||||
$response->url = dol_buildpath('/importzugferd/new_products.php', 1);
|
||||
$response->img = img_picto('', 'product');
|
||||
$response->img = 'product';
|
||||
$response->nbtodo = $count;
|
||||
$response->nbtodolate = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ class box_new_products extends ModeleBoxes
|
|||
public $boxcode = "newproductsreview";
|
||||
public $boximg = "product";
|
||||
public $boxlabel = "BoxNewProductsToReview";
|
||||
public $depends = array("product");
|
||||
public $depends = array("product", "importzugferd");
|
||||
|
||||
public function __construct($db, $param = '')
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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 = '2.1';
|
||||
$this->version = '2.3';
|
||||
// Url to the file with your last numberversion of this module
|
||||
//$this->url_last_version = 'http://www.example.com/versionmodule.txt';
|
||||
|
||||
|
|
@ -111,7 +111,7 @@ class modImportZugferd extends DolibarrModules
|
|||
'theme' => 0,
|
||||
// Set this to relative path of css file if module has its own css file
|
||||
'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
|
||||
'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'
|
||||
/* BEGIN MODULEBUILDER HOOKSCONTEXTS */
|
||||
'hooks' => array(
|
||||
// 'data' => array(
|
||||
// 'hookcontext1',
|
||||
// 'hookcontext2',
|
||||
// ),
|
||||
// 'entity' => '0',
|
||||
'data' => array(
|
||||
'index',
|
||||
'opensurveypollindex',
|
||||
),
|
||||
'entity' => '0',
|
||||
),
|
||||
/* END MODULEBUILDER HOOKSCONTEXTS */
|
||||
// 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.
|
||||
/* BEGIN MODULEBUILDER WIDGETS */
|
||||
$this->boxes = array(
|
||||
// 0 => array(
|
||||
// 'file' => 'importzugferdwidget1.php@importzugferd',
|
||||
// 'note' => 'Widget provided by ImportZugferd',
|
||||
// 'enabledbydefaulton' => 'Home',
|
||||
// ),
|
||||
// ...
|
||||
0 => array(
|
||||
'file' => 'box_new_products.php@importzugferd',
|
||||
'note' => 'Widget showing new products to review',
|
||||
'enabledbydefaulton' => 'Home',
|
||||
),
|
||||
);
|
||||
/* END MODULEBUILDER WIDGETS */
|
||||
|
||||
|
|
|
|||
|
|
@ -423,3 +423,11 @@ Kupfergehalt = Kupfergehalt (kg/km)
|
|||
KupfergehaltHelp = Kupfergewicht pro Kilometer Kabel (konstant je Kabeltyp)
|
||||
CopperSurchargeFromInvoice = Kupferzuschlag aus Rechnung
|
||||
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
|
||||
|
|
|
|||
|
|
@ -354,3 +354,11 @@ Preiseinheit = Price Unit
|
|||
PreiseinheitHelp = Number of units per price (e.g. 100 = price per 100 pieces)
|
||||
MetalSurchargeDetected = Metal surcharge detected
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue