This commit is contained in:
2021-06-28 19:15:50 +00:00
parent 8b3f1f8c22
commit 1f03d8c232
3 changed files with 20 additions and 11 deletions

View File

@@ -529,7 +529,7 @@ namespace AyaNova.Util
}
long TCSales = 0, TCGoods = 0, TCBoth = 0;
long TCServices = 0, TCGoods = 0, TCBoth = 0;
public Decimal TimeZoneOffset = 0;
@@ -1354,8 +1354,8 @@ namespace AyaNova.Util
{
{
TaxCode tc = new TaxCode();
tc.Name = "Sales only";
tc.Notes = "Example sales only tax";
tc.Name = "Services only";
tc.Notes = "Example service only tax";
tc.Active = true;
tc.Tags = RandomTags();
tc.TaxAPct = 5m;
@@ -1372,7 +1372,7 @@ namespace AyaNova.Util
log.LogError(err);
throw new System.Exception(err);
}
TCSales = NewObject.Id;
TCServices = NewObject.Id;
}
}
{
@@ -1401,9 +1401,9 @@ namespace AyaNova.Util
}
{
TaxCode tc = new TaxCode();
tc.Name = "Sales & Goods";
tc.Name = "Services & Goods";
tc.Active = true;
tc.Notes = "Example sales and goods tax";
tc.Notes = "Example services and goods tax";
tc.Tags = RandomTags();
tc.TaxAPct = 5m;
tc.TaxBPct = 7m;
@@ -1436,7 +1436,7 @@ namespace AyaNova.Util
var gbiz = await biz.GetAsync(false);
gbiz.TaxPartPurchaseId = TCGoods;
gbiz.TaxPartSaleId = TCGoods;
gbiz.TaxRateSaleId = TCSales;
gbiz.TaxRateSaleId = TCServices;
await biz.PutAsync(gbiz);
}
}