src/Main/InventoryManager.java
// Helper Method to create sample Outsourced parts
Helper Method to create sample Outsourced parts
Helper Method to create sample Outsourced parts
private void outsourcedTestParts(
            String partName,
            int inventoryLevel,
            double price,
            int maxInventory,
            int minInventory,
            String companyName) {
        int partID = Inventory.getGeneratedPartID();
        Outsourced newOutsourcedTest = new Outsourced();
        newOutsourcedTest.setId(partID);
        newOutsourcedTest.setName(partName);
        newOutsourcedTest.setStock(inventoryLevel);
        newOutsourcedTest.setPrice(price);
        newOutsourcedTest.setMax(maxInventory);
        newOutsourcedTest.setMin(minInventory);
        newOutsourcedTest.setCompanyName(companyName);
        addPart(newOutsourcedTest);
        associatedParts.add(newOutsourcedTest);
    }
private void outsourcedTestParts ( String partName , int inventoryLevel , double price , int maxInventory , int minInventory , String companyName ) { int partID = Inventory . getGeneratedPartID ( ) ; Outsourced newOutsourcedTest = new Outsourced ( ) ; newOutsourcedTest . setId ( partID ) ; newOutsourcedTest . setName ( partName ) ; newOutsourcedTest . setStock ( inventoryLevel ) ; newOutsourcedTest . setPrice ( price ) ; newOutsourcedTest . setMax ( maxInventory ) ; newOutsourcedTest . setMin ( minInventory ) ; newOutsourcedTest . setCompanyName ( companyName ) ; addPart ( newOutsourcedTest ) ; associatedParts . add ( newOutsourcedTest ) ; }
Helper Method to create sample Outsourced parts
Helper Method to create sample Outsourced parts