This is a workaround to not have to modify code.
1. Use this css to remove the total
.invoice_row #youearned{
display:none!important;
}
2. Use Loco translate / po to translate labels YOU EARN and we deduct…. by adding a blank space in translation.