Re: result of an addition to another grid
Tengo 2 grillas relacionadas, una con los datos personales del trabajador y la otra con las horas trabajadas.
La primera grilla, la de datos personales es la tabla ?Maestra? que tiene los siguientes campos:
ID, Mes, a?o, trabajador, total_horas
y la segunda de ?Detalle? tiene los siguientes campos:
ID, Dia, Mes, A?o, trabajador, horas.
Esta la de ?Detalle? se relaciona con la Maestra a traves de los campos ?Mes, A?o y Trabajador? para obtener mensualmente todos los dias trabajados por cada trabajador.
Necesito Sumar todas las ?horas? de la tabla ?detalle? y grabarlas en la ?Maestra? en el campo ?total_horas? manteniendo la relacion ?Maestra → Detalle?.
I have two related grids, with each worker’s personal data and the other with the hours worked.
The first grid, the personal data table is the “Master” that has the following fields:
ID, month, year, worker, total_horas
and the second of “Detail” has the following fields:
ID, Day, Month, Year, worker hours.
This to “Detail” is related to the Master through the fields “Month, Year and Worker” monthly for all days worked by each worker.
I need to add all the “hours” of table “item” and burn the “Master” in the “total_horas” keeping the relationship “Master → Detail”.