Commit 923f9aaf by Carlos Alvarenga

cambio en el insert de los datos de los empleados

parent df7ab838
Showing with 1 additions and 1 deletions
......@@ -70,7 +70,7 @@ else{ $activo_subarea=0; }
$sec_empleado=pg_fetch_array(pg_query("select nextval('mnt_empleado_id_seq')"));
$empleado="INSERT INTO mnt_empleado(id,id_establecimiento,
habilitado_farmacia,fechahorareg,nombreempleado,idempleado)
VALUES ($sec_empleado[0],$IdEstablecimiento, 'H', now(), '$nombre',null) Returning id";
VALUES ($sec_empleado[0],$IdEstablecimiento, 'H', date_trunc('seconds', now()), '$nombre',null) Returning id";
$empleado_result=pg_query($empleado);
$insert_row = pg_fetch_row($empleado_result);
$IdEmpleado = $insert_row[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment