fix phpstan warnings

This commit is contained in:
Frédéric France 2024-03-16 09:14:58 +01:00
parent 41fccbaac5
commit 5c7db3d4e1
2 changed files with 9 additions and 3 deletions

View file

@ -121,10 +121,15 @@ class PaymentLoan extends CommonObject
* @var string
*/
public $label;
/**
* @var string
* @var int
*/
public $paymenttype;
/**
* @var int
*/
public $bank_account;
public $bank_line;
@ -543,7 +548,7 @@ class PaymentLoan extends CommonObject
// Insert payment into llx_bank
$bank_line_id = $acc->addline(
$this->datep,
$this->paymenttype, // Payment mode ID or code ("CHQ or VIR for example")
$this->paymenttype, // Payment mode ID or code ("CHQ or VIR for example") it's integer in db
$label,
$total,
$this->num_payment,

View file

@ -4,6 +4,7 @@
* Copyright (C) 2009-2012 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2023 anthony Berton <anthony.berton@bb2a.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -253,7 +254,7 @@ if ($action == 'add') {
$actioncomm->fk_bookcal_calendar = $id;
$actioncomm->userownerid = $calendar->visibility;
$actioncomm->contact_id = $contact->id;
$actioncomm->socpeopleassigned = $contact->id;
$actioncomm->socpeopleassigned = [$contact->id];
$result = $actioncomm->create($user);
if ($result < 0) {