Use gross values in girocode
This commit is contained in:
@@ -69,7 +69,11 @@ public static function single($id)
|
||||
public function preview($id)
|
||||
{
|
||||
$invoice = self::single($id);
|
||||
$giroCode = $this->generateGiroCode($invoice['totalAmount'], $invoice['nr'], $invoice['title']);
|
||||
$giroCode = $this->generateGiroCode(
|
||||
round($invoice['totalAmount'] * 1.19, 2),
|
||||
$invoice['nr'],
|
||||
$invoice['title']
|
||||
);
|
||||
|
||||
return view('invoice', [
|
||||
'invoice' => $invoice,
|
||||
@@ -86,7 +90,11 @@ public function preview($id)
|
||||
public function exportPdf($id)
|
||||
{
|
||||
$invoice = self::single($id);
|
||||
$giroCode = $this->generateGiroCode($invoice['totalAmount'], $invoice['nr'], $invoice['title']);
|
||||
$giroCode = $this->generateGiroCode(
|
||||
round($invoice['totalAmount'] * 1.19, 2),
|
||||
$invoice['nr'],
|
||||
$invoice['title']
|
||||
);
|
||||
|
||||
$viewData = [
|
||||
'invoice' => $invoice,
|
||||
|
||||
Reference in New Issue
Block a user