Coder Social home page Coder Social logo

rrpss's People

Contributors

edocsss avatar kenrick95 avatar

Stargazers

 avatar

Watchers

 avatar

rrpss's Issues

alaCarte.id on Order not working?

Object "alaCarte" may not fully be copied when being passed to Order

================================================================================
ID   Name                Price     Description                   Type           
================================================================================
1    Chicken rice        2.50      Delicious chicken rice        Main course    
2    Chicken rice 2      2.50      Delicious chicken rice 2      Main course    
3    Package A           4.99      Package A is delicious        
     1    Chicken rice             Delicious chicken rice        Main course    
     2    Chicken rice 2           Delicious chicken rice 2      Main course    
1. Create/Update/Remove menu item
2. Create/Update/Remove promotion
3. Create order
4. View order
5. Add/Remove order item/s to/from order
6. Create reservation booking
7. Check/Remove reservation booking
8. Check table availability
9. Print order invoice
10. Print sale revenue report by period (eg day or month)
11. Exit
Enter your choice: 3


Enter table number: 1
Enter staff ID: 123
================================================================================
ID   Name                Price     Description                   Type           
================================================================================
1    Chicken rice        2.50      Delicious chicken rice        Main course    
2    Chicken rice 2      2.50      Delicious chicken rice 2      Main course    
3    Package A           4.99      Package A is delicious        
     1    Chicken rice             Delicious chicken rice        Main course    
     2    Chicken rice 2           Delicious chicken rice 2      Main course    
Input AlaCarte IDs and quantity (space-separated) | Enter -1 to end: 
2 2
-1
Input SetPackage IDs and quantity (space-separated) | Enter -1 to end: 
-1

1. Create/Update/Remove menu item
2. Create/Update/Remove promotion
3. Create order
4. View order
5. Add/Remove order item/s to/from order
6. Create reservation booking
7. Check/Remove reservation booking
8. Check table availability
9. Print order invoice
10. Print sale revenue report by period (eg day or month)
11. Exit
Enter your choice: 4


Enter table number: 1
0    Chicken rice 2 2.50  x 2     5.00

1. Create/Update/Remove menu item
2. Create/Update/Remove promotion
3. Create order
4. View order
5. Add/Remove order item/s to/from order
6. Create reservation booking
7. Check/Remove reservation booking
8. Check table availability
9. Print order invoice
10. Print sale revenue report by period (eg day or month)
11. Exit
Enter your choice: 5

Enter table number: 1
1. Add order items to order
2. Remove order items from order
1
Input AlaCarte IDs and quantity (space-separated) | Enter -1 to end: 1 2 -1
Input SetPackage IDs (space-separated) | Enter -1 to end: -1

1. Create/Update/Remove menu item
2. Create/Update/Remove promotion
3. Create order
4. View order
5. Add/Remove order item/s to/from order
6. Create reservation booking
7. Check/Remove reservation booking
8. Check table availability
9. Print order invoice
10. Print sale revenue report by period (eg day or month)
11. Exit
Enter your choice: 4


Enter table number: 1
0    Chicken rice 2 2.50  x 2     5.00
0    Chicken rice   2.50  x 2     5.00

1. Create/Update/Remove menu item
2. Create/Update/Remove promotion
3. Create order
4. View order
5. Add/Remove order item/s to/from order
6. Create reservation booking
7. Check/Remove reservation booking
8. Check table availability
9. Print order invoice
10. Print sale revenue report by period (eg day or month)
11. Exit
Enter your choice: 8

Input table number: 1
Table number 1 is unavailable!

1. Create/Update/Remove menu item
2. Create/Update/Remove promotion
3. Create order
4. View order
5. Add/Remove order item/s to/from order
6. Create reservation booking
7. Check/Remove reservation booking
8. Check table availability
9. Print order invoice
10. Print sale revenue report by period (eg day or month)
11. Exit
Enter your choice: 9

Enter table number: 1
Membership (Y/N)? y
Order Invoice #1
Table: 1
Date: java.util.GregorianCalendar[time=1414497715641,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Asia/Singapore",offset=28800000,dstSavings=0,useDaylight=false,transitions=9,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2014,MONTH=9,WEEK_OF_YEAR=44,WEEK_OF_MONTH=5,DAY_OF_MONTH=28,DAY_OF_YEAR=301,DAY_OF_WEEK=3,DAY_OF_WEEK_IN_MONTH=4,AM_PM=1,HOUR=8,HOUR_OF_DAY=20,MINUTE=1,SECOND=55,MILLISECOND=641,ZONE_OFFSET=28800000,DST_OFFSET=0]
Order breakdown: 
[0]  Chicken rice 2  2.5 x2 = 5.0
[0]  Chicken rice  2.5 x2 = 5.0
Total price: 10.0
Membership discount: 1.0
GST: 0.6300000000000001
Grand total: 8.37

1. Create/Update/Remove menu item
2. Create/Update/Remove promotion
3. Create order
4. View order
5. Add/Remove order item/s to/from order
6. Create reservation booking
7. Check/Remove reservation booking
8. Check table availability
9. Print order invoice
10. Print sale revenue report by period (eg day or month)
11. Exit
Enter your choice: 

Update database

Due to commit fdf93ad the app can't be run as Menu and AlaCarte class has been changed. Please update the database. Thanks ๐Ÿ˜„

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.