ContractAllowance.cs 922 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using MTWorkHR.Core.Entities.Base;
  9. using MTWorkHR.Core.Global;
  10. namespace MTWorkHR.Core.Entities
  11. {
  12. public class ContractAllowance : AuditEntity
  13. {
  14. public long ContractId{ get; set; }
  15. [ForeignKey("ContractId")]
  16. public Contract? Contract { get; set; }
  17. [Required]
  18. public long AllowanceType { get; set; }
  19. public string? AllowanceDesc { get; set; }
  20. public decimal EntitlementPercent { get; set; }// اختيار (مبلغ – يكتب المبلغ) أو (نسبة من الراتب – ويظهر المبلغ توماتك)
  21. public decimal EntitlementAmount { get; set; }
  22. public string? PaymentType { get; set; }
  23. }
  24. }