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
31fcf9af
Commit
31fcf9af
authored
Dec 10, 2016
by
aspangaro
Browse files
Options
Downloads
Patches
Plain Diff
Fix warehouse presentation
parent
2dda1d7c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/core/lib/stock.lib.php
+1
-1
1 addition, 1 deletion
htdocs/core/lib/stock.lib.php
htdocs/product/stock/card.php
+29
-29
29 additions, 29 deletions
htdocs/product/stock/card.php
with
30 additions
and
30 deletions
htdocs/core/lib/stock.lib.php
+
1
−
1
View file @
31fcf9af
...
@@ -35,7 +35,7 @@ function stock_prepare_head($object)
...
@@ -35,7 +35,7 @@ function stock_prepare_head($object)
$head
=
array
();
$head
=
array
();
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
'/product/stock/card.php?id='
.
$object
->
id
;
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
'/product/stock/card.php?id='
.
$object
->
id
;
$head
[
$h
][
1
]
=
$langs
->
trans
(
"
Warehouse
Card"
);
$head
[
$h
][
1
]
=
$langs
->
trans
(
"Card"
);
$head
[
$h
][
2
]
=
'card'
;
$head
[
$h
][
2
]
=
'card'
;
$h
++
;
$h
++
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/product/stock/card.php
+
29
−
29
View file @
31fcf9af
...
@@ -193,7 +193,7 @@ if ($action == 'create')
...
@@ -193,7 +193,7 @@ if ($action == 'create')
// Ref
// Ref
print
'<tr><td class="titlefieldcreate fieldrequired">'
.
$langs
->
trans
(
"Ref"
)
.
'</td><td><input name="libelle" size="20" value=""></td></tr>'
;
print
'<tr><td class="titlefieldcreate fieldrequired">'
.
$langs
->
trans
(
"Ref"
)
.
'</td><td><input name="libelle" size="20" value=""></td></tr>'
;
print
'<tr><td
>'
.
$langs
->
trans
(
"LocationSummary"
)
.
'</td><td
colspan="3"
><input name="lieu" size="40" value="'
.
(
!
empty
(
$object
->
lieu
)
?
$object
->
lieu
:
''
)
.
'"></td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"LocationSummary"
)
.
'</td><td><input name="lieu" size="40" value="'
.
(
!
empty
(
$object
->
lieu
)
?
$object
->
lieu
:
''
)
.
'"></td></tr>'
;
// Parent entrepot
// Parent entrepot
print
'<tr><td>'
.
$langs
->
trans
(
"AddIn"
)
.
'</td><td>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"AddIn"
)
.
'</td><td>'
;
...
@@ -302,7 +302,6 @@ else
...
@@ -302,7 +302,6 @@ else
dol_banner_tab
(
$object
,
'id'
,
$linkback
,
1
,
'rowid'
,
'libelle'
,
$morehtmlref
);
dol_banner_tab
(
$object
,
'id'
,
$linkback
,
1
,
'rowid'
,
'libelle'
,
$morehtmlref
);
print
'<div class="fichecenter">'
;
print
'<div class="fichecenter">'
;
print
'<div class="fichehalfleft">'
;
print
'<div class="fichehalfleft">'
;
print
'<div class="underbanner clearboth"></div>'
;
print
'<div class="underbanner clearboth"></div>'
;
...
@@ -580,9 +579,9 @@ else
...
@@ -580,9 +579,9 @@ else
print
'<table class="border" width="100%">'
;
print
'<table class="border" width="100%">'
;
// Ref
// Ref
print
'<tr><td
width="20%" class="
fieldrequired">'
.
$langs
->
trans
(
"Ref"
)
.
'</td><td
colspan="3"
><input name="libelle" size="20" value="'
.
$object
->
libelle
.
'"></td></tr>'
;
print
'<tr><td
class="titlefieldcreate
fieldrequired">'
.
$langs
->
trans
(
"Ref"
)
.
'</td><td><input name="libelle" size="20" value="'
.
$object
->
libelle
.
'"></td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"LocationSummary"
)
.
'</td><td
colspan="3"
><input name="lieu" size="40" value="'
.
$object
->
lieu
.
'"></td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"LocationSummary"
)
.
'</td><td><input name="lieu" size="40" value="'
.
$object
->
lieu
.
'"></td></tr>'
;
// Parent entrepot
// Parent entrepot
print
'<tr><td>'
.
$langs
->
trans
(
"AddIn"
)
.
'</td><td>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"AddIn"
)
.
'</td><td>'
;
...
@@ -590,31 +589,32 @@ else
...
@@ -590,31 +589,32 @@ else
print
'</td></tr>'
;
print
'</td></tr>'
;
// Description
// Description
print
'<tr><td class="tdtop">'
.
$langs
->
trans
(
"Description"
)
.
'</td><td
colspan="3"
>'
;
print
'<tr><td class="tdtop">'
.
$langs
->
trans
(
"Description"
)
.
'</td><td>'
;
// Editeur wysiwyg
// Editeur wysiwyg
require_once
DOL_DOCUMENT_ROOT
.
'/core/class/doleditor.class.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/core/class/doleditor.class.php'
;
$doleditor
=
new
DolEditor
(
'desc'
,
$object
->
description
,
''
,
180
,
'dolibarr_notes'
,
'In'
,
false
,
true
,
$conf
->
fckeditor
->
enabled
,
ROWS_5
,
'90%'
);
$doleditor
=
new
DolEditor
(
'desc'
,
$object
->
description
,
''
,
180
,
'dolibarr_notes'
,
'In'
,
false
,
true
,
$conf
->
fckeditor
->
enabled
,
ROWS_5
,
'90%'
);
$doleditor
->
Create
();
$doleditor
->
Create
();
print
'</td></tr>'
;
print
'</td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
'Address'
)
.
'</td><td
colspan="3"
><textarea name="address" class="quatrevingtpercent" rows="3" wrap="soft">'
;
print
'<tr><td>'
.
$langs
->
trans
(
'Address'
)
.
'</td><td><textarea name="address" class="quatrevingtpercent" rows="3" wrap="soft">'
;
print
$object
->
address
;
print
$object
->
address
;
print
'</textarea></td></tr>'
;
print
'</textarea></td></tr>'
;
// Zip / Town
// Zip / Town
print
'<tr><td>'
.
$langs
->
trans
(
'Zip'
)
.
'</td><td>'
;
print
'<tr><td>'
.
$langs
->
trans
(
'Zip'
)
.
'</td><td>'
;
print
$formcompany
->
select_ziptown
(
$object
->
zip
,
'zipcode'
,
array
(
'town'
,
'selectcountry_id'
,
'state_id'
),
6
);
print
$formcompany
->
select_ziptown
(
$object
->
zip
,
'zipcode'
,
array
(
'town'
,
'selectcountry_id'
,
'state_id'
),
6
);
print
'</td><td>'
.
$langs
->
trans
(
'Town'
)
.
'</td><td>'
;
print
'</td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
'Town'
)
.
'</td><td>'
;
print
$formcompany
->
select_ziptown
(
$object
->
town
,
'town'
,
array
(
'zipcode'
,
'selectcountry_id'
,
'state_id'
));
print
$formcompany
->
select_ziptown
(
$object
->
town
,
'town'
,
array
(
'zipcode'
,
'selectcountry_id'
,
'state_id'
));
print
'</td></tr>'
;
print
'</td></tr>'
;
// Country
// Country
print
'<tr><td>'
.
$langs
->
trans
(
'Country'
)
.
'</td><td
colspan="3"
>'
;
print
'<tr><td>'
.
$langs
->
trans
(
'Country'
)
.
'</td><td>'
;
print
$form
->
select_country
(
$object
->
country_id
?
$object
->
country_id
:
$mysoc
->
country_code
,
'country_id'
);
print
$form
->
select_country
(
$object
->
country_id
?
$object
->
country_id
:
$mysoc
->
country_code
,
'country_id'
);
if
(
$user
->
admin
)
print
info_admin
(
$langs
->
trans
(
"YouCanChangeValuesForThisListFromDictionarySetup"
),
1
);
if
(
$user
->
admin
)
print
info_admin
(
$langs
->
trans
(
"YouCanChangeValuesForThisListFromDictionarySetup"
),
1
);
print
'</td></tr>'
;
print
'</td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"Status"
)
.
'</td><td
colspan="3"
>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"Status"
)
.
'</td><td>'
;
print
'<select name="statut" class="flat">'
;
print
'<select name="statut" class="flat">'
;
foreach
(
$object
->
statuts
as
$key
=>
$value
)
foreach
(
$object
->
statuts
as
$key
=>
$value
)
{
{
...
...
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