PaymentVariantsWindow: Allow members to have no IBAN
This commit is contained in:
@ -77,7 +77,7 @@ namespace Elwig.Models.Dtos {
|
||||
public string Address;
|
||||
public int Plz;
|
||||
public string Locality;
|
||||
public string Iban;
|
||||
public string? Iban;
|
||||
public string TgNr;
|
||||
public decimal Sum;
|
||||
public decimal? Surcharge;
|
||||
@ -101,7 +101,7 @@ namespace Elwig.Models.Dtos {
|
||||
Address = row.Address;
|
||||
Plz = row.Plz;
|
||||
Locality = row.Locality;
|
||||
Iban = Utils.FormatIban(row.Iban);
|
||||
Iban = row.Iban != null ? Utils.FormatIban(row.Iban) : null;
|
||||
TgNr = $"{row.Year}/{row.TgNr}";
|
||||
Total = Utils.DecFromDb(row.NetAmount, prec1);
|
||||
Surcharge = (row.Surcharge == null || row.Surcharge == 0) ? null : Utils.DecFromDb((long)row.Surcharge, prec2);
|
||||
@ -145,7 +145,7 @@ namespace Elwig.Models.Dtos {
|
||||
[NotMapped]
|
||||
public string Locality => LocalityFull.Split(",")[0];
|
||||
[Column("iban")]
|
||||
public string Iban { get; set; }
|
||||
public string? Iban { get; set; }
|
||||
[Column("year")]
|
||||
public int Year { get; set; }
|
||||
[Column("precision")]
|
||||
|
Reference in New Issue
Block a user