File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ void registro_ventas ();
2727 * @param compra_total cantidad de dinero utilizado en inversiones
2828 * @param venta_total ingresos totales de ventas realizadas
2929 */
30- void dinero_total (int compra_total , int venta_total );
30+ void dinero_total ();
3131
3232/**
3333 * @brief
Original file line number Diff line number Diff line change 1010#include <string.h>
1111#include "../include/login.h"
1212#include "../include/inventario.h"
13+ #include "../include/compra.h"
1314#include "../include/venta.h"
1415
1516void registro_compras () /* Muestra el Registro de Compras realizadas */
1617{
18+ clear_screen ();
1719 /* Muestra el Registro Compras */
1820 printf ("Resgistro de Contabilidad de Compras: \n" );
1921 return report_inventory ();
2022}
2123
2224void registro_ventas () /* Muestra el Registro de Ventas realizadas */
2325{
26+ clear_screen ();
2427 /* Muestra el Registro de Ventas */
2528 printf ("Resgistro de Contabilidad de Ventas: \n" );
2629 return print_factura ();
2730}
2831
29- void dinero_total (int compra_total , int venta_total )
32+ void dinero_total ()
3033{
31-
34+ clear_screen ();
35+ printf ("El Dinero Total Obtenido es: %d\n" , obtener_ventas_suma () - obtener_suplidor_suma ());
3236}
3337
3438bool contabilidad_menu ()
3539{
3640
37- char _temp [sizeof (short )];
41+ char _temp [sizeof (short )* 2 ];
3842 short temp ;
3943 bool flag = false;
4044 int time = 1 ;
@@ -73,13 +77,12 @@ bool contabilidad_menu()
7377 break ;
7478
7579 case DT :
76- printf ("Vuelva mas Tarde" );
77-
80+ dinero_total ;
7881 break ;
7982
8083 case BACK_MENU :
8184
82- printf ( "Vuelva mas Tarde" );
85+ return login_menu ( );
8386 break ;
8487
8588 default :
You can’t perform that action at this time.
0 commit comments