瀏覽代碼

Fix bug where customer invoice fields was not being included in total

Alan Lam 7 年之前
父節點
當前提交
8a21aee05f
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      controllers/project_invoice.php

+ 1 - 1
controllers/project_invoice.php

@@ -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;