Bug 227

Summary: The branch class's checkin and checkout method don't manipulate the order arraylist "queuingOrders" and "onDelivery" correctly
Product: Group 1 Reporter: ZHENG Wanying <wanyzheng3-c>
Component: BranchAssignee: WANG Ruochen <ruochwang2-c>
Status: RESOLVED FIXED    
Severity: critical CC: sherlockqiu
Priority: High    
Version: v0.2-beta   
Hardware: PC   
OS: Mac OS   
Attachments: The source code

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