This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user