X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/ee3853f9b2bed3fa3a1f3a90c8dca81686d39fc8..7a88471c0a2fbba81489078fc4a13fcc715d0912:/emufs_gui/facturas.c diff --git a/emufs_gui/facturas.c b/emufs_gui/facturas.c index 23e9deb..922cee6 100644 --- a/emufs_gui/facturas.c +++ b/emufs_gui/facturas.c @@ -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);