From f8f3a27b6f44b6f8d3a2d9e4abdb1e4de5756c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 8 Feb 2021 19:18:30 +0100 Subject: [PATCH 1/2] remove deprecated --- htdocs/compta/payment_vat/card.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/compta/payment_vat/card.php b/htdocs/compta/payment_vat/card.php index 7dc8378aed3..9b3e0a205f5 100644 --- a/htdocs/compta/payment_vat/card.php +++ b/htdocs/compta/payment_vat/card.php @@ -138,13 +138,12 @@ $h++; */ -dol_fiche_head($head, $hselected, $langs->trans("VATPayment"), -1, 'payment'); +print dol_get_fiche_head($head, $hselected, $langs->trans("VATPayment"), -1, 'payment'); /* * Deletion confirmation of payment */ -if ($action == 'delete') -{ +if ($action == 'delete') { print $form->formconfirm('card.php?id='.$object->id, $langs->trans("DeletePayment"), $langs->trans("ConfirmDeletePayment"), 'confirm_delete', '', 0, 2); } @@ -213,7 +212,7 @@ print ''; print ''; -dol_fiche_end(); +print dol_get_fiche_end(); /* From b602a1b4a79f891763eee79ba32cd5016af00941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 8 Feb 2021 20:29:09 +0100 Subject: [PATCH 2/2] Update paiement_vat.php --- htdocs/compta/paiement_vat.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/htdocs/compta/paiement_vat.php b/htdocs/compta/paiement_vat.php index 2e61898eb87..57ac8256b4f 100644 --- a/htdocs/compta/paiement_vat.php +++ b/htdocs/compta/paiement_vat.php @@ -1,6 +1,6 @@ - * Copyright (C) 2016-2018 Frédéric France + * Copyright (C) 2016-2021 Frédéric France * Copyright (C) 2021 Gauthier VERDOL * * This program is free software; you can redistribute it and/or modify @@ -111,8 +111,8 @@ if ($action == 'add_payment' || ($action == 'confirm_paiement' && $confirm == 'y $paiement->amounts = $amounts; // Tableau de montant $paiement->paiementtype = GETPOST("paiementtype", 'alphanohtml'); $paiement->num_payment = GETPOST("num_payment", 'alphanohtml'); - $paiement->note = GETPOST("note", 'none'); - $paiement->note_private = GETPOST("note", 'none'); + $paiement->note = (string) GETPOST("note", 'none'); + $paiement->note_private = (string) GETPOST("note", 'none'); if (!$error) { @@ -198,7 +198,7 @@ if ($action == 'create') print ''; print ''; - dol_fiche_head('', ''); + print dol_get_fiche_head('', ''); print ''; @@ -213,8 +213,7 @@ if ($action == 'create') $sql .= " FROM ".MAIN_DB_PREFIX."payment_vat as p"; $sql .= " WHERE p.fk_tva = ".$chid; $resql = $db->query($sql); - if ($resql) - { + if ($resql) { $obj = $db->fetch_object($resql); $sumpaid = $obj->total; $db->free(); @@ -253,7 +252,7 @@ if ($action == 'create') print '
'; - dol_fiche_end(); + print dol_get_fiche_end(); /* * Autres charges impayees @@ -317,8 +316,7 @@ if ($action == 'create') $totalrecu += $objp->am; $i++; } - if ($i > 1) - { + if ($i > 1) { // Print total print ''; print ''.$langs->trans("Total").':';