Invoice print sum by Delivery Note

Hi,

i wan’t to create new print format for Sales Invoice with Delivery Note numbers. Current format shows multiple DN in a line (for every item from DN).

Is it posible to group duplicate and sum amout for that? I didn’t find any example on forum. This is really helpful for customer to compare Sales Invoice with delivery Notes.

See the before_print function in purchase_order.py. You can do something similar to group DNs, this one is for items.

https://github.com/frappe/erpnext/pull/6513/files#diff-256eab056d1fab10bb0c9a17b16cac0e

Ok. I will try to do similar. This is good example.