]> git.llucax.com Git - z.facultad/75.06/emufs.git/blobdiff - emufs_gui/facturas.c
Bugfix en Tipo3, puto puto puto
[z.facultad/75.06/emufs.git] / emufs_gui / facturas.c
index 23e9deb49acf420b2ce45c2f6960a2196bd8da96..922cee61930687ec0edebd66bced8618ac4708fd 100644 (file)
@@ -250,7 +250,6 @@ t_LstFacturas *fact_cargar(t_Parametros *param)
                                        void *save;
                                        memset(&fact, 0, sizeof(t_Factura));
                                        prop = xml_get_prop(node, "NroFac");
-                                       PERR(prop);
                                        fact.numero = atoi(prop); xmlFree(prop);
                                        prop = xml_get_prop(node, "PorcDoI");
                                        fact.procdoi = atof(prop); xmlFree(prop);
@@ -649,8 +648,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);