@@ -39,7 +39,7 @@ foreach($tests as $test) {
}
-$total_ex_vat = $test_costs;
+$total_ex_vat = $test_costs + array_sum($invoice_field_totals);
$vat = round($total_ex_vat * 0.20, 2);
$total_inc_vat = $total_ex_vat + $vat;