diff --git a/htdocs/compta/paiement_vat.php b/htdocs/compta/paiement_vat.php
index 2e61898eb87..45317ed64c0 100644
--- a/htdocs/compta/paiement_vat.php
+++ b/htdocs/compta/paiement_vat.php
@@ -300,11 +300,13 @@ if ($action == 'create')
{
$namef = "amount_".$objp->id;
$nameRemain = "remain_".$objp->id;
- if (!empty($conf->use_javascript_ajax))
+ /* Disabled, we autofil the amount with remain to pay by default
+ if (!empty($conf->use_javascript_ajax)) {
print img_picto("Auto fill", 'rightarrow', "class='AutoFillAmount' data-rowid='".$namef."' data-value='".($objp->amount - $sumpaid)."'");
+ } */
$remaintopay = $objp->amount - $sumpaid;
print '';
- print '';
+ print '';
}
else {
print '-';
diff --git a/htdocs/compta/payment_vat/card.php b/htdocs/compta/payment_vat/card.php
index 7dc8378aed3..1b085dfe040 100644
--- a/htdocs/compta/payment_vat/card.php
+++ b/htdocs/compta/payment_vat/card.php
@@ -3,7 +3,7 @@
* Copyright (C) 2004-2014 Laurent Destailleur
* Copyright (C) 2005 Marc Barilley / Ocebo
* Copyright (C) 2005-2009 Regis Houssin
- * Copyright (C) 2021 Gauthier VERDOL
+ * Copyright (C) 2021 Gauthier VERDOL
*
* 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
diff --git a/htdocs/compta/tva/list.php b/htdocs/compta/tva/list.php
index 059469328b3..dd5118bc656 100644
--- a/htdocs/compta/tva/list.php
+++ b/htdocs/compta/tva/list.php
@@ -148,7 +148,7 @@ if (!empty($search_account) && $search_account > 0) $sql .= ' AND b.fk_account='
if (!empty($search_amount)) $sql .= natural_search('t.amount', price2num(trim($search_amount)), 1);
if ($search_status != '' && $search_status >= 0) $sql .= " AND t.paye = ".$db->escape($search_status);
-$sql .= " GROUP BY t.rowid, t.amount, t.datev, t.label, t.paye, pst.code";
+$sql .= " GROUP BY t.rowid, t.amount, t.label, t.datev, t.datep, t.paye, t.fk_typepayment, t.num_payment, pst.code";
$sql .= $db->order($sortfield, $sortorder);
$nbtotalofrecords = '';