Tax on each item on the change of type
https://somup.com/cTi0hVNZG0
the tax should have mandatory, so if no tax is selected(happens when change the type from tax from on order to item wise), then set a default tax for all of the items which don't have selected any tax. Because in all countries tax have mandatory for official records.