This commit is contained in:
2021-05-20 19:50:58 +00:00
parent 3e101e41e4
commit 96b78856da
5 changed files with 111 additions and 16 deletions

View File

@@ -20,8 +20,7 @@ namespace AyaNova.Models
[Required]
public decimal TaxPaid { get; set; }
public long? ChargeTaxCodeId { get; set; }
[NotMapped]
public string ChargeTaxCodeViz { get; set; }
public bool ReimburseUser { get; set; } = false;
public long? UserId { get; set; }
[NotMapped]
@@ -29,6 +28,22 @@ namespace AyaNova.Models
public bool ChargeToCustomer { get; set; } = false;
//TAX AND TOTAL FIELDS
public string TaxName { get; set; }
[Required]
public decimal TaxAPct { get; set; }
[Required]
public decimal TaxBPct { get; set; }
[Required]
public bool TaxOnTax { get; set; }
[NotMapped]
public decimal TaxAViz { get; set; }
[NotMapped]
public decimal TaxBViz { get; set; }
[NotMapped]
public decimal LineTotalViz { get; set; }
//UTILITY FIELDS
[NotMapped]
public bool IsDirty { get; set; } = false;//never dirty coming from the server