If you want change cost center for liability account please do the following process.
while entering the invoice header go to folder menu and select the liability account now we will see the liability account field.
Form there we can select cost center.
And coming to tax we do not have any standard functionality in 'Automatic tax calculation'.
But we can change the cost center in 'Manual tax calculation'.