(*id) = reg->num_reg;
(*id_texto) = reg->texto_reg;
free(leo);
+ fact->nota = lst->fp_texto->leer_registro(lst->fp_texto, reg->texto_reg, &size, &error);
}
break;
}
void fact_modificar(char *s)
{
- WINDOW *win, *items;
- t_Form *form;
+ WINDOW *win, *items, *nota, *subnota;
+ t_Form *form, *form_nota;
t_Factura *fact;
/*EMUFS_REG_SIZE size;*/
EMUFS_REG_ID id, id_texto;
wrefresh(win);
items = derwin(win, LINES-20, COLS-4, 15, 1);
+ nota = derwin(win, 9, COLS-62, 1, 56);
+ subnota = derwin(nota, 7, COLS-64, 1, 1);
+ box(nota, 0, 0);
+ mvwaddstr(nota, 0, 1, "Nota :");
+ wrefresh(nota);
wrefresh(items);
form = form_crear(win);
form_agregar_widget(form, INPUT, "Cuenta Cte", 5, fact->ctacte);
form_agregar_widget(form, INPUT, "Cheque Nro", 18, fact->cheque);
+ mvwaddstr(subnota, 0, 0, fact->nota);
+ wrefresh(subnota);
form_ejecutar(form, 1,1);
+ form_nota = form_crear(subnota);
+ form_agregar_widget(form_nota, INPUT, "", 255, fact->nota);
+ form_ejecutar(form_nota, 0, 0);
+
fact->numero = form_obtener_valor_int(form, "Numero de Factura");
strcpy(fact->emision, form_obtener_valor_char(form, "Fecha Emision"));
strcpy(fact->vencimiento, form_obtener_valor_char(form, "Fecha Vto"));