[FIX] amount_discount and amount_tax return a value if line doesn't have a invoice asociate

Merged Leandro Martinek requested to merge 7.0-calculate_amount_invoice into 7.0-stage

Merge request reports