Topic: Problems Displaying QR Code in the footer

I cant display a QR image in the Footer. I tried the $Footer[] array but I seams that It only displays text. I generate the QR from the URL in doctext.inc

 
    if (@$this->formData['payment_service'])    //payment link
    {
        $amt = number_format($this->formData["ov_freight"] + $this->formData["ov_gst"] + $this->formData["ov_amount"], user_price_dec());
        $service = $this->formData['payment_service'];
        $url = payment_link($service, array(
            'company_email' => $this->company['email'],
            'amount' => $amt,
            'currency' => $this->formData['curr_code'],
            'comment' => $this->title . " " . $this->formData['reference'],
            'invoice' => $this->formData['reference']
            ));
        $Footer[_("You can pay through"). " $service: "] = "$url";
        QRcode::png($url, $tempDir.'030.png', QR_ECLEVEL_L, 3);
    }

Re: Problems Displaying QR Code in the footer

May be it's better to make the image as jpg and than use addimage  function to make it display there.

Or you can update the tcpdf and than use it directly the 2d barcode to get it working

Subscription service based on FA
HRM CRM POS batch Themes

Re: Problems Displaying QR Code in the footer

Thank you, I ended up getting it working with the base fpdf built in function Image().
Now I just need to figure out where to put this thing. Haha it looks weird everywhere! I hate when things are not Symmetrical.

    if (@$this->formData['payment_service'])    //payment link
    {
        $amt = number_format($this->formData["ov_freight"] + $this->formData["ov_gst"] + $this->formData["ov_amount"], user_price_dec());
        $service = $this->formData['payment_service'];
        $url = payment_link($service, array(
            'company_email' => $this->company['email'],
            'amount' => $amt,
            'currency' => $this->formData['curr_code'],
            'comment' => $this->title . " " . $this->formData['reference'],
            'invoice' => $this->formData['reference']
            ));
        $Footer[_("You can pay through"). " $service: "] = "$url";
        QRcode::png($url, $tempDir.'030.png', QR_ECLEVEL_L, 3);
        $this->Image($tempDir.'030.png',35,540);
    }

Re: Problems Displaying QR Code in the footer

hi guys

I want to add QR to invoice report containing some information like
company name
Invoice No. , date & time stamp
VAT no.
VAT amount
total amount

can any one  do it, contact me

Re: Problems Displaying QR Code in the footer

Is it for zakat (religious obligation of almsgiving) or QR code,?

Subscription service based on FA
HRM CRM POS batch Themes

Re: Problems Displaying QR Code in the footer

Yes its for zakat

Re: Problems Displaying QR Code in the footer

kvvaradha wrote:

Is it for zakat (religious obligation of almsgiving) or QR code,?

Hello , also me want to add QR to Invoice.. smile

did you make it for @aalrashoudi

Re: Problems Displaying QR Code in the footer

@hananah

no not yet

I am waiting

Re: Problems Displaying QR Code in the footer

Its possible  with two ways.

Get the qr code generator as image from php library and generate image and use it inside current tcpdf.

Or you can update your tcpdf with new version and get it within it.



We followed the second way for a client.   And tcpdf updated version comes with more parameters as well.

Subscription service based on FA
HRM CRM POS batch Themes