Topic: erorr report

why in report  Inventory Valuation Report  view cost by (-) and error in calculated and report Stock Check Sheets  when open view this msg error

TCPDF error: Error in barcode string

I need to solve it  fast.

Thanks

Re: erorr report

BasrCode by default is EAN/UPC - does the item have a proper barcode-able no?

Re: erorr report

I just got this error trying to print a stock check sheet, turned out there was a checkbox under company setup called "use bardoes on stocks".  deselecting this option fixed the problem for me.  Not sure if I am missing out on some feature because I don't know how to use it, but at least my report prints...

Re: erorr report

@bobloblian  - I guess you have FA 2.4.3 or older version, am i right ?

Because in 2.4.4 it works earlier versions, it has the problem with print of barcodes

Re: erorr report

any clue about this?
experiencing now within FA 2.4.7, PHP 7.2
there is no error in tmp/error.log
please help

kvvaradha wrote:

@bobloblian  - I guess you have FA 2.4.3 or older version, am i right ?

Because in 2.4.4 it works earlier versions, it has the problem with print of barcodes

Re: erorr report

line 8801 file reporting/include/tcpdf.php, need to disabled this
                        if ($arrcode === false) {
                                #$this->Error('Error in barcode string');
                        }

I thought because my items previous using digit above 8 digits, how to fix this error?
190576261483 N NTB Lenovo Ideapad 110-15lbr/BK (Black) N3060 -> after disable above code, it show
19906652 Milesight Camera CCTV MS-C2962-FPBeach -> show barcode

https://www.dropbox.com/s/zpiokhi7lj97191/Screenshot%202019-09-10%20at%2013.15.32.png?dl=0

Post's attachments

BarcodeListings.png 48.3 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Re: erorr report

add code for, so when barcode is not in correct format $arrcode === false, it dont process code below
                        if ($arrcode === false) {
                                #$this->Error('Error in barcode string');
                        } else {

add line 8999 for
                        }


8802,8803c8802,8803
<                               #$this->Error('Error in barcode string');
<                       } else {
---
>                               $this->Error('Error in barcode string');
>                       }
8999d8998
<                       }

Re: erorr report

What are you trying to do? Just suppress all barcode errors or have it display errors when there is no error?

Re: erorr report

With this, report still open and print barcode for items with correct digit number, others will enough print empty barcode?

Re: erorr report

If you do not want to display the error then just comment out the entire if construct. If you do it the way you stated, then the error string will print for valid barcodes only!