issue fix
This commit is contained in:
@ -64,17 +64,6 @@ namespace Billing.Views
|
||||
|
||||
private void AddToAccountGroup(Account account)
|
||||
{
|
||||
int maxId;
|
||||
if (accounts.Count > 0)
|
||||
{
|
||||
maxId = accounts.Max(g => g.Max(a => a.Id));
|
||||
}
|
||||
else
|
||||
{
|
||||
maxId = -1;
|
||||
}
|
||||
account.Id = maxId + 1;
|
||||
|
||||
var group = accounts.FirstOrDefault(g => g.Key == account.Category);
|
||||
if (group == null)
|
||||
{
|
||||
@ -142,7 +131,7 @@ namespace Billing.Views
|
||||
|
||||
private async void AccountChecked(object sender, AccountEventArgs e)
|
||||
{
|
||||
var add = e.Account.Id < 0;
|
||||
var add = e.Account.Id <= 0;
|
||||
if (add)
|
||||
{
|
||||
App.Accounts.Add(e.Account);
|
||||
|
Reference in New Issue
Block a user