This commit is contained in:
2021-06-17 19:20:04 +00:00
parent aebd83e45d
commit c51cbe763f
3 changed files with 4 additions and 4 deletions

View File

@@ -2224,7 +2224,7 @@ namespace AyaNova.Biz
if (o.ChargeTaxCodeId != null)
Tax = await ct.TaxCode.AsNoTracking().FirstOrDefaultAsync(z => z.Id == o.ChargeTaxCodeId);
if (Tax != null)
o.ChargeTaxCodeViz = Tax.Name;
o.TaxCodeViz = Tax.Name;
//Calculate totals and taxes
o.TaxAViz = 0;
@@ -3934,7 +3934,7 @@ namespace AyaNova.Biz
if (o.TaxPartSaleId != null)
Tax = await ct.TaxCode.AsNoTracking().FirstOrDefaultAsync(z => z.Id == o.TaxPartSaleId);
if (Tax != null)
o.TaxPartSaleViz = Tax.Name;
o.TaxCodeViz = Tax.Name;
o.PriceViz = 0;
if (part != null)

View File

@@ -22,7 +22,7 @@ namespace AyaNova.Models
public decimal TaxPaid { get; set; }
public long? ChargeTaxCodeId { get; set; }
[NotMapped]
public string ChargeTaxCodeViz { get; set; }
public string TaxCodeViz { get; set; }
public bool ReimburseUser { get; set; } = false;
public long? UserId { get; set; }

View File

@@ -27,7 +27,7 @@ namespace AyaNova.Models
public decimal Quantity { get; set; }
public long? TaxPartSaleId { get; set; }
[NotMapped]
public string TaxPartSaleViz { get; set; }
public string TaxCodeViz { get; set; }
//NOTE: part prices are volatile and expected to be frequently edited so snapshotted when newly added unlike other things like rates etc that are protected from change
public decimal Cost { get; set; }//cost from source record (e.g. serviceRate) or zero if no cost entered