Bug 445

Summary: Accounts with 0 balance wrongly included in balance sheet
Product: Group 3 Reporter: hsiangtai2-c
Component: Corporation Accounting SystemAssignee: Hsu To-Liang <tlhsu2-c>
Status: RESOLVED FIXED    
Severity: minor    
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Windows   

Description hsiangtai2-c 2020-11-23 19:54:38 HKT
When printing the balance sheet, instead of only printing those with a non-zero balance, the system prints all the accounts in existence. Conventionally, only those whose balance isn't zero should be printed.
Comment 1 Hsu To-Liang 2020-11-23 20:46:58 HKT
The original balance sheet printing out all accounts is lengthy and will make users lose their focus. I have rewritten the printBalanceSheet() method in Company so that only accounts with non-zero balance will be printed. By doing so, the balance sheet becomes more concise and neater.