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
4e6ee4d1
Commit
4e6ee4d1
authored
8 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix dol_banner on card for lot
parent
53238c2b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/product/stock/class/productlot.class.php
+29
-0
29 additions, 0 deletions
htdocs/product/stock/class/productlot.class.php
htdocs/product/stock/productlot_card.php
+6
-28
6 additions, 28 deletions
htdocs/product/stock/productlot_card.php
with
35 additions
and
28 deletions
htdocs/product/stock/class/productlot.class.php
+
29
−
0
View file @
4e6ee4d1
...
...
@@ -524,6 +524,35 @@ class Productlot extends CommonObject
}
}
/**
* Return label of status of object
*
* @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
* @return string Label of status
*/
function
getLibStatut
(
$mode
=
0
)
{
return
$this
->
LibStatut
(
0
,
$mode
);
}
/**
* Return label of a given status
*
* @param int $statut Status
* @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
* @return string Label of status
*/
function
LibStatut
(
$statut
,
$mode
=
0
)
{
global
$langs
;
//$langs->load('stocks');
return
''
;
}
/**
* Return a link to the a lot card (with optionaly the picto)
* Use this->id,this->lastname, this->firstname
...
...
This diff is collapsed.
Click to expand it.
htdocs/product/stock/productlot_card.php
+
6
−
28
View file @
4e6ee4d1
...
...
@@ -270,24 +270,6 @@ llxHeader('','ProductLot','');
$form
=
new
Form
(
$db
);
// Put here content of your page
// Example : Adding jquery code
print
'<script type="text/javascript" language="javascript">
jQuery(document).ready(function() {
function init_myfunc()
{
jQuery("#myid").removeAttr(\'disabled\');
jQuery("#myid").attr(\'disabled\',\'disabled\');
}
init_myfunc();
jQuery("#mybutton").click(function() {
init_myfunc();
});
});
</script>'
;
// Part to create
if
(
$action
==
'create'
)
{
...
...
@@ -335,19 +317,15 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print
$formconfirm
;
}
print
'<table class="border centpercent">'
.
"
\n
"
;
$linkback
=
'<a href="'
.
DOL_URL_ROOT
.
'/product/stock/productlot_list.php'
.
'">'
.
$langs
->
trans
(
"BackToList"
)
.
'</a>'
;
// Ref
print
'<tr><td class="titlefield">'
.
$langs
->
trans
(
'Batch'
)
.
'</td>'
;
print
'<td colspan="3">'
;
print
$form
->
showrefnav
(
$object
,
'id'
,
$linkback
,
1
,
'rowid'
,
'batch'
);
print
'</td>'
;
print
'</tr>'
;
dol_banner_tab
(
$object
,
'id'
,
$linkback
,
1
,
'rowid'
,
'batch'
);
print
'<table class="border centpercent">'
.
"
\n
"
;
// Product
print
'<tr><td>'
.
$langs
->
trans
(
"Product"
)
.
'</td><td>'
;
print
'<tr><td
class="titlefield"
>'
.
$langs
->
trans
(
"Product"
)
.
'</td><td>'
;
$producttmp
=
new
Product
(
$db
);
$producttmp
->
fetch
(
$object
->
fk_product
);
print
$producttmp
->
getNomUrl
(
1
,
'stock'
);
...
...
@@ -356,7 +334,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
// Eat by
print
'<tr><td>'
;
print
$form
->
editfieldkey
(
$langs
->
trans
(
'Eatby'
),
'eatby'
,
$object
->
eatby
,
$object
,
$user
->
rights
->
stock
->
creer
,
'datepicker'
);
print
'</td><td
colspan="5"
>'
;
print
'</td><td>'
;
print
$form
->
editfieldval
(
$langs
->
trans
(
'Eatby'
),
'eatby'
,
$object
->
eatby
,
$object
,
$user
->
rights
->
stock
->
creer
,
'datepicker'
);
print
'</td>'
;
print
'</tr>'
;
...
...
@@ -364,7 +342,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
// Sell by
print
'<tr><td>'
;
print
$form
->
editfieldkey
(
$langs
->
trans
(
'Sellby'
),
'sellby'
,
$object
->
sellby
,
$object
,
$user
->
rights
->
stock
->
creer
,
'datepicker'
);
print
'</td><td
colspan="5"
>'
;
print
'</td><td>'
;
print
$form
->
editfieldval
(
$langs
->
trans
(
'Sellby'
),
'sellby'
,
$object
->
sellby
,
$object
,
$user
->
rights
->
stock
->
creer
,
'datepicker'
);
print
'</td>'
;
print
'</tr>'
;
...
...
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