Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
db220d25c2
@ -267,9 +267,9 @@ if ($_REQUEST["account"] || $_REQUEST["ref"])
|
|||||||
$parameters = array('obj' => $obj);
|
$parameters = array('obj' => $obj);
|
||||||
$reshook = $hookmanager->executeHooks('moreFamily', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('moreFamily', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if(empty($reshook)){
|
if(empty($reshook)){
|
||||||
$ref = isset($hookmanager->resArray['ref']) ? $hookmanager->resArray['ref'] : '';
|
$ref = isset($hookmanager->resArray['ref']) ? $hookmanager->resArray['ref'] : $ref;
|
||||||
$refcomp = isset($hookmanager->resArray['refcomp']) ? $hookmanager->resArray['refcomp'] : '';
|
$refcomp = isset($hookmanager->resArray['refcomp']) ? $hookmanager->resArray['refcomp'] : $refcomp;
|
||||||
$paiement = isset($hookmanager->resArray['paiement']) ? $hookmanager->resArray['paiement'] : 0;
|
$paiement = isset($hookmanager->resArray['paiement']) ? $hookmanager->resArray['paiement'] : $paiement;
|
||||||
}
|
}
|
||||||
|
|
||||||
$total_ttc = $obj->total_ttc;
|
$total_ttc = $obj->total_ttc;
|
||||||
|
|||||||
@ -458,6 +458,10 @@ if ($resql)
|
|||||||
if($type == Product::TYPE_SERVICE) $rightskey='service';
|
if($type == Product::TYPE_SERVICE) $rightskey='service';
|
||||||
if($user->rights->{$rightskey}->creer)
|
if($user->rights->{$rightskey}->creer)
|
||||||
{
|
{
|
||||||
|
if ($type === "") {
|
||||||
|
$newcardbutton.= dolGetButtonTitle($langs->trans('NewProduct'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/product/card.php?action=create&type=0');
|
||||||
|
$type = Product::TYPE_SERVICE;
|
||||||
|
}
|
||||||
$label='NewProduct';
|
$label='NewProduct';
|
||||||
if($type == Product::TYPE_SERVICE) $label='NewService';
|
if($type == Product::TYPE_SERVICE) $label='NewService';
|
||||||
$newcardbutton.= dolGetButtonTitle($langs->trans($label), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/product/card.php?action=create&type='.$type);
|
$newcardbutton.= dolGetButtonTitle($langs->trans($label), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/product/card.php?action=create&type='.$type);
|
||||||
|
|||||||
@ -596,6 +596,7 @@ print '<input type="hidden" name="formfilteraction" id="formfilteraction" value=
|
|||||||
print '<input type="hidden" name="sortfield" value="'.$sortfield.'">';
|
print '<input type="hidden" name="sortfield" value="'.$sortfield.'">';
|
||||||
print '<input type="hidden" name="sortorder" value="'.$sortorder.'">';
|
print '<input type="hidden" name="sortorder" value="'.$sortorder.'">';
|
||||||
print '<input type="hidden" name="page" value="'.$page.'">';
|
print '<input type="hidden" name="page" value="'.$page.'">';
|
||||||
|
print '<input type="hidden" name="contextpage" value="'.$contextpage.'">';
|
||||||
|
|
||||||
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'title_companies', 0, $newcardbutton, '', $limit);
|
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'title_companies', 0, $newcardbutton, '', $limit);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user