Print format item table distinct values


i am trying to create custom print format for sales invoice.In first picture there are 2 same values with different amount.

I wan’t to distinct those 2 values and sum amount of those two.

Right now it is possible to group similar items in Purchase Order. You can raise a feature request on github for Sales Order.