* Fix some items detected by phan (see #26262) * Update fournisseur.facture-rec.class.php * Update fournisseur.facture-rec.class.php --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
parent
c0c5eccfb5
commit
e7c49922a6
7 changed files with 11 additions and 10 deletions
|
|
@ -1334,7 +1334,7 @@ class ActionComm extends CommonObject
|
|||
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
||||
if (!is_object($hookmanager)) {
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/class/hookmanager.class.php';
|
||||
$hookmanager = new HookManager($db);
|
||||
$hookmanager = new HookManager($this->db);
|
||||
}
|
||||
$hookmanager->initHooks(array('agendadao'));
|
||||
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ class MenuManager
|
|||
$classname = 'class="tmenu menuhider nohover"';
|
||||
$idsel = 'menu';
|
||||
|
||||
$this->menu->add('#', '', 0, $showmode, $atarget, "xxx", '', 0, $id, $idsel, $classname);
|
||||
$this->menu->add('#', '', 0, $showmode, $this->atarget, "xxx", '', 0, $id, $idsel, $classname);
|
||||
}
|
||||
|
||||
// Home
|
||||
|
|
@ -125,7 +125,7 @@ class MenuManager
|
|||
print_start_menu_entry_empty($menuval['idsel'], $menuval['classname'], $menuval['enabled']);
|
||||
}
|
||||
if (empty($noout)) {
|
||||
print_text_menu_entry_empty($menuval['titre'], $menuval['enabled'], ($menuval['url'] != '#' ?DOL_URL_ROOT:'').$menuval['url'], $menuval['id'], $menuval['idsel'], $menuval['classname'], ($menuval['target'] ? $menuval['target'] : $atarget));
|
||||
print_text_menu_entry_empty($menuval['titre'], $menuval['enabled'], ($menuval['url'] != '#' ?DOL_URL_ROOT:'').$menuval['url'], $menuval['id'], $menuval['idsel'], $menuval['classname'], ($menuval['target'] ? $menuval['target'] : $this->atarget));
|
||||
}
|
||||
if (empty($noout)) {
|
||||
print_end_menu_entry_empty($menuval['enabled']);
|
||||
|
|
|
|||
|
|
@ -1054,10 +1054,10 @@ class FactureFournisseurRec extends CommonInvoice
|
|||
* @param string $ref Ref
|
||||
* @param string $label Label of the line
|
||||
* @param string $desc Description de la ligne
|
||||
* @param double $pu_ht Prix unitaire HT (> 0 even for credit note)
|
||||
* @param double $pu_ht Unit price HT (> 0 even for credit note)
|
||||
* @param double $qty Quantity
|
||||
* @param int $remise_percent Percentage discount of the line
|
||||
* @param double $txtva Taux de tva force, sinon -1
|
||||
* @param double $txtva VAT rate forced with format '5.0 (XXX)', or -1
|
||||
* @param int $txlocaltax1 Local tax 1 rate (deprecated)
|
||||
* @param int $txlocaltax2 Local tax 2 rate (deprecated)
|
||||
* @param string $price_base_type HT or TTC
|
||||
|
|
@ -1068,7 +1068,8 @@ class FactureFournisseurRec extends CommonInvoice
|
|||
* @param int $special_code Special code
|
||||
* @param int $rang Position of line
|
||||
* @param string $fk_unit Unit
|
||||
* @param int $pu_ht_devise Unit price in currency
|
||||
* @param double $pu_ht_devise Unit price in currency
|
||||
* @param double $pu_ttc Unit price TTC (> 0 even for credit note)
|
||||
* @return int <0 if KO, Id of line if OK
|
||||
* @throws Exception
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -780,7 +780,7 @@ if ($job->id > 0 && (empty($action) || ($action != 'edit' && $action != 'create'
|
|||
*/
|
||||
function DisplayPositionList()
|
||||
{
|
||||
global $user, $langs, $db, $conf, $extrafields, $hookmanager, $permissiontoadd, $permissiontodelete;
|
||||
global $user, $langs, $db, $conf, $extrafields, $hookmanager, $permissiontoadd, $permissiontodelete, $permissiontoread;
|
||||
|
||||
$action = GETPOST('action', 'aZ09') ? GETPOST('action', 'aZ09') : 'view'; // The action 'add', 'create', 'edit', 'update', 'view', ...
|
||||
$massaction = GETPOST('massaction', 'alpha'); // The bulk action (combo box choice into lists)
|
||||
|
|
|
|||
|
|
@ -353,7 +353,7 @@ class StockTransfer extends CommonObject
|
|||
* @param Object $b 2nd element to test
|
||||
* @return int
|
||||
*/
|
||||
public function cmp($a, $b)
|
||||
static public function cmp($a, $b)
|
||||
{
|
||||
if ($a->rang == $b->rang) {
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ if ($action == 'confirm_refusepropal' && $confirm == 'yes') {
|
|||
$sql .= " SET fk_statut = ".((int) $object::STATUS_NOTSIGNED).", note_private = '".$db->escape($object->note_private)."', date_signature='".$db->idate(dol_now())."'";
|
||||
$sql .= " WHERE rowid = ".((int) $object->id);
|
||||
|
||||
dol_syslog(__METHOD__, LOG_DEBUG);
|
||||
dol_syslog(__FILE__, LOG_DEBUG);
|
||||
$resql = $db->query($sql);
|
||||
if (!$resql) {
|
||||
$error++;
|
||||
|
|
|
|||
|
|
@ -1339,7 +1339,7 @@ if ($action == 'create') {
|
|||
print '<td colspan="2">';
|
||||
print img_picto('', 'action', 'class="pictofixedwidth"');
|
||||
$datedelivery = dol_mktime(0, 0, 0, GETPOST('liv_month'), GETPOST('liv_day'), GETPOST('liv_year'));
|
||||
if (in_numeric(getDolGlobalString('DATE_LIVRAISON_WEEK_DELAY'))) { // If value set to 0 or a num, not empty
|
||||
if (is_numeric(getDolGlobalString('DATE_LIVRAISON_WEEK_DELAY'))) { // If value set to 0 or a num, not empty
|
||||
$tmpdte = time() + (7 * getDolGlobalInt('DATE_LIVRAISON_WEEK_DELAY') * 24 * 60 * 60);
|
||||
$syear = date("Y", $tmpdte);
|
||||
$smonth = date("m", $tmpdte);
|
||||
|
|
|
|||
Loading…
Reference in a new issue