Update paiement_vat.php
This commit is contained in:
parent
f8f3a27b6f
commit
b602a1b4a7
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2004-2014 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2004-2014 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2016-2018 Frédéric France <frederic.france@netlogic.fr>
|
* Copyright (C) 2016-2021 Frédéric France <frederic.france@netlogic.fr>
|
||||||
* Copyright (C) 2021 Gauthier VERDOL <gauthier.verdol@atm-consulting.fr>
|
* Copyright (C) 2021 Gauthier VERDOL <gauthier.verdol@atm-consulting.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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->amounts = $amounts; // Tableau de montant
|
||||||
$paiement->paiementtype = GETPOST("paiementtype", 'alphanohtml');
|
$paiement->paiementtype = GETPOST("paiementtype", 'alphanohtml');
|
||||||
$paiement->num_payment = GETPOST("num_payment", 'alphanohtml');
|
$paiement->num_payment = GETPOST("num_payment", 'alphanohtml');
|
||||||
$paiement->note = GETPOST("note", 'none');
|
$paiement->note = (string) GETPOST("note", 'none');
|
||||||
$paiement->note_private = GETPOST("note", 'none');
|
$paiement->note_private = (string) GETPOST("note", 'none');
|
||||||
|
|
||||||
if (!$error)
|
if (!$error)
|
||||||
{
|
{
|
||||||
@ -198,7 +198,7 @@ if ($action == 'create')
|
|||||||
print '<input type="hidden" name="chid" value="'.$chid.'">';
|
print '<input type="hidden" name="chid" value="'.$chid.'">';
|
||||||
print '<input type="hidden" name="action" value="add_payment">';
|
print '<input type="hidden" name="action" value="add_payment">';
|
||||||
|
|
||||||
dol_fiche_head('', '');
|
print dol_get_fiche_head('', '');
|
||||||
|
|
||||||
print '<table class="border centpercent">';
|
print '<table class="border centpercent">';
|
||||||
|
|
||||||
@ -213,8 +213,7 @@ if ($action == 'create')
|
|||||||
$sql .= " FROM ".MAIN_DB_PREFIX."payment_vat as p";
|
$sql .= " FROM ".MAIN_DB_PREFIX."payment_vat as p";
|
||||||
$sql .= " WHERE p.fk_tva = ".$chid;
|
$sql .= " WHERE p.fk_tva = ".$chid;
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
if ($resql)
|
if ($resql) {
|
||||||
{
|
|
||||||
$obj = $db->fetch_object($resql);
|
$obj = $db->fetch_object($resql);
|
||||||
$sumpaid = $obj->total;
|
$sumpaid = $obj->total;
|
||||||
$db->free();
|
$db->free();
|
||||||
@ -253,7 +252,7 @@ if ($action == 'create')
|
|||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
dol_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Autres charges impayees
|
* Autres charges impayees
|
||||||
@ -317,8 +316,7 @@ if ($action == 'create')
|
|||||||
$totalrecu += $objp->am;
|
$totalrecu += $objp->am;
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
if ($i > 1)
|
if ($i > 1) {
|
||||||
{
|
|
||||||
// Print total
|
// Print total
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
print '<td colspan="2" class="left">'.$langs->trans("Total").':</td>';
|
print '<td colspan="2" class="left">'.$langs->trans("Total").':</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user