*/ require '../../main.inc.php'; require_once DOL_DOCUMENT_ROOT . '/fourn/class/fournisseur.class.php'; require_once DOL_DOCUMENT_ROOT . '/fourn/class/fournisseur.facture.class.php'; require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php'; require_once DOL_DOCUMENT_ROOT . '/core/lib/fourn.lib.php'; $langs->load('bills'); $id = GETPOST("facid", 'int'); // Security check if ($user->societe_id) { $socid = $user->societe_id; } $result = restrictedArea($user, 'fournisseur', $id, 'facture_fourn', 'facture'); /* * View */ llxHeader(); $object = new FactureFournisseur($db); $object->fetch($id); $object->info($id); $soc = new Societe($db); $soc->fetch($object->socid); $head = facturefourn_prepare_head($object); $titre = $langs->trans('SupplierInvoice'); dol_fiche_head($head, 'info', $langs->trans('SupplierInvoice'), 0, 'bill'); print '<table width="100%"><tr><td>'; dol_print_object_info($object); print '</td></tr></table>'; print '</div>'; llxFooter(); $db->close();
// Security check if ($user->societe_id) $socid=$user->societe_id; $result = restrictedArea($user, 'fournisseur', $facid, 'facture_fourn', 'facture'); /* * View */ llxHeader(); $fac = new FactureFournisseur($db); $fac->fetch($_GET["facid"]); $fac->info($_GET["facid"]); $soc = new Societe($db, $fac->socid); $soc->fetch($fac->socid); $head = facturefourn_prepare_head($fac); $titre=$langs->trans('SupplierInvoice'); dol_fiche_head($head, 'info', $langs->trans('SupplierInvoice'), 0, 'bill'); print '<table width="100%"><tr><td>'; dol_print_object_info($fac); print '</td></tr></table>'; print '</div>'; $db->close();