die "check_taxkey needs chart object as an argument" unless ref($chart) eq 'SL::DB::Chart';
# problem: taxkey is not unique in table tax, normally one of those entries is chosen directly from a dropdown
# so we check if the chart has an active taxkey, and if it matches the taxkey from the import, use the active taxkey
# if the chart doesn't have an active taxkey, use the first entry from Tax that matches the taxkey
die "check_taxkey needs chart object as an argument" unless ref($chart) eq 'SL::DB::Chart';
# problem: taxkey is not unique in table tax, normally one of those entries is chosen directly from a dropdown
# so we check if the chart has an active taxkey, and if it matches the taxkey from the import, use the active taxkey
# if the chart doesn't have an active taxkey, use the first entry from Tax that matches the taxkey