X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/0c7f85c8241f9f9f42be480ea4df08468e948364..108d64919c0a9b294bdb26ac44fc433df0065aad:/emufs_gui/facturas.c diff --git a/emufs_gui/facturas.c b/emufs_gui/facturas.c index 7a594d3..cd1f42d 100644 --- a/emufs_gui/facturas.c +++ b/emufs_gui/facturas.c @@ -332,6 +332,7 @@ t_Factura *fact_buscar(t_LstFacturas *lst, int numero, EMUFS_REG_ID *id, EMUFS_R (*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; } @@ -395,8 +396,8 @@ void fact_eliminar(char *s) 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; @@ -427,6 +428,11 @@ void fact_modificar(char *s) 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); @@ -443,8 +449,14 @@ void fact_modificar(char *s) 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"));