Example #1
0
    def menu(self):
        callProduct = Product()
        callProduct.loadProductInfo(callProduct._productDB)

        while True:
            print("-------SISTEMA DE INVENTARIO-------")
            print("Validar Inventario\t[1]")
            print("Mayor Inventario\t[2]")
            print("Pedidos Proveedor\t[3]")
            print("Inventario Minimo\t[4]")
            print("Vender Producto\t\t[5]")
            print("Salir del Sistema\t[6]")

            self.__choice = int(input("\nIngrese la opcion: "))

            if self.__choice == 1:
                callProduct.validateMinStock(callProduct._productDB)
            elif self.__choice == 2:
                callProduct.maxValueStock(callProduct._productDB)
            elif self.__choice == 3:
                callProduct.buyStock(callProduct._productDB)
            elif self.__choice == 4:
                callProduct.modifyMinStock(callProduct._productDB)
            elif self.__choice == 5:
                callProduct.sellProduct(callProduct._productDB)
            elif self.__choice == 6:
                return False
            else:
                print("Opcion errada, intente de nuevo!\n")