diff --git a/htdocs/loan/class/paymentloan.class.php b/htdocs/loan/class/paymentloan.class.php index 28a1d9f4060..d1e34bbbdf9 100644 --- a/htdocs/loan/class/paymentloan.class.php +++ b/htdocs/loan/class/paymentloan.class.php @@ -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, diff --git a/htdocs/public/bookcal/index.php b/htdocs/public/bookcal/index.php index e6515fa6c7d..ba43b12a5d0 100644 --- a/htdocs/public/bookcal/index.php +++ b/htdocs/public/bookcal/index.php @@ -4,6 +4,7 @@ * Copyright (C) 2009-2012 Regis Houssin * Copyright (C) 2023 anthony Berton * Copyright (C) 2024 MDW + * Copyright (C) 2024 Frédéric France * * 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) {