Fixed bug that made it possible to pass cash advances to payout
This commit is contained in:
@@ -201,15 +201,14 @@ namespace Swarmops.Logic.Financial
|
||||
int advanceId = Int32.Parse(component.Substring(1));
|
||||
CashAdvance advance = CashAdvance.FromIdentity(advanceId);
|
||||
identityList.Add(advanceId);
|
||||
Organization organization = Organization.FromIdentity(organizationId);
|
||||
organizationId = advance.OrganizationId;
|
||||
Organization organization = Organization.FromIdentity(advance.OrganizationId);
|
||||
|
||||
if (bank.Length < 1)
|
||||
{
|
||||
Person asker = advance.Person;
|
||||
bank = asker.BankName;
|
||||
account = asker.BankAccount;
|
||||
organizationId = advance.OrganizationId;
|
||||
|
||||
}
|
||||
|
||||
amountCents += advance.AmountCents;
|
||||
|
||||
@@ -7,6 +7,7 @@ using System.Web.Services;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Swarmops.Basic.Enums;
|
||||
using Swarmops.Database;
|
||||
using Swarmops.Logic.Financial;
|
||||
using Swarmops.Logic.Security;
|
||||
|
||||
@@ -28,6 +29,8 @@ namespace Swarmops.Frontend.Pages.Financial
|
||||
{
|
||||
Localize();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void Localize()
|
||||
|
||||
Reference in New Issue
Block a user