LicenseSummary.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. @using Comal.Classes
  2. @using GenHTTP.Api.Protocol
  3. @using GenHTTP.Modules.IO;
  4. @using InABox.Core
  5. @{
  6. var summary = new LicenseSummary {
  7. LicenseFees = new() {
  8. { typeof(CoreLicense).EntityName(), 7.99 },
  9. { typeof(DigitalFormsLicense).EntityName(), 3.99 },
  10. { typeof(SchedulingControlLicense).EntityName(), 1.99 },
  11. { typeof(TimeManagementLicense).EntityName(), 2.99 },
  12. { typeof(AccountsPayableLicense).EntityName(), 1.99 },
  13. { typeof(GPSTrackerLicense).EntityName(), 2.99 },
  14. { typeof(LogisticsLicense).EntityName(), 4.99 },
  15. { typeof(ScheduleEngineLicense).EntityName(), 2.99 },
  16. { typeof(QuotesManagementLicense).EntityName(), 4.99 },
  17. { typeof(LeaveManagementLicense).EntityName(), 2.99 },
  18. { typeof(TaskManagementLicense).EntityName(), 1.99 },
  19. { typeof(WarehouseLicense).EntityName(), 5.99 },
  20. { typeof(ProjectManagementLicense).EntityName(), 4.99 },
  21. { typeof(ManufacturingLicense).EntityName(), 4.99 },
  22. { typeof(ProductManagementLicense).EntityName(), 2.99 },
  23. { typeof(EquipmentLicense).EntityName(), 2.99 },
  24. { typeof(HumanResourcesLicense).EntityName(), 2.99 },
  25. { typeof(AccountsReceivableLicense).EntityName(), 1.99 }
  26. },
  27. TimeDiscounts = new() {
  28. { 1, 0.00 },
  29. { 3, 5.00 },
  30. { 6, 5.00 },
  31. { 12, 10.00 }
  32. },
  33. UserDiscounts = new() {
  34. { 1, 00.31 },
  35. { 6, 08.63 },
  36. { 11, 16.94 },
  37. { 21, 25.25 },
  38. { 51, 33.57 }
  39. }
  40. };
  41. Model.Respond()
  42. .Status(ResponseStatus.OK)
  43. .Content(Serialization.Serialize(summary));
  44. return;
  45. }