add hooks to product composition card
This commit is contained in:
parent
880fc534b8
commit
2330184232
1 changed files with 14 additions and 0 deletions
|
|
@ -389,6 +389,10 @@ if ($id > 0 || !empty($ref)) {
|
|||
if (isModEnabled('stock')) {
|
||||
print '<td class="right">'.$langs->trans('Stock').'</td>';
|
||||
}
|
||||
// Hook fields
|
||||
$parameters = array();
|
||||
$reshook = $hookmanager->executeHooks('printFieldListTitle', $parameters); // Note that $action and $object may have been modified by hook
|
||||
print $hookmanager->resPrint;
|
||||
// Qty in kit
|
||||
print '<td class="right">'.$langs->trans('Qty').'</td>';
|
||||
// Stoc inc/dev
|
||||
|
|
@ -467,6 +471,11 @@ if ($id > 0 || !empty($ref)) {
|
|||
print '<td class="right">'.$value['stock'].'</td>'; // Real stock
|
||||
}
|
||||
|
||||
// Hook fields
|
||||
$parameters = array();
|
||||
$reshook=$hookmanager->executeHooks('printFieldListValue', $parameters, $productstatic); // Note that $action and $object may have been modified by hook
|
||||
print $hookmanager->resPrint;
|
||||
|
||||
// Qty + IncDec
|
||||
if ($user->hasRight('produit', 'creer') || $user->hasRight('service', 'creer')) {
|
||||
print '<td class="center"><input type="text" value="'.$nb_of_subproduct.'" name="TProduct['.$productstatic->id.'][qty]" class="right width40" /></td>';
|
||||
|
|
@ -517,6 +526,11 @@ if ($id > 0 || !empty($ref)) {
|
|||
print '<td></td>'; // Real stock
|
||||
}
|
||||
|
||||
// Hook fields
|
||||
$parameters = array();
|
||||
$reshook=$hookmanager->executeHooks('printFieldListValue', $parameters, $productstatic); // Note that $action and $object may have been modified by hook
|
||||
print $hookmanager->resPrint;
|
||||
|
||||
// Qty in kit
|
||||
print '<td class="right">'.dol_escape_htmltag($value['nb']).'</td>';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue