This commit is contained in:
@@ -2224,7 +2224,7 @@ namespace AyaNova.Biz
|
|||||||
if (o.ChargeTaxCodeId != null)
|
if (o.ChargeTaxCodeId != null)
|
||||||
Tax = await ct.TaxCode.AsNoTracking().FirstOrDefaultAsync(z => z.Id == o.ChargeTaxCodeId);
|
Tax = await ct.TaxCode.AsNoTracking().FirstOrDefaultAsync(z => z.Id == o.ChargeTaxCodeId);
|
||||||
if (Tax != null)
|
if (Tax != null)
|
||||||
o.ChargeTaxCodeViz = Tax.Name;
|
o.TaxCodeViz = Tax.Name;
|
||||||
|
|
||||||
//Calculate totals and taxes
|
//Calculate totals and taxes
|
||||||
o.TaxAViz = 0;
|
o.TaxAViz = 0;
|
||||||
@@ -3934,7 +3934,7 @@ namespace AyaNova.Biz
|
|||||||
if (o.TaxPartSaleId != null)
|
if (o.TaxPartSaleId != null)
|
||||||
Tax = await ct.TaxCode.AsNoTracking().FirstOrDefaultAsync(z => z.Id == o.TaxPartSaleId);
|
Tax = await ct.TaxCode.AsNoTracking().FirstOrDefaultAsync(z => z.Id == o.TaxPartSaleId);
|
||||||
if (Tax != null)
|
if (Tax != null)
|
||||||
o.TaxPartSaleViz = Tax.Name;
|
o.TaxCodeViz = Tax.Name;
|
||||||
|
|
||||||
o.PriceViz = 0;
|
o.PriceViz = 0;
|
||||||
if (part != null)
|
if (part != null)
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace AyaNova.Models
|
|||||||
public decimal TaxPaid { get; set; }
|
public decimal TaxPaid { get; set; }
|
||||||
public long? ChargeTaxCodeId { get; set; }
|
public long? ChargeTaxCodeId { get; set; }
|
||||||
[NotMapped]
|
[NotMapped]
|
||||||
public string ChargeTaxCodeViz { get; set; }
|
public string TaxCodeViz { get; set; }
|
||||||
|
|
||||||
public bool ReimburseUser { get; set; } = false;
|
public bool ReimburseUser { get; set; } = false;
|
||||||
public long? UserId { get; set; }
|
public long? UserId { get; set; }
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ namespace AyaNova.Models
|
|||||||
public decimal Quantity { get; set; }
|
public decimal Quantity { get; set; }
|
||||||
public long? TaxPartSaleId { get; set; }
|
public long? TaxPartSaleId { get; set; }
|
||||||
[NotMapped]
|
[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
|
//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
|
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