]> git.llucax.com Git - z.facultad/75.06/emufs.git/blobdiff - emufs_gui/facturas.c
-para debug
[z.facultad/75.06/emufs.git] / emufs_gui / facturas.c
index 23e9deb49acf420b2ce45c2f6960a2196bd8da96..2df27ea46cf68c12fe04e5e842736385aa409d83 100644 (file)
@@ -649,8 +649,9 @@ void fact_agregar(char *s)
                                cant++;
                                its = (t_Item *)realloc(its, cant*sizeof(t_Item));
                                if (its != NULL) {
+                                       art_actualizar_stock(atoi(entrada), atoi(cv));
                                        its[cant-1].numero = atoi(entrada);
-                                       strcpy(its[cant-1].cv, form_obtener_valor_char(form, "CV"));
+                                       strcpy(its[cant-1].cv, cv);
                                        strcpy(its[cant-1].pvu, art->pvu);
                                }
                                free(art);