Fix warnings
This commit is contained in:
parent
cf712df213
commit
eef19fe761
5 changed files with 7 additions and 6 deletions
|
|
@ -206,7 +206,7 @@ class BlockedLog
|
|||
|
||||
$sep = 0;
|
||||
|
||||
$this->trackedmodules = array('0' => 'None');
|
||||
$this->trackedmodules['0'] = 'None';
|
||||
if (isModEnabled('takepos')) {
|
||||
$this->trackedmodules['takepos'] = 'TakePOS';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -344,7 +344,7 @@ if ($action == "valid" && $permissiontoadd) { // validate = close
|
|||
$sql .= " AND ".$db->sanitize($modulesourcefilter)." = '".$db->escape($posmodule)."'";
|
||||
$sql .= " AND f.pos_source = '".$db->escape($terminalid)."'";
|
||||
$sql .= " AND p.entity = ".((int) $conf->entity); // Never share entities for features related to accountancy
|
||||
$sql .= " AND ".$db->sanitize($datefilter)." <= '".$db->idate($datee)."'";
|
||||
$sql .= " AND ".$db->sanitize($datefilter)." <= '".$db->idate((int) $datee)."'";
|
||||
if ($key == 'cash') {
|
||||
$sql .= " AND cp.code = 'LIQ'";
|
||||
} elseif ($key == 'cheque') {
|
||||
|
|
@ -563,7 +563,7 @@ if ($action == "create" || $action == "start" || $action == 'close') {
|
|||
$sql .= " AND ".$db->sanitize($modulesourcefilter)." = '".$db->escape($posmodule)."'";
|
||||
$sql .= " AND f.pos_source = '".$db->escape($terminalid)."'";
|
||||
$sql .= " AND p.entity = ".((int) $conf->entity); // Never share entities for features related to accountancy
|
||||
$sql .= " AND ".$db->sanitize($datefilter)." BETWEEN '".$db->idate($dates)."' AND '".$db->idate($datee)."'";
|
||||
$sql .= " AND ".$db->sanitize($datefilter)." BETWEEN '".$db->idate((int) $dates)."' AND '".$db->idate((int) $datee)."'";
|
||||
if ($key == 'cash') {
|
||||
$sql .= " AND cp.code = 'LIQ'";
|
||||
} elseif ($key == 'cheque') {
|
||||
|
|
|
|||
|
|
@ -472,7 +472,7 @@ if (($action == 'send' || $action == 'relance') && !GETPOST('addfile') && !GETPO
|
|||
|
||||
$db->query($sql);
|
||||
|
||||
$object->email_sent_counter = $object->email_sent_counter + 1;
|
||||
$object->email_sent_counter += 1;
|
||||
}
|
||||
|
||||
$result = $object->call_trigger($triggersendname, $user); // @phan-suppress-current-line PhanPossiblyUndeclaredGlobalVariable
|
||||
|
|
|
|||
|
|
@ -329,7 +329,7 @@ function getDolEntity()
|
|||
/**
|
||||
* Return the current entity
|
||||
*
|
||||
* @return int Value returned
|
||||
* @return string Value returned
|
||||
*/
|
||||
function getDolDBType()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@
|
|||
* @var int $showImportButton
|
||||
* @var Don[] $linkedObjectBlock
|
||||
*/
|
||||
'@phan-var-force Don[] $linkedObjectBlock';
|
||||
|
||||
print "<!-- BEGIN PHP TEMPLATE don/tpl/linkedobjectblock.tpl.php -->\n";
|
||||
|
||||
|
|
@ -55,7 +56,7 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
|
|||
print '<tr class="'.$trclass.'">';
|
||||
print '<td>'.$langs->trans("Donation").'</td>';
|
||||
print '<td>'.$objectlink->getNomUrl(1).'</td>';
|
||||
print '<td class="center linkedcol-ref tdoverflowmax150"title="'.dolPrintHTMLForAttribute($objectlink->ref_client).'">'.dolPrintHTML($objectlink->ref_client).'</td>';
|
||||
print '<td class="center linkedcol-ref"></td>';
|
||||
print '<td class="center">'.dol_print_date($objectlink->date, 'day').'</td>';
|
||||
print '<td class="right">';
|
||||
$total += $objectlink->total_ht;
|
||||
|
|
|
|||
Loading…
Reference in a new issue