Question: Qr Code Of A Return Transaction

Qr Code Of A Return Transaction

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 investi

MA

Mazyad ALArdhi

Asked
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
  • EG

    Enyinnaya Gift

    Answered
    Hi [@Mazyad ALArdhi](/u/mazrd72)

    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](/u/giftedhands4real) . 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](https://sma.gehandsitsolutions.com/admin/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`
  • MA

    Mazyad ALArdhi

    Answered
    Hello,

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

    Regards,
  • EG

    Enyinnaya Gift

    Answered
    Hi [@Mazyad ALArdhi](/u/mazrd72)
    Sorry for the oversight. Return doesn't have public view file, hence you will require additional customization to achieve what you want.

    Thanks.
  • MS

    Mian Saleem

    Answered
    Hello,

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

    Thank you
  • MA

    Mazyad ALArdhi

    Answered
    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,
  • EG

    Enyinnaya Gift

    Answered
    **[Mazyad ALArdhi](/u/mazrd72)** 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](https://sma.gehandsitsolutions.com/admin)
  • MA

    Mazyad ALArdhi

    Answered
    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.
  • MS

    Mian Saleem

    Answered
    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
  • EG

    Enyinnaya Gift

    Answered
    **[Mazyad ALArdhi](/u/mazrd72)** 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](https://play.google.com/store/apps/details?id=com.posbankbh.einvoiceqrreader&hl=en&gl=US) 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.
  • MA

    Mazyad ALArdhi

    Answered
    Dear [@Mian Saleem](/u/saleem) & [@Enyinnaya Gift](/u/giftedhands4real) ,

    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,
  • Login to Reply