Bug 227 - The branch class's checkin and checkout method don't manipulate the order arraylist "queuingOrders" and "onDelivery" correctly
Summary: The branch class's checkin and checkout method don't manipulate the order arr...
Status: RESOLVED FIXED
Alias: None
Product: Group 1
Classification: Unclassified
Component: Branch (show other bugs)
Version: v0.2-beta
Hardware: PC Mac OS
: High critical
Assignee: WANG Ruochen
URL:
Depends on:
Blocks:
 
Reported: 2017-11-28 21:34 HKT by ZHENG Wanying
Modified: 2017-12-01 01:06 HKT (History)
1 user (show)

See Also:


Attachments
The source code (1.38 KB, text/plain)
2017-11-28 21:35 HKT, ZHENG Wanying
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ZHENG Wanying 2017-11-28 21:34:27 HKT
The queuingOrders array list can only be added by checkInOrder method without any other method removing orders from it.
The onDelivery array list can only be removed by checkOutOrder method without any other method adding orders to it, thus the onDelivery list is always empty, and the checkOutOrders cannot work at any time.

There should be some statements add order to the onDelivery and remove order from queuing orders.
Comment 1 ZHENG Wanying 2017-11-28 21:35:18 HKT
Created attachment 8 [details]
The source code
Comment 2 sherlockqiu 2017-12-01 01:06:16 HKT
Hi the bug is solved