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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
67d90d9d
Commit
67d90d9d
authored
Aug 6, 2012
by
Regis Houssin
Browse files
Options
Downloads
Plain Diff
Merge pull request #292 from atm-maxime/mko185
Mko185
parents
58878cdb
c2b38e84
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/langs/fr_FR/stocks.lang
+1
-0
1 addition, 0 deletions
htdocs/langs/fr_FR/stocks.lang
htdocs/product/stock/product.php
+5
-3
5 additions, 3 deletions
htdocs/product/stock/product.php
with
6 additions
and
3 deletions
htdocs/langs/fr_FR/stocks.lang
+
1
−
0
View file @
67d90d9d
...
...
@@ -33,6 +33,7 @@ StockCorrection=Corriger stock
StockMovement=Transférer
StockMovements=Mouvements de stock
NumberOfUnit=Nombre de pièces
UnitPurchaseValue=Prix d'achat unitaire
TotalStock=Total en stock
StockTooLow=Stock insuffisant
EnhancedValue=Valorisation
...
...
This diff is collapsed.
Click to expand it.
htdocs/product/stock/product.php
+
5
−
3
View file @
67d90d9d
...
...
@@ -74,7 +74,8 @@ if ($action == 'setstocklimit')
// Correct stock
if
(
$action
==
"correct_stock"
&&
!
$_POST
[
"cancel"
])
{
if
(
is_numeric
(
$_POST
[
"nbpiece"
])
&&
$id
)
if
(
$_POST
[
"price"
]
==
''
)
$_POST
[
"price"
]
=
0
;
if
(
is_numeric
(
$_POST
[
"nbpiece"
])
&&
$id
&&
is_numeric
(
$_POST
[
"price"
]))
{
$product
=
new
Product
(
$db
);
$result
=
$product
->
fetch
(
$id
);
...
...
@@ -85,7 +86,7 @@ if ($action == "correct_stock" && ! $_POST["cancel"])
$_POST
[
"nbpiece"
],
$_POST
[
"mouvement"
],
$_POST
[
"label"
],
0
$_POST
[
"price"
]
);
// We do not change value of stock for a correction
if
(
$result
>
0
)
...
...
@@ -350,9 +351,10 @@ if ($_GET["id"] || $_GET["ref"])
// Label
print
'<tr>'
;
print
'<td width="20%">'
.
$langs
->
trans
(
"Label"
)
.
'</td>'
;
print
'<td colspan="
4
">'
;
print
'<td colspan="
2
">'
;
print
'<input type="text" name="label" size="40" value="">'
;
print
'</td>'
;
print
'<td width="20%">'
.
$langs
->
trans
(
"UnitPurchaseValue"
)
.
'</td><td width="20%"><input class="flat" name="price" size="10" value=""></td>'
;
print
'</tr>'
;
print
'</table>'
;
...
...
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