Files
ventas_php/modules/devoluciones-cedis-agregar.php

23 lines
572 B
PHP
Executable File

<?php
$empresa->AuthUser();
if($Usr['type'] != 'admin' && $Usr['type'] != 'compras' && $Usr['type'] != 'direccion' && $Usr['type'] != 'almacen'){
header('Location: '.WEB_ROOT);
exit;
}
$_SESSION['prodsDevC'] = array();
unset($_SESSION['prodsDevC']);
$info['noDevolucion'] = $devolucion->GetNextNoDevCedis();
$info['fecha'] = date('d-m-Y H:i:s');
$sucursal->setRfcId(1);
$resSuc = $sucursal->GetSucursalesByRfc();
$sucursales = $util->DecodeUrlResult($resSuc);
$smarty->assign('sucursales',$sucursales);
$smarty->assign('info',$info);
?>