invcheadtax (Misc. Invoice Tax Adjustment) is one of a bunch of tables that inherit from taxhist (All the recorded taxes). The taxhist table has a bunch of required fields that aren't relevant for misc adjustments. So as a convention they're just set to 0. And that magical 3 is the tax type that means misc. adjustment.