feature/cierres #30

Merged
aldarien merged 460 commits from feature/cierres into develop 2025-09-11 15:16:17 -03:00
187 changed files with 675 additions and 6677 deletions
Showing only changes of commit 7d8e2249de - Show all commits

View File

@ -218,7 +218,7 @@ class Ventas extends Controller
$output['venta_id'] = $venta->id; $output['venta_id'] = $venta->id;
$output['status'] = true; $output['status'] = true;
} catch (Create | Update $exception) { } catch (Create | Update $exception) {
$this->logger->error($exception->getMessage()); $this->logger->error($exception);
$output['errors'] = [ $output['errors'] = [
'code' => $exception->getCode(), 'code' => $exception->getCode(),
'message' => $exception->getMessage(), 'message' => $exception->getMessage(),

View File

@ -280,7 +280,7 @@ class Cartola extends Service
try { try {
return $this->movimientoRepository->save($movimiento); return $this->movimientoRepository->save($movimiento);
} catch (PDOException $exception) { } catch (PDOException $exception) {
$this->logger->critical(var_export($data,true)); $this->logger->critical($exception, ['data' => $data]);
throw $exception; throw $exception;
} }
} }