2005-08-01 14:29:45 +02:00
|
|
|
<?php
|
2005-10-17 19:07:30 +02:00
|
|
|
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
2009-08-05 20:22:40 +02:00
|
|
|
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
2013-12-25 02:40:42 +01:00
|
|
|
* Copyright (C) 2013 Marcos GarcÃa <marcosgdf@gmail.com>
|
2005-08-01 14:29:45 +02:00
|
|
|
*
|
|
|
|
|
* 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
|
2013-01-16 15:36:08 +01:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2005-08-01 14:29:45 +02:00
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2019-09-23 21:55:30 +02:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2005-08-01 14:29:45 +02:00
|
|
|
*/
|
|
|
|
|
|
2005-10-17 19:07:30 +02:00
|
|
|
/**
|
2009-08-05 20:22:40 +02:00
|
|
|
* \file htdocs/fourn/paiement/info.php
|
|
|
|
|
* \ingroup facture
|
|
|
|
|
* \brief Onglet info d'un paiement fournisseur
|
|
|
|
|
*/
|
2005-08-01 14:29:45 +02:00
|
|
|
|
2012-08-22 23:24:21 +02:00
|
|
|
require '../../main.inc.php';
|
2012-08-22 23:11:24 +02:00
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
|
|
|
require_once DOL_DOCUMENT_ROOT.'/fourn/class/paiementfourn.class.php';
|
2016-11-24 17:03:18 +01:00
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php';
|
2005-08-01 14:29:45 +02:00
|
|
|
|
2018-10-01 08:22:23 +02:00
|
|
|
$langs->loadLangs(array("bills", "suppliers", "companies"));
|
2005-08-01 14:29:45 +02:00
|
|
|
|
2020-04-10 10:59:32 +02:00
|
|
|
$id = GETPOST('id', 'int');
|
2017-10-13 20:04:11 +02:00
|
|
|
|
|
|
|
|
$object = new PaiementFourn($db);
|
|
|
|
|
$object->fetch($id);
|
|
|
|
|
$object->info($id);
|
|
|
|
|
|
2009-08-05 20:22:40 +02:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* View
|
|
|
|
|
*/
|
|
|
|
|
|
2005-08-01 14:29:45 +02:00
|
|
|
llxHeader();
|
2005-10-17 19:07:30 +02:00
|
|
|
|
2017-10-13 20:04:11 +02:00
|
|
|
$head = payment_supplier_prepare_head($object);
|
2005-08-01 14:29:45 +02:00
|
|
|
|
2013-12-25 02:40:42 +01:00
|
|
|
dol_fiche_head($head, 'info', $langs->trans("SupplierPayment"), 0, 'payment');
|
2005-08-01 14:29:45 +02:00
|
|
|
|
2017-10-13 20:04:11 +02:00
|
|
|
dol_banner_tab($object, 'id', $linkback, -1, 'rowid', 'ref');
|
|
|
|
|
|
|
|
|
|
dol_fiche_end();
|
|
|
|
|
|
2005-08-01 14:29:45 +02:00
|
|
|
print '<table width="100%"><tr><td>';
|
2017-10-13 20:04:11 +02:00
|
|
|
dol_print_object_info($object);
|
2005-08-01 14:29:45 +02:00
|
|
|
print '</td></tr></table>';
|
|
|
|
|
|
2018-08-13 10:20:21 +02:00
|
|
|
// End of page
|
2011-08-27 16:24:16 +02:00
|
|
|
llxFooter();
|
2015-01-10 12:23:15 +01:00
|
|
|
$db->close();
|