Browse code

rename generate_qrcode_image to generate_qrcode_image_invoice to avoid name collision with totp

Hanno authored on 08/09/2018 19:00:31
Showing 2 changed files
... ...
@@ -82,7 +82,7 @@ if ($invoice['bezahlt'] == 1) {
82 82
 } elseif ($l && $l['status'] == 'done') {
83 83
     output('<p>Diese Rechnung wurde am '.$l['buchungsdatum'].' per Lastschrift eingezogen.</p>');
84 84
 } else {
85
-    $qrcode_image = generate_qrcode_image($invoice_id);
85
+    $qrcode_image = generate_qrcode_image_invoice($invoice_id);
86 86
 
87 87
     output('<h4>GiroCode für Mobile Banking (SEPA Credit Transfer)</h4><p><img src="data:image/png;base64,'.base64_encode($qrcode_image).'" /></p>');
88 88
 }
... ...
@@ -81,7 +81,7 @@ function upcoming_items()
81 81
 }
82 82
 
83 83
 
84
-function generate_qrcode_image($id)
84
+function generate_qrcode_image_invoice($id)
85 85
 {
86 86
     $invoice = invoice_details($id);
87 87
     $customerno = $invoice['kunde'];