Tax breakup on the invoice

Tax breakup on the invoice

Invoices that I send to my customers has taxable as well as non-taxable line items. As per law in Maharashtra state, invoice is required to show subtotal of tax on taxable line items. Is this possible? 

For example,

Line Item            Rate            Amount
Item 1                400              400

Item 2                500              500

                         Subtotal       900
                         Tax (5%)       45

Item 3                300              300

                         Total           1245