This commit is contained in:
@@ -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;
|
||||||
@@ -1839,7 +1839,7 @@ namespace AyaNova.Biz
|
|||||||
newObj.TaxAPct = 0;
|
newObj.TaxAPct = 0;
|
||||||
newObj.TaxBPct = 0;
|
newObj.TaxBPct = 0;
|
||||||
newObj.TaxOnTax = false;
|
newObj.TaxOnTax = false;
|
||||||
newObj.TaxName="";
|
newObj.TaxName = "";
|
||||||
|
|
||||||
if (newObj.TaxCodeSaleId != null)
|
if (newObj.TaxCodeSaleId != null)
|
||||||
{
|
{
|
||||||
@@ -1849,7 +1849,7 @@ namespace AyaNova.Biz
|
|||||||
newObj.TaxAPct = t.TaxAPct;
|
newObj.TaxAPct = t.TaxAPct;
|
||||||
newObj.TaxBPct = t.TaxBPct;
|
newObj.TaxBPct = t.TaxBPct;
|
||||||
newObj.TaxOnTax = t.TaxOnTax;
|
newObj.TaxOnTax = t.TaxOnTax;
|
||||||
newObj.TaxName=t.Name;
|
newObj.TaxName = t.Name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user