feature/grabar-factura #11

Merged
aldarien merged 14 commits from feature/grabar-factura into develop 2025-02-04 10:37:34 -03:00
14 changed files with 1416 additions and 1168 deletions
Showing only changes of commit 079fd3bc74 - Show all commits

View File

@ -21,6 +21,12 @@ class Facturas extends Controller
'success' => false
];
try {
foreach (['cliente', 'unidades', 'detalle', 'total', 'uf'] as $key) {
if (!isset($data[$key]) or empty($data[$key])) {
continue;
}
$data[$key] = json_decode($data[$key], true);
}
$output['factura'] = $facturaService->add($data);
$output['success'] = true;
} catch (Implement\Exception\EmptyResult) {