Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
c36f94a9
Commit
c36f94a9
authored
10 years ago
by
Ion Agorria
Browse files
Options
Downloads
Patches
Plain Diff
Fixed dinamic typo to dynamic
parent
004d88fe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/core/modules/modDinamicPrices.class.php
+8
-8
8 additions, 8 deletions
htdocs/core/modules/modDinamicPrices.class.php
htdocs/langs/en_US/admin.lang
+1
-1
1 addition, 1 deletion
htdocs/langs/en_US/admin.lang
htdocs/product/fournisseurs.php
+2
-2
2 additions, 2 deletions
htdocs/product/fournisseurs.php
with
11 additions
and
11 deletions
htdocs/core/modules/modDinamicPrices.class.php
+
8
−
8
View file @
c36f94a9
...
@@ -16,19 +16,19 @@
...
@@ -16,19 +16,19 @@
*/
*/
/**
/**
* \defgroup produit Module d
i
namic prices
* \defgroup produit Module d
y
namic prices
* \brief Module to manage d
i
namic prices in products
* \brief Module to manage d
y
namic prices in products
* \file htdocs/core/modules/modD
i
namicPrices.class.php
* \file htdocs/core/modules/modD
y
namicPrices.class.php
* \ingroup produit
* \ingroup produit
* \brief File to describe module to manage d
i
namic prices in products
* \brief File to describe module to manage d
y
namic 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 D
i
namicPrices module
* Class descriptor of D
y
namicPrices module
*/
*/
class
modD
i
namicPrices
extends
DolibarrModules
class
modD
y
namicPrices
extends
DolibarrModules
{
{
/**
/**
...
@@ -58,7 +58,7 @@ class modDinamicPrices extends DolibarrModules
...
@@ -58,7 +58,7 @@ class modDinamicPrices extends DolibarrModules
// Config pages
// Config pages
//-------------
//-------------
//$this->config_page_url = array("d
i
namicprices.php@d
i
namicprices");
//$this->config_page_url = array("d
y
namicprices.php@d
y
namicprices");
// Dependancies
// Dependancies
//-------------
//-------------
...
@@ -81,7 +81,7 @@ class modDinamicPrices extends DolibarrModules
...
@@ -81,7 +81,7 @@ class modDinamicPrices extends DolibarrModules
// Permissions
// Permissions
//------------
//------------
$this
->
rights
=
array
();
$this
->
rights
=
array
();
$this
->
rights_class
=
'd
i
namicprices'
;
$this
->
rights_class
=
'd
y
namicprices'
;
$r
=
0
;
$r
=
0
;
}
}
...
...
This diff is collapsed.
Click to expand it.
htdocs/langs/en_US/admin.lang
+
1
−
1
View file @
c36f94a9
...
@@ -495,7 +495,7 @@ Module1780Name=Categories
...
@@ -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=D
i
namic Prices
Module2200Name=D
y
namic 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
...
...
This diff is collapsed.
Click to expand it.
htdocs/product/fournisseurs.php
+
2
−
2
View file @
c36f94a9
...
@@ -196,7 +196,7 @@ if ($action == 'updateprice' && GETPOST('cancel') <> $langs->trans("Cancel"))
...
@@ -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
->
d
i
namicprices
->
enabled
))
{
if
(
!
$error
&&
!
empty
(
$conf
->
d
y
namicprices
->
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)
...
@@ -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
->
d
i
namicprices
->
enabled
))
{
//Only show price mode and expression selector if module is enabled
if
(
!
empty
(
$conf
->
d
y
namicprices
->
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment