Billing: Allow users to add custom member modifiers before VAT
All checks were successful
Test / Run tests (push) Successful in 2m8s
All checks were successful
Test / Run tests (push) Successful in 2m8s
This commit is contained in:
@ -11,12 +11,31 @@ namespace Elwig.Models.Entities {
|
||||
[Column("mgnr")]
|
||||
public int MgNr { get; set; }
|
||||
|
||||
[Column("amount")]
|
||||
public long AmountValue { get; set; }
|
||||
[Column("mod_abs")]
|
||||
public long? ModAbsValue { get; set; }
|
||||
[NotMapped]
|
||||
public decimal Amount {
|
||||
get => Utils.DecFromDb(AmountValue, 2);
|
||||
set => AmountValue = Utils.DecToDb(value, 2);
|
||||
public decimal? ModAbs {
|
||||
get => ModAbsValue != null ? Utils.DecFromDb(ModAbsValue.Value, 2) : null;
|
||||
set => ModAbsValue = value != null ? Utils.DecToDb(value.Value, 2) : null;
|
||||
}
|
||||
|
||||
[Column("mod_rel")]
|
||||
public double? ModRelValue { get; set; }
|
||||
[NotMapped]
|
||||
public decimal? ModRel {
|
||||
get => ModRelValue != null ? (decimal)ModRelValue.Value : null;
|
||||
set => ModRelValue = value != null ? (double)value.Value : null;
|
||||
}
|
||||
|
||||
[Column("mod_comment")]
|
||||
public string? ModComment { get; set; }
|
||||
|
||||
[Column("amount")]
|
||||
public long? AmountValue { get; set; }
|
||||
[NotMapped]
|
||||
public decimal? Amount {
|
||||
get => AmountValue != null ? Utils.DecFromDb(AmountValue.Value, 2) : null;
|
||||
set => AmountValue = value != null ? Utils.DecToDb(value.Value, 2) : null;
|
||||
}
|
||||
|
||||
[Column("comment")]
|
||||
|
Reference in New Issue
Block a user