Package y1.wms

Examples of y1.wms.Stock.dispatch()


    System.out.println("\nLaos on hetkel: " + s.toString()); // 1 leib, 5 piima, 3 saia
   
    Order outgoingOrder = new Order();
    outgoingOrder.add(i2, 2);
     
    s.dispatch(outgoingOrder);   
   
    System.out.println("\nLaos on hetkel: " + s.toString());
       
    int q2 = s.getAvailable( new Item("Piim", 0.55) );    // tagastab samuti 3
   
View Full Code Here


    System.out.println("\nOstukorvi sisu: " + c.toString());
   
    Order outgoingOrder2 = c.checkOut();
    System.out.println("Kokku maksta: " + c.getTotal() + "€");
   
    s.dispatch(outgoingOrder2); // Soovin eemaldada laost — ei eemalda, kuna leiba pole laos piisavalt

    System.out.println("\nLaos on hetkel: " + s.toString());

   
    Cart c2 = new Cart();
View Full Code Here

       
    System.out.println("\nOstukorvi sisu: " + c2.toString());

    Order outgoingOrder3 = c2.checkOut();

    s.dispatch(outgoingOrder3); // Eemaldab laost kogu leiva, 1 saia ja 1 piima.
    System.out.println("\nLaos on hetkel: " + s.toString()); // 2 saia, 2 piima.


  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.