|
|
@@ -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;
|
|
|
}
|