fix warnings in propal list
This commit is contained in:
parent
50df842417
commit
677ac4635d
@ -1383,10 +1383,24 @@ if ($resql) {
|
|||||||
if (!empty($arrayfields['sale_representative']['checked'])) {
|
if (!empty($arrayfields['sale_representative']['checked'])) {
|
||||||
print_liste_field_titre($arrayfields['sale_representative']['label'], $_SERVER["PHP_SELF"], "", "", "$param", '', $sortfield, $sortorder);
|
print_liste_field_titre($arrayfields['sale_representative']['label'], $_SERVER["PHP_SELF"], "", "", "$param", '', $sortfield, $sortorder);
|
||||||
}
|
}
|
||||||
|
$totalarray = array(
|
||||||
|
'nbfield' => 0,
|
||||||
|
'val' => array(
|
||||||
|
'p.total_ht' => 0,
|
||||||
|
'p.total_tva' => 0,
|
||||||
|
'p.total_ttc' => 0,
|
||||||
|
),
|
||||||
|
);
|
||||||
// Extra fields
|
// Extra fields
|
||||||
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_title.tpl.php';
|
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_title.tpl.php';
|
||||||
// Hook fields
|
// Hook fields
|
||||||
$parameters = array('arrayfields'=>$arrayfields, 'param'=>$param, 'sortfield'=>$sortfield, 'sortorder'=>$sortorder);
|
$parameters = array(
|
||||||
|
'arrayfields' => $arrayfields,
|
||||||
|
'param' => $param,
|
||||||
|
'sortfield' => $sortfield,
|
||||||
|
'sortorder' => $sortorder,
|
||||||
|
'totalarray' => &$totalarray,
|
||||||
|
);
|
||||||
$reshook = $hookmanager->executeHooks('printFieldListTitle', $parameters); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('printFieldListTitle', $parameters); // Note that $action and $object may have been modified by hook
|
||||||
print $hookmanager->resPrint;
|
print $hookmanager->resPrint;
|
||||||
if (!empty($arrayfields['p.datec']['checked'])) {
|
if (!empty($arrayfields['p.datec']['checked'])) {
|
||||||
@ -1412,12 +1426,6 @@ if ($resql) {
|
|||||||
|
|
||||||
$now = dol_now();
|
$now = dol_now();
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$totalarray = array();
|
|
||||||
$totalarray['nbfield'] = 0;
|
|
||||||
$totalarray['val'] = array();
|
|
||||||
$totalarray['val']['p.total_ht'] = 0;
|
|
||||||
$totalarray['val']['p.total_tva'] = 0;
|
|
||||||
$totalarray['val']['p.total_ttc'] = 0;
|
|
||||||
$typenArray = null;
|
$typenArray = null;
|
||||||
|
|
||||||
while ($i < min($num, $limit)) {
|
while ($i < min($num, $limit)) {
|
||||||
|
|||||||
@ -104,6 +104,7 @@ class FormPropal
|
|||||||
print '<option value="-1"> </option>';
|
print '<option value="-1"> </option>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$i = 0;
|
||||||
foreach ($listofstatus as $key => $obj) {
|
foreach ($listofstatus as $key => $obj) {
|
||||||
if ($excludedraft) {
|
if ($excludedraft) {
|
||||||
if ($obj['code'] == 'Draft' || $obj['code'] == 'PR_DRAFT') {
|
if ($obj['code'] == 'Draft' || $obj['code'] == 'PR_DRAFT') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user