qual : phsptan

htdocs/expensereport/payment/payment.php	113	Property PaymentExpenseReport::$fk_typepayment (int) does not accept array|string.
htdocs/expensereport/payment/payment.php	116	Property PaymentExpenseReport::$fk_bank (int) does not accept array|string.
This commit is contained in:
thibdrev 2024-01-23 19:31:52 +01:00 committed by GitHub
parent 9927b5a8a8
commit c0f2d57dd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,11 +32,11 @@ require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
// Load translation files required by the page
$langs->loadLangs(array('bills', 'banks', 'trips'));
$id = GETPOST("id", 'int');
$id = GETPOSTINT('id');
$ref = GETPOST('ref', 'alpha');
$action = GETPOST('action', 'aZ09');
$amounts = array();
$accountid = GETPOST('accountid', 'int');
$accountid = GETPOSTINT('accountid');
$cancel = GETPOST('cancel');
// Security check
@ -110,7 +110,7 @@ if ($action == 'add_payment') {
$payment->datep = $datepaid;
$payment->amounts = $amounts; // Tableau de montant
$payment->total = $total;
$payment->fk_typepayment = GETPOST("fk_typepayment", 'int');
$payment->fk_typepayment = GETPOSTINT("fk_typepayment");
$payment->num_payment = GETPOST("num_payment", 'alphanothtml');
$payment->note_public = GETPOST("note_public", 'restricthtml');
$payment->fk_bank = $accountid;