36 lines
757 B
PHP
Executable File
36 lines
757 B
PHP
Executable File
<?php
|
|
|
|
if($_SESSION['tipoUsr'] != 'Cliente'){
|
|
header('Location: '.WEB_ROOT.'/facturas');
|
|
exit;
|
|
}
|
|
|
|
$_SESSION['tipoComp'] = '';
|
|
$_SESSION['conceptos'] = array();
|
|
$_SESSION['impuestos'] = array();
|
|
|
|
$clienteId = $_SESSION['loginKey'];
|
|
|
|
if($clienteId){
|
|
|
|
$cliente->setClienteId($clienteId);
|
|
$infC = $cliente->Info();
|
|
|
|
$comprobantes = $cliente->EnumFacturasByClte();
|
|
|
|
$items = array();
|
|
foreach($comprobantes['items'] as $res){
|
|
$res['rfc'] = $infC['rfc'];
|
|
$res['nombre'] = $infC['nombre'];
|
|
|
|
$venta->setComprobanteId($res['comprobanteId']);
|
|
$res['ventaId'] = $venta->GetTicketByComprobanteId();
|
|
|
|
$items[] = $res;
|
|
}
|
|
$comprobantes['items'] = $items;
|
|
|
|
}//if
|
|
|
|
$smarty->assign('comprobantes',$comprobantes);
|
|
?>
|