ActivityCharge.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using InABox.Core;
  3. using Newtonsoft.Json.Serialization;
  4. namespace Comal.Classes
  5. {
  6. public class ActivityCharge : EnclosedEntity
  7. {
  8. [EditorSequence(1)]
  9. [Caption(nameof(Chargeable), IncludePath = false)]
  10. public bool Chargeable { get; set; }
  11. [EditorSequence(2)]
  12. [CurrencyEditor]
  13. [Caption(nameof(FixedCharge), IncludePath = false)]
  14. public double FixedCharge { get; set; }
  15. [EditorSequence(3)]
  16. [CurrencyEditor]
  17. [Caption(nameof(ChargeRate), IncludePath = false)]
  18. public double ChargeRate { get; set; }
  19. [EditorSequence(4)]
  20. [DurationEditor]
  21. [Caption(nameof(ChargePeriod), IncludePath = false)]
  22. public TimeSpan ChargePeriod { get; set; }
  23. [EditorSequence(5)]
  24. [CurrencyEditor()]
  25. [Caption(nameof(MinimumCharge), IncludePath = false)]
  26. public double MinimumCharge { get; set; }
  27. [EditorSequence(6)]
  28. [Caption(nameof(TaxCode), IncludePath = false)]
  29. public TaxCodeLink TaxCode { get; set; }
  30. }
  31. }