Second and Third tax issue in Purchase order - V 17.0

In Purchase order creation: Tax Rate is Zero for Second and Third tax. (for all C+S-12, C+S-18, C+S-28)
It is working only first tax.
No issue found in Quotation and Sales order
Please see attached screen shot (Code is not working for Second and Third tax)