Qr Code Of A Return Transaction

0

Dear Support,

When scanning the QR code of a return transaction, something is wrong!
A screenshot of the error message that shows up in place of the return is attached.

Kindly investigate this issue and provide me with a solution.

Regards,
Mazyad

Question Resolved For: Stock Manager Advance with Point of Sale Module 0 Votes 10 Answers 347 Views
Asked by Mazyad ALArdhi 4 months ago

0

Answered by Enyinnaya Gift

Mazyad ALArdhi It does work; what you need is a KSA QRCode-compatible app, just like @Mian Saleem said, and a good example is E-Invoice QR Reader KSA from Google Play. Also note that when KSA Invoice QR Code is enabled, the system generates a QR code that contains different fields of the seller's information and invoice details, like the seller's name, VAT registration number of the seller, invoice date, invoice total amount, total tax amount, etc., and not a URL that takes you to the invoice page. Disabling the KSA Invoice QR code will generate a URL to the invoice page.

0

Answered by Enyinnaya Gift 4 months ago

Hi @Mazyad ALArdhi

Replace line 30 to 38 in view.php filepath: themes\default\admin\views\returns\view.php with the code below:

                        <?php
                        if ($Settings->ksa_qrcode) {
                            $qrtext = $this->inv_qrcode->base64([
                                'seller'           => $biller->company && $biller->company != '-' ? $biller->company : $biller->name,
                                'vat_no'           => $biller->vat_no ?: $biller->get_no,
                                'date'             => $inv->date,
                                'grand_total'      => 0 - $inv->grand_total,
                                'total_tax_amount' =>  0 - $inv->total_tax,
                            ]);
                            echo $this->sma->qrcode('text', $qrtext, 2);
                        } else {
                            echo $this->sma->qrcode('link', urlencode(site_url('view/sale/' . $inv->hash)), 2);
                        }
                        ?>

My name is @Enyinnaya Gift . I am an Independent Software Developer with in-depth knowledge of SMA system. I have done a lot of customization for many happy clients across the globe.

You can check out highlights and a demo of my latest customization by Clicking HERE - Highlights

You can also reach me via any of the following mediums for a real-time discussion on your customization request:

-Skype ID: enyinnayag
-Wechat ID: genyinnaya
-Email: [email protected]
-WhatsApp: +2348068355192

0

Answered by Mazyad ALArdhi 4 months ago

Hello,

After I applied the solution to the file, another message appeared.
Attached is a screenshot of it.

Regards,

Attachments

0

Answered by Enyinnaya Gift 4 months ago

Hi @Mazyad ALArdhi
Sorry for the oversight. Return doesn't have public view file, hence you will require additional customization to achieve what you want.

Thanks.

0

Answered by Mian Saleem 4 months ago

Hello,

QRCode on return order view is for KSA. It's doesn't have any option to view the return orders.

Thank you

0

Answered by Mazyad ALArdhi 4 months ago

Hi,

Well understood.

I have enabled KSA Invoice QR Code from the Settings page; But the defect still exists, moreover the QR of new created invoice has showing the same error now.

Thanks,

0

Answered by Enyinnaya Gift 3 months ago

Mazyad ALArdhi Like I mentioned earlier, you will require additional customization to scan and view return order.
You can test by scanning the QR code on the attached return order, or check a working demo on it by Clicking HERE

0

Answered by Mazyad ALArdhi 3 months ago

Good Day,

If we put the issue of the return aside, the QR does not work when scanning the QR code for the Sale invoice when enable the KSA Invoice QR Code!

This is another issue we found.

0

Answered by Mian Saleem 3 months ago

Hello,

How are you scanning the qrcode? Please scan with KSA QRCode compatible app. You can share the scanned text here for us to check.

Thank you

0

Answered by Mazyad ALArdhi 3 months ago

Dear @Mian Saleem & @Enyinnaya Gift ,

It worked successfully after I download and used the E Invoice QR Reader KSA application.
Thank you for both of you for the clarification and support.

Regards,

We use Cookies

We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.