Merge pull request #27792 from thibdrev/patch-10

qual: phpstan for htdocs/compta/tva/card.php
This commit is contained in:
Laurent Destailleur 2024-01-26 02:17:51 +01:00 committed by GitHub
commit 4fd53660d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -172,7 +172,7 @@ if (empty($reshook)) {
if ($action == 'add' && !$cancel) {
$error = 0;
$object->fk_account = GETPOST("accountid", 'int');
$object->fk_account = GETPOSTINT("accountid");
$object->type_payment = GETPOST("type_payment", 'alphanohtml');
$object->num_payment = GETPOST("num_payment", 'alphanohtml');
@ -329,7 +329,8 @@ if (empty($reshook)) {
$object->fetch($id);
if ($object->id > 0) {
$object->id = $object->ref = null;
$object->id = 0;
$object->ref = null;
$object->paye = 0;
if (GETPOST('amount', 'alphanohtml')) {