Merge branch 'fronkdev' into 'master'

Fix for zero price invoice in bmd export

See merge request fronk/thetool!459
This commit is contained in:
Frank Schubert
2024-07-09 20:31:45 +00:00

View File

@@ -580,6 +580,9 @@ XINON GmbH";
}
$vatrate = (($invoice->total == $invoice->total_gross) ? "0" : "20");
if($invoice->total_gross){
$vatrate = 20;
}
$vat = $invoice->total_gross - $invoice->total;
$vat *= -1;
@@ -661,4 +664,8 @@ XINON GmbH";
echo $csv_header."\n".$csv_out;
exit;
}
public function printInvoicesAction() {
//$start = $r->
}
}