This commit is contained in:
2021-05-13 21:15:24 +00:00
parent ea7646fbcc
commit d339b1b4d5

View File

@@ -1785,17 +1785,17 @@ namespace AyaNova.Biz
var netPrice = (o.Price * o.ServiceRateQuantity); var netPrice = (o.Price * o.ServiceRateQuantity);
if (o.TaxAPct != 0) if (o.TaxAPct != 0)
{ {
o.TaxAViz = netPrice * o.TaxAPct; o.TaxAViz = netPrice * (o.TaxAPct / 100);
} }
if (o.TaxBPct != 0) if (o.TaxBPct != 0)
{ {
if (o.TaxOnTax) if (o.TaxOnTax)
{ {
o.TaxBViz = (netPrice + o.TaxAViz) * o.TaxBPct; o.TaxBViz = (netPrice + o.TaxAViz) * (o.TaxBPct / 100);
} }
else else
{ {
o.TaxBViz = netPrice * o.TaxBPct; o.TaxBViz = netPrice * (o.TaxBPct / 100);
} }
} }
o.LineTotalViz = netPrice + o.TaxAViz + o.TaxBViz; o.LineTotalViz = netPrice + o.TaxAViz + o.TaxBViz;