I have come across following bug. What we have noticed is that If there a apostrophe (’) on the address (i.e Street) it does not display under Waiting Orders or Delivered Orders section under Take way department. Apostrophe (’) causing the street name not to appear under street field. However, full address prints correctly on the printer.
Difficult to say for sure due to size and quality of screenshot, but the replacement value does not look empty. It looks like there is a single-quote in there, like:
.replace(/'/g,"'")
Be certain that ^ is not the case. You can do it this way too (try this - using single-quotes instead of double):
i have double checked and below is what i have tried and results are same.
<L00><sym></sym><size 14> [='{ENTITY DATA:Customers:Street}'.replace('<!rn>','<br/>').replace(/'/g, '')]</size>
<L00><sym></sym><size 14>[='{ENTITY DATA:Customers:Street}'.replace('<!rn>','<br/>').replace(/'/g, "")]</size>
For example, if Query means “Select from Database”, then the return for Mary's could very well in fact be Mary''s (2 single-quotes), because SQL escapes single-quotes by using 2 single-quotes.
Ok, this is not a DB query. It is a lookup from an associated CSV file, which is not specified in your case, so it could probably changed to a String Field Type, but wouldn’t have any effect anyway…
Damn, just thought of something. I think the .replace is happening too late. The data is already messed up before we even get that far. Try this - notice the double-quotes around the data tag!