Browse Source

Fixed TaxCode configuration to only show active tax rates;

Kenric Nugteren 3 weeks ago
parent
commit
93cbef0fc4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      prs.shared/Posters/Xero/TaxCodeXeroConfigurer.cs

+ 1 - 1
prs.shared/Posters/Xero/TaxCodeXeroConfigurer.cs

@@ -12,7 +12,7 @@ internal class TaxCodeXeroConfigurer : IPosterMapConfigurer<TaxCode, TaxRate>
     public IEnumerable<TaxRate> GetMaps(IPosterDispatcher dispatcher)
     {
         var connection = XeroPosterEngine.GetConnectionData(dispatcher, ["accounting.settings"]).Result;
-        if(new TaxRateService(connection).Query(null).Get(out var taxRates, out var error))
+        if(new TaxRateService(connection).Query(Filter<TaxRate>.Where(x => x.Status).IsEqualTo(TaxRate.StatusEnum.ACTIVE)).Get(out var taxRates, out var error))
         {
             return taxRates;
         }