Files
ventas_php/modules/facturas-datos.php

20 lines
356 B
PHP
Executable File

<?php
if($_SESSION['tipoUsr'] != 'Cliente'){
header('Location: '.WEB_ROOT.'/facturas');
exit;
}
$clienteId = $_SESSION['loginKey'];
if($clienteId){
$cliente->setClienteId($clienteId);
$info = $cliente->Info();
}else{
$info['clienteId'] = $clienteId;
$info['rfc'] = $_SESSION['rfcClte'];
}
$smarty->assign('info',$info);
?>