I want to merge the duplicated rows (with same doctype, docnum and item) and sum the value of their 'qtd' column to the first one or the last one. Then delete the duplicate rows keeping just the one that caries the total value. (The line number is not important after deleting it can allow not sequential numbers)I want to merge the duplicated rows (with same