src/Main/InventoryManager.java
// Helper Method to create sample products
Helper Method to create sample products
Helper Method to create sample products
private void testProducts(
            String productIName,
            int inventoryLevel,
            double price,
            int maxInventory,
            int minInventory,
            ObservableList<Part> associatedParts) {
        int productID = Inventory.getGeneratedProductID();
        Product newProductTest = new Product();
        newProductTest.setId(productID);
        newProductTest.setName(productIName);
        newProductTest.setStock(inventoryLevel);
        newProductTest.setPrice(price);
        newProductTest.setMax(maxInventory);
        newProductTest.setMin(minInventory);
        Inventory.addProduct(newProductTest);
        newProductTest.setAssociatedParts(associatedParts);
    }
private void testProducts ( String productIName , int inventoryLevel , double price , int maxInventory , int minInventory , ObservableList < Part > associatedParts ) { int productID = Inventory . getGeneratedProductID ( ) ; Product newProductTest = new Product ( ) ; newProductTest . setId ( productID ) ; newProductTest . setName ( productIName ) ; newProductTest . setStock ( inventoryLevel ) ; newProductTest . setPrice ( price ) ; newProductTest . setMax ( maxInventory ) ; newProductTest . setMin ( minInventory ) ; Inventory . addProduct ( newProductTest ) ; newProductTest . setAssociatedParts ( associatedParts ) ; }
Helper Method to create sample products
Helper Method to create sample products