Open fund total amount of splits

This commit is contained in:
2025-11-17 00:36:15 +08:00
parent 861fc7cafa
commit 5cd09bc2d0
6 changed files with 2773 additions and 9 deletions

View File

@@ -86,10 +86,11 @@ public class SnWalletFund : ModelBase
[MaxLength(128)] public string Currency { get; set; } = null!;
public decimal TotalAmount { get; set; }
public decimal RemainingAmount { get; set; }
public int AmountOfSplits { get; set; }
public FundSplitType SplitType { get; set; }
public FundStatus Status { get; set; } = FundStatus.Created;
[MaxLength(4096)] public string? Message { get; set; }
public bool IsOpen { get; set; } = false;
public bool IsOpen { get; set; }
// Creator
public Guid CreatorAccountId { get; set; }
@@ -119,7 +120,9 @@ public class SnWalletFund : ModelBase
Id = Guid.Parse(proto.Id),
Currency = proto.Currency,
TotalAmount = decimal.Parse(proto.TotalAmount),
RemainingAmount = proto.RemainingAmount is not null ? decimal.Parse(proto.RemainingAmount) : decimal.Parse(proto.TotalAmount),
RemainingAmount = proto.RemainingAmount is not null
? decimal.Parse(proto.RemainingAmount)
: decimal.Parse(proto.TotalAmount),
SplitType = (FundSplitType)proto.SplitType,
Status = (FundStatus)proto.Status,
Message = proto.Message,