Fixed dinamic typo to dynamic

This commit is contained in:
Ion Agorria 2014-11-30 15:14:25 +01:00
parent 004d88fe0b
commit c36f94a9a3
3 changed files with 11 additions and 11 deletions

View File

@ -16,19 +16,19 @@
*/ */
/** /**
* \defgroup produit Module dinamic prices * \defgroup produit Module dynamic prices
* \brief Module to manage dinamic prices in products * \brief Module to manage dynamic prices in products
* \file htdocs/core/modules/modDinamicPrices.class.php * \file htdocs/core/modules/modDynamicPrices.class.php
* \ingroup produit * \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'; 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 // Config pages
//------------- //-------------
//$this->config_page_url = array("dinamicprices.php@dinamicprices"); //$this->config_page_url = array("dynamicprices.php@dynamicprices");
// Dependancies // Dependancies
//------------- //-------------
@ -81,7 +81,7 @@ class modDinamicPrices extends DolibarrModules
// Permissions // Permissions
//------------ //------------
$this->rights = array(); $this->rights = array();
$this->rights_class = 'dinamicprices'; $this->rights_class = 'dynamicprices';
$r=0; $r=0;
} }

View File

@ -495,7 +495,7 @@ Module1780Name=Categories
Module1780Desc=Category management (products, suppliers and customers) Module1780Desc=Category management (products, suppliers and customers)
Module2000Name=WYSIWYG editor Module2000Name=WYSIWYG editor
Module2000Desc=Allow to edit some text area using an advanced 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 Module2200Desc=Enable the usage of math expressions for prices
Module2300Name=Cron Module2300Name=Cron
Module2300Desc=Scheduled task management Module2300Desc=Scheduled task management

View File

@ -196,7 +196,7 @@ if ($action == 'updateprice' && GETPOST('cancel') <> $langs->trans("Cancel"))
setEventMessage($priceparser->translated_error(), 'errors'); setEventMessage($priceparser->translated_error(), 'errors');
} }
} }
if (! $error && ! empty($conf->dinamicprices->enabled)) { if (! $error && ! empty($conf->dynamicprices->enabled)) {
$ret=$product->set_price_expression($price_expression); $ret=$product->set_price_expression($price_expression);
if ($ret < 0) 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 '<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>'; 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 // Price mode selector
print '<tr><td class="fieldrequired">'.$langs->trans("PriceMode").'</td><td>'; print '<tr><td class="fieldrequired">'.$langs->trans("PriceMode").'</td><td>';
$price_expression = new PriceExpression($db); $price_expression = new PriceExpression($db);