Skip to content
Snippets Groups Projects
Commit c36f94a9 authored by Ion Agorria's avatar Ion Agorria
Browse files

Fixed dinamic typo to dynamic

parent 004d88fe
No related branches found
No related tags found
No related merge requests found
......@@ -16,19 +16,19 @@
*/
/**
* \defgroup produit Module dinamic prices
* \brief Module to manage dinamic prices in products
* \file htdocs/core/modules/modDinamicPrices.class.php
* \defgroup produit Module dynamic prices
* \brief Module to manage dynamic prices in products
* \file htdocs/core/modules/modDynamicPrices.class.php
* \ingroup produit
* \brief File to describe module to manage dinamic prices in products
* \brief File to describe module to manage dynamic prices in products
*/
include_once DOL_DOCUMENT_ROOT .'/core/modules/DolibarrModules.class.php';
/**
* Class descriptor of DinamicPrices module
* Class descriptor of DynamicPrices module
*/
class modDinamicPrices extends DolibarrModules
class modDynamicPrices extends DolibarrModules
{
/**
......@@ -58,7 +58,7 @@ class modDinamicPrices extends DolibarrModules
// Config pages
//-------------
//$this->config_page_url = array("dinamicprices.php@dinamicprices");
//$this->config_page_url = array("dynamicprices.php@dynamicprices");
// Dependancies
//-------------
......@@ -81,7 +81,7 @@ class modDinamicPrices extends DolibarrModules
// Permissions
//------------
$this->rights = array();
$this->rights_class = 'dinamicprices';
$this->rights_class = 'dynamicprices';
$r=0;
}
......
......@@ -495,7 +495,7 @@ Module1780Name=Categories
Module1780Desc=Category management (products, suppliers and customers)
Module2000Name=WYSIWYG editor
Module2000Desc=Allow to edit some text area using an advanced editor
Module2200Name=Dinamic Prices
Module2200Name=Dynamic Prices
Module2200Desc=Enable the usage of math expressions for prices
Module2300Name=Cron
Module2300Desc=Scheduled task management
......
......@@ -196,7 +196,7 @@ if ($action == 'updateprice' && GETPOST('cancel') <> $langs->trans("Cancel"))
setEventMessage($priceparser->translated_error(), 'errors');
}
}
if (! $error && ! empty($conf->dinamicprices->enabled)) {
if (! $error && ! empty($conf->dynamicprices->enabled)) {
$ret=$product->set_price_expression($price_expression);
if ($ret < 0)
{
......@@ -399,7 +399,7 @@ if ($id || $ref)
print '<input type="text" class="flat" size="5" name="tva_tx" value="'.(GETPOST("tva_tx")?vatrate(GETPOST("tva_tx")):($default_vat!=''?vatrate($default_vat):'')).'">';
print '</td></tr>';
if (! empty($conf->dinamicprices->enabled)) { //Only show price mode and expression selector if module is enabled
if (! empty($conf->dynamicprices->enabled)) { //Only show price mode and expression selector if module is enabled
// Price mode selector
print '<tr><td class="fieldrequired">'.$langs->trans("PriceMode").'</td><td>';
$price_expression = new PriceExpression($db);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment